Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:general:cmdsprelim

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Last revisionBoth sides next revision
doc:user:general:cmdsprelim [2013/07/12 18:20] – [Structure d'un module] jorisdoc:user:general:cmdsprelim [2015/01/07 14:45] boman
Line 1: Line 1:
-====== Structure d'un module Metafor ======+====== Preliminary commands ======
  
-==== 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:general:glossaire#jeux de données]] [[doc:user:general:glossaire#Metafor]] ([[doc:user:general:glossaire#module|modules]]) et qui initialisent le problème.+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 ''math.sin'' for example)
  
-  from wrap import *  # importe l'interface python de Metafor +Creation of an analysis ''metafor'' and access to the domain:
-  import math         # import le module mathématique de python (pour ''math.sin'' p. exemple) +
- +
-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 of geometry:
- +
-Configuration de la géométrie+
  
   geometry = domain.getGeometry()   geometry = domain.getGeometry()
-  geometry.setDim3D()             # problème 3D +  geometry.setDim3D()             # 3D modelling 
-  geometry.setDimPlaneStrain()    # problème 2D "état plan de défo" (épaisseur = 1.0) +  geometry.setDimPlaneStrain()    # 2D modelling in plane strain (thickness = 1.0) 
-  geometry.setDimAxisymmetric()   # problème 2D axisymétrique (épaisseur = 1 radian) +  geometry.setDimAxisymmetric()   # 2D axisymmetric modelling (thickness = 1 radian)
-     +
-<note>TODO : continuer la description de la structure d'un cas classique (géométrie utilisateur, maillage, ...) </note>+

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki