Accumulates point constraints through successive applications of the applyConstraint function. More...
Public Member Functions | |
pointConstraint () | |
Construct null. More... | |
pointConstraint (const Tuple2< label, vector > &) | |
Construct from components. More... | |
pointConstraint (Istream &) | |
Construct from Istream. More... | |
void | applyConstraint (const vector &cd) |
Apply and accumulate the effect of the given constraint direction. More... | |
void | combine (const pointConstraint &) |
Combine constraints. More... | |
tensor | constraintTransformation () const |
Return the accumulated constraint transformation tensor. More... | |
void | unconstrainedDirections (label &n, tensor &vecs) const |
Return the accumulated unconstrained directions. Directions. More... | |
vector | constrainDisplacement (const vector &disp) const |
Constrain a displacement. More... | |
Public Member Functions inherited from Tuple2< label, vector > | |
const char *const | typeName ("Tuple2<word,scalar>") |
Tuple2 () | |
Null constructor for lists. More... | |
Tuple2 (const label &f, const vector &s) | |
Construct from components. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const label & | first () const |
Return first. More... | |
label & | first () |
Return first. More... | |
const vector & | second () const |
Return second. More... | |
vector & | second () |
Return second. More... | |
Additional Inherited Members | |
Static Public Attributes inherited from Tuple2< label, vector > | |
static const char *const | typeName |
Accumulates point constraints through successive applications of the applyConstraint function.
After all the constraints have been entered the resulting transformation tensor is returned by the constraintTransformation function.
Definition at line 56 of file pointConstraint.H.
|
inline |
Construct null.
Definition at line 28 of file pointConstraintI.H.
Referenced by Foam::transform().
|
inline |
Construct from components.
Definition at line 34 of file pointConstraintI.H.
|
inline |
Construct from Istream.
Definition at line 40 of file pointConstraintI.H.
|
inline |
Apply and accumulate the effect of the given constraint direction.
Definition at line 48 of file pointConstraintI.H.
References Foam::e, Tuple2< label, vector >::first(), Foam::mag(), Tuple2< label, vector >::second(), and Foam::Zero.
Referenced by emptyPointPatch::applyConstraint(), symmetryPlanePointPatch::applyConstraint(), wedgePointPatch::applyConstraint(), symmetryPointPatch::applyConstraint(), cyclicSlipPointPatch::applyConstraint(), pointConstraint::combine(), plane::constrainTranslation(), and listPlusEqOp< T >::operator()().
|
inline |
Combine constraints.
Definition at line 77 of file pointConstraintI.H.
References pointConstraint::applyConstraint(), Foam::e, Tuple2< label, vector >::first(), Tuple2< Type1, Type2 >::first(), Foam::mag(), n, Tuple2< label, vector >::second(), Tuple2< Type1, Type2 >::second(), and Foam::Zero.
Referenced by orientation::constrainRotation(), axis::constrainRotation(), point::constrainTranslation(), line::constrainTranslation(), and combineConstraintsEqOp::operator()().
|
inline |
Return the accumulated constraint transformation tensor.
Definition at line 118 of file pointConstraintI.H.
References Tuple2< label, vector >::first(), Foam::I, Tuple2< label, vector >::second(), Foam::sqr(), pointConstraint::unconstrainedDirections(), and Foam::Zero.
Referenced by sixDoFRigidBodyMotion::addConstraints().
Return the accumulated unconstrained directions. Directions.
coded as first n rows of tensor.
Definition at line 140 of file pointConstraintI.H.
References pointConstraint::constrainDisplacement(), Foam::e, Tuple2< label, vector >::first(), Foam::mag(), Tuple2< label, vector >::second(), FixedList< T, Size >::size(), x, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Foam::Zero.
Referenced by pointConstraint::constraintTransformation().
|
inline |
Constrain a displacement.
Definition at line 186 of file pointConstraintI.H.
References Tuple2< label, vector >::first(), Tuple2< label, vector >::second(), and Foam::Zero.
Referenced by pointConstraint::unconstrainedDirections().