Double pendulum model in C++ | |
---|---|
![]() |
![]() |
Browse model files — Download zip archive |
Quick start
To run the model, first compile pend.cpp
with a C++ compiler to create an
executable pend.exe
, e.g. with
c++ pend.cpp -o pend.exe
Them open pend.exe
with Gmsh and click on the "Run" button in the left panel.
Features addressed in this tutorial
- C++ ONELAB model
Additional information
Any C++ code can become a native ONELAB client by including the
onelab.h
and header (which depends on
GmshSocket.h
).