MBDyn

参考资料

网站为 https://www.mbdyn.org/ ,在网站Documentation中有Tutorials,还有一个日本小公司的网站上有很多例子 https://www.sky-engin.jp/en/https://github.com/mmorandi/MBDyn-web/raw/main/userfiles/documents/tutorials.pdf 是教程。

编译安装

算例测试

FENGSim/starter/mbdyn 目录下有一个自由落体的简单例子,运行如下命令。

cd FENGSim/starter/mbdyn
./../../toolkit/DAE/install/mbdyn_install/bin/mbdyn -f free_falling_body_E.mbd
gnuplot
plot 'free_falling_body_E.mov' using 3:4
alternate text

前后处理

https://github.com/mmorandi/MBDyn-web/raw/main/userfiles/documents/tutorials.pdf 中第2.1节中介绍了结果文件格式,尤其是mov,如下。

The second file (mov) will contain Nnodes by Ntimesteps lines formatted as:

  • the node label

  • the three coordinates of the position of the node

  • the three Euler-like angles that define the orientation of the node (following the 1, 2, 3 convention)

  • the three components of the velocity of the node

  • the three components of the angular velocity of the node

alternate text