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 Cpp
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-Cpp.md
+0
-0
0 additions, 0 deletions
Double-pendulum-model-in-Cpp.md
with
0 additions
and
0 deletions
Double-pendulum-model-in-Cpp.md
0 → 100644
View page @
07a6507d
<table>
<tr>
<th
colspan=
"2"
>
Double pendulum model in C++
</th>
</tr>
<tr>
<td
style=
"text-align:center"
><img
src=
"Double-pendulum-model-in-C++_screenshot1.png"
width=
100%
></td>
<td
style=
"text-align:center"
><img
src=
"Double-pendulum-model-in-C++_screenshot2.png"
width=
100%
></td>
</tr>
<tr>
<th
colspan=
"2"
>
Browse
<a
href=
"https://gitlab.onelab.info/doc/tutorials/tree/master/PendulumC++/"
>
model files
</a></th>
</tr>
</table>
## 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`
](
https://gitlab.onelab.info/gmsh/gmsh/tree/master/Common/onelab.h
)
and header (which depends on
[
`GmshSocket.h`
](
https://gitlab.onelab.info/gmsh/gmsh/tree/master/Common/GmshSocket.h
)
).
----
*Model developed by @henrotte and @geuzaine.*
This diff is collapsed.
Click to expand it.