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... | |
![]() | |
Tuple2 () | |
Null constructor for lists. More... | |
Tuple2 (const Type1 &f, const Type2 &s) | |
Construct from components. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const Type1 & | first () const |
Return first. More... | |
Type1 & | first () |
Return first. More... | |
const Type2 & | second () const |
Return second. More... | |
Type2 & | second () |
Return second. More... | |
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.
|
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, Foam::mag(), and Vector< scalar >::zero.
Referenced by emptyPointPatch::applyConstraint(), symmetryPlanePointPatch::applyConstraint(), wedgePointPatch::applyConstraint(), nonuniformTransformCyclicPointPatch::applyConstraint(), symmetryPointPatch::applyConstraint(), cyclicSlipPointPatch::applyConstraint(), plane::constrainTranslation(), and autoSnapDriver::featureAttractionUsingReconstruction().
|
inline |
Combine constraints.
Definition at line 77 of file pointConstraintI.H.
References Foam::e, Tuple2::first(), Foam::mag(), n, Tuple2::second(), and Vector< scalar >::zero.
Referenced by orientation::constrainRotation(), axis::constrainRotation(), point::constrainTranslation(), and line::constrainTranslation().
|
inline |
Return the accumulated constraint transformation tensor.
Definition at line 118 of file pointConstraintI.H.
References Foam::I, Foam::sqr(), and Tensor::zero.
Referenced by sixDoFRigidBodyMotion::addConstraints().
Return the accumulated unconstrained directions. Directions.
coded as first n rows of tensor.
Definition at line 139 of file pointConstraintI.H.
References Foam::e, Foam::mag(), n, FixedList::size(), x, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< scalar >::zero.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.