doc:user:general:cmdsprelim
This is an old revision of the document!
Preliminary commands
Here is a list of commands that are found in most input files.
Importation of relevant Python modules:
from wrap import * # import C++/Python interface of Metafor 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.1420800249.txt.gz · Last modified: 2016/03/30 15:22 (external edit)