You are here: metafor.ltas.ulg.ac.be » doc » Documentation » geometry » user » Geometry/Mesh Operators

doc:user:geometry:user:operateurs

These kinds of operators are used to move/deform a geometry and its associated mesh from one configuration to another. The generic syntax is as follow:

op = XXXOperator(arg1, arg2, ...) target.move(op)

where `target`

is a geometrical entity (e.g. `sideset(1)`

, `curveset(2)`

)

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 `target`

object (e.g. Side #1 or Curve #2).

This operator translates a geometry, meshed or not. The displacement is defined by a `Vect3`

:

op = TranslationOperator(disp)

where

`disp` | `Vect3` | displacement vector |

This operator is used to rotate a geometry, meshed or not, along an axis. The rotation is defined by and angle (in radian) and an `Axis`

:

op = RotationOperator(axis, angle)

where

`axis` | `Axis` | rotation axis |

`angle` | `float` | angle (in radian) |

This operator is used to apply a rigid body motion (translation + rotation), to a geometric entity, meshed or not. This rigid body mode is defined by two `Trihedra`

:

op = AlignmentOperator(trihedronRef, trihedronMesh)

`trihedronRef`

is the trihedron to which the target must be moved, when `trihedronMesh`

is a trihedron modelling a local frame of the side to be moved.

This operator is used to apply a point reflection (with or without a translation) to a geometric entity, meshed or not. This point reflection is defined by an `Axis`

and an amplitude `ampl`

:

op = RadialOperator(axe, ampl) op.setDisplacement(disp)

where

`axe` | `Axis` | reflection axis which indicates the direction of the point reflection |

`ampl` | `float` | amplitude |

`disp` | `Vect3` | displacement vector |

This operator is used to apply a reflection symmetry to a geometric entity, meshed or not:

op = OrthogonalSymmetryOperator(plane)

where

`plane` | `Plane` | reflection plane |

This operator is used to apply a scaling to a geometric entity, meshed or not.

op = ScalingOperator(pt0, fact)

where

`pt0` | `Point` | homothetic centre |

`fact` | `float` | scaling factor |

doc/user/geometry/user/operateurs.txt · Last modified: 2016/03/30 15:23 (external edit)