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 revisionBoth sides next revision
doc:user:general:cmdsprelim [2013/07/12 18:20] – [Structure d'un module] jorisdoc:user:general:cmdsprelim [2014/08/06 17:14] joris
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 [[doc:user:general:glossaire#data set|data sets]] [[doc:user:general:glossaire#Metafor]] ([[doc:user:general:glossaire#module|modules]]) and initiate the simulation.
  
-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.+Import of relevant Python modules:
  
-Importation des modules python utiles+  from wrap import *  # import Python interface 
 +  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