[MBDyn-users] Mbdyn Socket

MBDyn users list mbdyn-users at mbdyn.org
Wed Jul 24 16:49:37 CEST 2019


Hi Louis,

 

That is the adapter that I am facing the problem with.

Cheers,

Augustin

 

De : MBDyn-users <mbdyn-users-bounces at mbdyn.org> De la part de MBDyn users
list
Envoyé : Wednesday, July 24, 2019 1:39 PM
À : mbdyn-users at mbdyn.org
Objet : Re: [MBDyn-users] Mbdyn Socket

 

Hi Augustin,
You may also be interested in this tutorial case:
https://github.com/precice/mbdyn-adapter
Kind regards,
-Louis

On 24.07.19 14:09, MBDyn users list wrote:

Moreover, could you reproduce the problem with code from the git repository
(https://public.gitlab.polimi.it/DAER/mbdyn, "develop" branch)?

 

Thanks, p.

 

On 7/24/19 13:01, MBDyn users list wrote:

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?

p.

 

Any ideas ?

 

Cheers

 

Augustin

 





_______________________________________________
MBDyn-users mailing list
MBDyn-users at mbdyn.org <mailto:MBDyn-users at mbdyn.org> 
https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users

 

-- 
Pierangelo Masarati
Professore Ordinario di Costruzioni e Strutture Aerospaziali
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano





_______________________________________________
MBDyn-users mailing list
MBDyn-users at mbdyn.org <mailto:MBDyn-users at mbdyn.org> 
https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users

 

-- 
Pierangelo Masarati
Professore Ordinario di Costruzioni e Strutture Aerospaziali
Dipartimento di Scienze e Tecnologie Aerospaziali
Politecnico di Milano





_______________________________________________
MBDyn-users mailing list
MBDyn-users at mbdyn.org <mailto:MBDyn-users at mbdyn.org> 
https://mail.mbdyn.org/cgi-bin/mailman/listinfo/mbdyn-users

 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.mbdyn.org/pipermail/mbdyn-users/attachments/20190724/64c16332/attachment.html>


More information about the MBDyn-users mailing list