doc:user:general:cmdsprelim
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
doc:user:general:cmdsprelim [2014/08/06 17:14] – joris | doc: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: | ||
- | |||
- | Import of relevant Python modules: | ||
- | |||
- | from wrap import * # import Python interface | ||
- | 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() |
doc/user/general/cmdsprelim.1407338068.txt.gz · Last modified: 2016/03/30 15:22 (external edit)