[MBDyn-users] Mbdyn Socket

MBDyn users list mbdyn-users at mbdyn.org
Wed Jul 24 13:01:48 CEST 2019

On 7/24/19 09:41, MBDyn users list wrote:
Dear list,

I am using a coupling between Openfoam and Mbdyn using a socket to communicate the fields.
I get the following error in Mbdyn:

StructExtForce(50000): recv() failed (got 36544 of 69192 bytes)
An error occurred during the execution of MBDyn; aborting...

My guess is that the socket is not big enough because for smaller mesh it is working fine.
It looks like it is recv() function which is causing the problem (in /mbdyn-1.7.3/mbdyn/struct/strext.cc) , any idea to allow bigger size for this function ?
Can I increase the bufsize ?

The size of expected data should match that of the buffer, which in turn is dynamically sized and allocated based on what and how many data are expected.

I'd first investigate how you're setting up the communication and actually passing the data.  Are you using MBDyn's libmbc either directly in C or through some wrapping (C++, F77, Python)?  Are you adhering to the calling conventions?  Can you guarantee that the behavior differs only in terms of mesh size?


Any ideas ?



MBDyn-users mailing list
MBDyn-users at mbdyn.org<mailto:MBDyn-users at mbdyn.org>

Pierangelo Masarati
Professore Ordinario di Costruzioni e Strutture Aerospaziali
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20190724/7148b5db/attachment.html>

More information about the MBDyn-users mailing list