doc:user:general:cmdsprelim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revisionLast revisionBoth sides next revision | ||
doc:user:general:cmdsprelim [2013/07/12 18:20] – [Structure d'un module] joris | doc:user:general:cmdsprelim [2015/01/07 14:45] – boman | ||
---|---|---|---|
Line 1: | Line 1: | ||
- | ====== | + | ====== |
- | ==== Commandes préliminaires ==== | + | Here is a list of commands that are found in most input files. |
- | Voici une liste de commandes qui se retrouvent dans la plupart des [[doc:user: | + | Importation of relevant Python modules: |
- | Importation des modules python utiles | + | from wrap import * # import C++/Python interface of Metafor |
+ | import math # import Python math module (to use '' | ||
- | from wrap import * # importe l'interface python de Metafor | + | Creation of an analysis |
- | import math # import le module mathématique de python (pour '' | + | |
- | + | ||
- | Création d'une analyse metafor et accès au domaine de l'analyse: | + | |
metafor = Metafor() | metafor = Metafor() | ||
domain = metafor.getDomain() | domain = metafor.getDomain() | ||
- | ==== Géométrie ==== | + | Configuration |
- | + | ||
- | Configuration | + | |
geometry = domain.getGeometry() | geometry = domain.getGeometry() | ||
- | geometry.setDim3D() | + | geometry.setDim3D() |
- | geometry.setDimPlaneStrain() | + | geometry.setDimPlaneStrain() |
- | geometry.setDimAxisymmetric() | + | geometry.setDimAxisymmetric() |
- | + | ||
- | < | + |