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
doc:user:geometry:user:preliminar [2015/02/04 10:28] canalesdoc:user:geometry:user:preliminar [2017/10/25 10:12] (current) boman
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 16: Line 9:
  
   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.1423042085.txt.gz · Last modified: 2016/03/30 15:22 (external edit)

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki