This is an old revision of the document!
Table of Contents
Operators
Introduction
Operators are used to move a geometry, meshed or not, from one position to another. The syntax is as follow:
op = GivenOperator(arg1, arg2, ...) sideset(1).move(op)
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).
Translating operator
This operator translates a geometry, meshed or not. The motion is defined by a Vect3
:
op = TranslationOperator([Vect3] disp) sideset(1).move(op)
Rotating operator
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) sideset(1).move(op)
Aligning operator
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) sideset(1).move(op)
trihedronRef
is the trihedron to which the side 1 must be moved, when trihedronMesh
is a trihedron modelling a local frame of the side to be moved.
Point reflection operator
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([Vect3] disp) sideset(1).move(op)
The axis indicates the direction of the point reflection.
Reflection symmetry operator
This operator is used to apply a reflection symmetry to a geometric entity, meshed or not. It is defined by a Plane
:
op = OrthogonalSymmetryOperator(plane) sideset(1).move(op)
Scaling operator
This operator is used to apply a scaling to a geometric entity, meshed or not. It is defined by its homothetic center (Point
) and by the scaling factor fact
:
op = ScalingOperator(pt0, fact) sideset(1).move(op)