File: slider_crank.rst

package info (click to toggle)
siconos 4.3.1%2Bdfsg-2
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 82,496 kB
  • sloc: cpp: 159,693; ansic: 108,665; fortran: 33,248; python: 20,709; xml: 1,244; sh: 385; makefile: 226
file content (44 lines) | stat: -rw-r--r-- 1,293 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
.. _slider_crank_example:

Slider Crank
============

.. highlight:: c++

This is an example of a simple multibody system, developed in :cite:`FloresGlockerLeine` and shown on the figure below:

.. image:: /figures/mechanics/slider_crank/slider_crank.*


In siconos, this example is simulated in several different ways :

* examples/Mechanics/SliderCrank/SliderCrankMoreauJeanOSI.cpp
* examples/Mechanics/SliderCrank/SliderCrankD1MinusLinear.cpp
* examples/Mechanics/SliderCrank/SliderCrankD1MinusLinearVelocityLevel.cpp
* examples/Mechanics/SliderCrank/SliderCrankMoreauJeanCombinedProjectionOSI.cpp
  * examples/Mechanics/SliderCrank/SliderCrankMoreauJeanDirectProjectionOSI.cpp
* examples/Mechanics/Mechanisms/SliderCrank/bodyref.py

Usage
-----

::
   
   siconos example_name.cpp

or, for python files using mechanisms toolbox::

  cd examples/Mechanics/Mechanisms/
  siconos -P siconos-mechanism.py .

and to plot the results, you can use for example::

  gnuplot -p result.gp

This must lead to Fig 11 (d) of the paper

The example is based on cad files located in examples/Mechanics/Mechanisms/SliderCrank/CAD

The option WITH_CLEARANCE_ON_RODE can be set to 1 to add clearance between the rode 1 and 2.

All variables names and parameters values are those from the paper cited above.