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
doc:user:general:cmdsprelim [2014/08/06 17:14] jorisdoc:user:general:cmdsprelim [2015/01/09 11:44] (current) – removed boman
Line 1: Line 1:
-====== Preliminary commands ====== 
  
-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. 
- 
-Import of relevant Python modules: 
- 
-  from wrap import *  # import Python interface 
-  import math         # import Python math module (to use ''math.sin'' for example) 
- 
-Creation of an analysis ''metafor'' and access to the domain: 
- 
-  metafor = Metafor() 
-  domain = metafor.getDomain() 
- 
-Configuration of geometry: 
- 
-  geometry = domain.getGeometry() 
-  geometry.setDim3D()             # 3D modelling 
-  geometry.setDimPlaneStrain()    # 2D modelling in plane strain (thickness = 1.0) 
-  geometry.setDimAxisymmetric()   # 2D axisymmetric modelling (thickness = 1 radian) 
doc/user/general/cmdsprelim.1407338068.txt.gz · Last modified: 2016/03/30 15:22 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki