Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:user:preliminar

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
Last revisionBoth sides next revision
doc:user:geometry:user:preliminar [2015/02/04 10:28] canalesdoc:user:geometry:user:preliminar [2016/03/30 15:23] – external edit 127.0.0.1
Line 1: Line 1:
-====== Preliminary commands ====== +====== Geometry definition ======
- +
-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: Creation of an analysis ''metafor'' and access to the domain:
Line 17: Line 10:
   geometry = domain.getGeometry()   geometry = domain.getGeometry()
   geometry.setDim3D()             # 3D modelling   geometry.setDim3D()             # 3D modelling
-  geometry.setDimPlaneStrain(t)    # 2D modelling in plane strain with thickness = t+  geometry.setDimPlaneStrain(t)   # 2D modelling in plane strain with thickness = t
   geometry.setDimAxisymmetric()   # 2D axisymmetric modelling with thickness = 1 radian   geometry.setDimAxisymmetric()   # 2D axisymmetric modelling with thickness = 1 radian
doc/user/geometry/user/preliminar.txt · Last modified: 2017/10/25 10:12 by boman

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki