doc:user:tutorials:tuto1
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:tutorials:tuto1 [2015/01/20 15:38] – carretta | doc:user:tutorials:tuto1 [2016/07/11 16:45] (current) – [Temporal Integration] boemer | ||
---|---|---|---|
Line 49: | Line 49: | ||
The first line imports the Python/C++ interface of Metafor (called '' | The first line imports the Python/C++ interface of Metafor (called '' | ||
- | The '' | + | The '' |
metafor = Metafor() | metafor = Metafor() | ||
domain = metafor.getDomain() | domain = metafor.getDomain() | ||
- | The main object of the module | + | The main object of the module is now created as an instance of the '' |
The analysis will then handle data from this domain to, for example, integrate temporally over its evolution equations. | The analysis will then handle data from this domain to, for example, integrate temporally over its evolution equations. | ||
Line 132: | Line 132: | ||
* Small objects which require few parameters to be defined, like '' | * Small objects which require few parameters to be defined, like '' | ||
- | * Bigger objects which require more arguments, like curves, are defined using a temporary object, which is filled and copied. For example, | + | * Bigger objects which require more arguments, like curves, are defined using a temporary object, which is filled and copied. For example, a curve is created by first defining a line (see below). |
- | In this example, '' | + | In this example, '' |
Line 229: | Line 229: | ||
The meshers ([[doc: | The meshers ([[doc: | ||
- | As for the geometry, it is recommended to visually check whether the piece was meshed properly by opening a '' | + | As for the geometry, it is recommended to visually check whether the geometry |
Line 327: | Line 327: | ||
Now, the boundary conditions are considered. The set which handles all boundary conditions commands is called the '' | Now, the boundary conditions are considered. The set which handles all boundary conditions commands is called the '' | ||
- | The X component of ligne 4 and the Y component of line 1 must be [[doc: | + | The X component of line 4 and the Y component of line 1 must be [[doc: |
Line 354: | Line 354: | ||
- | Setting fixed ends or displacements is done is the same way as the definition of points in the geometry, with the single '' | + | Setting fixed ends or displacements is done in the same way as the definition of points in the geometry, with the single '' |
==== Contact ==== | ==== Contact ==== | ||
Line 388: | Line 388: | ||
The deformable entity is specified with the command '' | The deformable entity is specified with the command '' | ||
- | It should be noted that the contact interaction number must be different | + | It should be noted that the contact interaction number must be different |
==== Temporal Integration ==== | ==== Temporal Integration ==== | ||
The description of this model is now over. What is left to consider is the way the '' | The description of this model is now over. What is left to consider is the way the '' | ||
- | Many options are available, however the simplest one is chosen here, which is a quasi-static integration (where the inertia is neglected). What remains to define | + | Many options are available, however the simplest one is chosen here, which is a quasi-static integration (where the inertia is neglected). What remains to be defined |
Line 412: | Line 412: | ||
| | ||
- | Afterwards, the '' | + | Afterwards, the '' |
==== Curves Extraction | ==== Curves Extraction | ||
Line 419: | Line 419: | ||
valuesmanager = metafor.getValuesManager() | valuesmanager = metafor.getValuesManager() | ||
valuesmanager.add(1, | valuesmanager.add(1, | ||
- | valuesmanager.add(2, | + | valuesmanager.add(2, |
The first line fetches the '' | The first line fetches the '' |
doc/user/tutorials/tuto1.1421764694.txt.gz · Last modified: 2016/03/30 15:22 (external edit)