Double pendulum model in Python | |
---|---|
![]() |
![]() |
Browse model files — Download zip archive |
Quick start
To run the model, open pend.py
with Gmsh and click on the "Run" button in the
left panel.
Features addressed in this tutorial
- Python ONELAB model
Additional information
Any Python script can become a native ONELAB client by importing the
onelab.py
module. This module comes pre-installed with Gmsh, in the same directory as the
Gmsh executable. When you open a ONELAB-enabled Python solver with Gmsh, Gmsh
automatically finds the onelab.py module. You can also install onelab.py
in
any directory of your choosing; in this case don't forget to update your
PYTHONPATH
environment variable.