Metafor

ULiege - Aerospace & Mechanical Engineering

User Tools

Site Tools


doc:user:geometry:user:operateurs

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Next revisionBoth sides next revision
doc:user:geometry:user:operateurs [2013/07/01 12:45] – external edit 127.0.0.1doc:user:geometry:user:operateurs [2014/08/07 19:04] joris
Line 1: Line 1:
-====== Opérateurs ======+====== Operators ======
  
 ===== Introduction ===== ===== Introduction =====
  
-Les opérateurs de transformation géométrique permettent de déplacer une géométrie maillée ou non pour la placer dans une autre position. La syntaxe est la suivante:+Operators are used to move a geometry, meshed or not, from one position to anotherThe syntax is as follow:
  
-  op = MachinOperator(arg1, arg2, ...)+  op = GivenOperator(arg1, arg2, ...)
   sideset(1).move(op)   sideset(1).move(op)
  
-On crée donc l'opérateur ''op'' qui prend un ou plusieurs arguments qui peuvent être des valeurs ou des objets de Metafor (voir le détail des différents opérateurs ci-dessous). On applique ensuite cet opérateur à l'objet que l'on désire déplacer (ici la face #1).+As can be seen, the operator ''op'' must first be created. It takes several arguments, which can be values of Metafor objects (see below for specific operators). Then, the operator is applied to the object which must be moved (here, face #1).
  
  
-===== Opérateur de translation =====+===== Translating operator =====
  
-Cet opérateur permet de déplacer selon un mouvement de translation une géométrie maillée ou nonLe déplacement est défini par un ''Vect3'':+This operator translates a geometry, meshed or notThe motion is defined by a ''Vect3'':
  
   op = TranslationOperator([Vect3] disp)   op = TranslationOperator([Vect3] disp)
Line 19: Line 19:
  
  
-===== Opérateur de rotation =====+===== Rotating operator =====
  
-Cet opérateur permet de faire tourner une géométrie maillée ou non autour d'un axeLa rotation est définie par un angle (en radian) et un objet géométrique ''[[axes|Axe]]'':+This operator is used to rotate a geometry, meshed or not, along an axisThe rotation is defined by and angle (in radian) and an ''[[doc:user:geometry:user:axes|Axis]]'':
  
-  op = RotationOperator(axe, angle)+  op = RotationOperator(axis, angle)
   sideset(1).move(op)   sideset(1).move(op)
  
  
-===== Opérateur d'alignement =====+===== Aligning operator =====
  
-Cet opérateur permet d'appliquer un mouvement de corps rigide (translation + rotation) une géométrie maillée ou nonCe mouvement de corps rigide est défini par deux objets géométriques ''[[triedres|Trièdre]]'':+This operator is used to apply a rigid body motion (translation + rotation), to a geometric entity, meshed or notThis rigid body mode is defined by two ''[[doc:user:geometry:user:triedres]]'':
  
-  op = AlignmentOperator(triedreReftriedreMesh)+  op = AlignmentOperator(trihedronReftrihedronMesh)
   sideset(1).move(op)   sideset(1).move(op)
  
-''triedreRef'' est le trièdre dans lequel on veut placer la ''Side''et ''triedreMesh'' est le trièdre modélisant un système d'axes local de la ''Side'' à déplacer+''trihedronRef'' is the trihedron to which the side must be moved, when ''trihedronMesh'' is a trihedron modelling a local frame of the side to be moved.
  
  
-===== Opérateur de symétrie centrale =====+===== Point reflection operator =====
  
-Cet opérateur permet d'appliquer une symétrie centrale (couplée ou non à une translation) à une géométrie maillée ou nonCette symétrie centrale est définie par un objet géométrique ''[[axes|Axe]]'' et l'amplitude ''ampl'':+This operator is used to apply a point reflection (with or without a translation) to a geometric entity, meshed or notThis point reflection is defined by an ''[[axes|Axis]]'' and an amplitude ''ampl'':
  
   op = RadialOperator(axe, ampl)   op = RadialOperator(axe, ampl)
Line 45: Line 45:
   sideset(1).move(op)   sideset(1).move(op)
  
-L'axe indique la direction de la symétrie centrale.+The axis indicates the direction of the point reflection.
  
  
-===== Opérateur de symétrie orthogonale =====+===== Reflection symmetry operator =====
  
-Cet opérateur permet d'appliquer une symétrie orthogonale à une géométrie maillée ou non par rapport à un planCette symétrie orthogonale est définie par un objet géométrique ''[[surfaces#plan|Plane]]'':+This operator is used to apply a reflection symmetry to a geometric entity, meshed or notIt is defined by a ''[[surfaces#plan|Plane]]'':
  
   op = OrthogonalSymmetryOperator(plane)   op = OrthogonalSymmetryOperator(plane)
Line 56: Line 56:
  
  
-===== Opérateur de mise à échelle =====+===== Scaling operator =====
  
-Cet opérateur permet d'appliquer une mise à échelle d'une géométrie maillée ou nonCette mise à échelle est définie par le centre de l'homothétie (objet géométrique ''[[points|Point]]''et l'amplitude de la mise à échelle ''fact'':+This operator is used to apply a scaling to a geometric entity, meshed or notIt is defined by its homothetic center (''Point''and by the scaling factor ''fact'':
  
   op = ScalingOperator(pt0, fact)   op = ScalingOperator(pt0, fact)
doc/user/geometry/user/operateurs.txt · Last modified: 2016/03/30 15:23 by 127.0.0.1

Donate Powered by PHP Valid HTML5 Valid CSS Driven by DokuWiki