doc:user:general:cmdsprelim
Differences
This shows you the differences between two versions of the page.
Next revision | Previous revisionLast revisionBoth sides next revision | ||
doc:user:general:cmdsprelim [2013/07/12 15:45] – created joris | doc:user:general:cmdsprelim [2015/01/07 14:45] – boman | ||
---|---|---|---|
Line 1: | Line 1: | ||
+ | ====== 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 '' | ||
+ | |||
+ | Creation of an analysis '' | ||
+ | |||
+ | metafor = Metafor() | ||
+ | domain = metafor.getDomain() | ||
+ | |||
+ | Configuration of geometry: | ||
+ | |||
+ | geometry = domain.getGeometry() | ||
+ | geometry.setDim3D() | ||
+ | geometry.setDimPlaneStrain() | ||
+ | geometry.setDimAxisymmetric() |