Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
tutorials
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
documentation
tutorials
Wiki
Double pendulum model in Python
Changes
Page history
New page
Templates
Clone repository
up
authored
7 years ago
by
Christophe Geuzaine
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
Double-pendulum-model-in-Python.md
+34
-0
34 additions, 0 deletions
Double-pendulum-model-in-Python.md
with
34 additions
and
0 deletions
Double-pendulum-model-in-Python.md
0 → 100644
View page @
b27a4eb8
<table>
<tr>
<th
colspan=
"2"
>
Double pendulum model in Python
</th>
</tr>
<tr>
<td
style=
"text-align:center"
><img
src=
"Double-pendulum-model-in-Python_screenshot1.png"
width=
100%
></td>
<td
style=
"text-align:center"
><img
src=
"Double-pendulum-model-in-Python_screenshot2.png"
width=
100%
></td>
</tr>
<tr>
<th
colspan=
"2"
>
Browse
<a
href=
"https://gitlab.onelab.info/doc/tutorials/tree/master/PendulumPython/"
>
model files
</a></th>
</tr>
</table>
## 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](https://gitlab.onelab.info/gmsh/gmsh/tree/master/contrib/onelab/python/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.
----
*Model developed by @henrotte and @geuzaine.*
This diff is collapsed.
Click to expand it.