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 > | |
Tuple2 ()=default | |
Default construct. More... | |
Tuple2 (const label &f, const vector &s) | |
Copy construct from components. More... | |
Tuple2 (label &&f, vector &&s) | |
Move construct from components. More... | |
Tuple2 (const std::pair< label, vector > &vals) | |
Copy construct from std::pair. More... | |
Tuple2 (std::pair< label, vector > &&vals) | |
Move construct from std::pair. More... | |
Tuple2 (Istream &is) | |
Construct from Istream. More... | |
const label & | first () const noexcept |
Access the first element. More... | |
label & | first () noexcept |
Access the first element. More... | |
const vector & | second () const noexcept |
Access the second element. More... | |
vector & | second () noexcept |
Access the second element. More... | |
Additional Inherited Members | |
Public Types inherited from Tuple2< label, vector > | |
typedef label | first_type |
Type of member first, the first template parameter (T1) More... | |
typedef vector | second_type |
Type of member second, the second template parameter (T2) 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 23 of file pointConstraintI.H.
|
inline |
Construct from components.
Definition at line 29 of file pointConstraintI.H.
|
inline |
Construct from Istream.
Definition at line 35 of file pointConstraintI.H.
|
inline |
Apply and accumulate the effect of the given constraint direction.
Definition at line 43 of file pointConstraintI.H.
References Foam::constant::electromagnetic::e, Foam::mag(), and Foam::Zero.
Referenced by emptyPointPatch::applyConstraint(), symmetryPointPatch::applyConstraint(), nonuniformTransformCyclicPointPatch::applyConstraint(), symmetryPlanePointPatch::applyConstraint(), cyclicSlipPointPatch::applyConstraint(), wedgePointPatch::applyConstraint(), and plane::constrainTranslation().
|
inline |
Combine constraints.
Definition at line 72 of file pointConstraintI.H.
References Foam::constant::electromagnetic::e, Tuple2< T1, T2 >::first(), Foam::mag(), n, Tuple2< T1, T2 >::second(), and Foam::Zero.
Referenced by orientation::constrainRotation(), axis::constrainRotation(), point::constrainTranslation(), and line::constrainTranslation().
|
inline |
Return the accumulated constraint transformation tensor.
Definition at line 113 of file pointConstraintI.H.
References Foam::I, Foam::sqr(), and Foam::Zero.
Referenced by sixDoFRigidBodyMotion::addConstraints().
|
inline |
Return the accumulated unconstrained directions. Directions.
coded as first n rows of tensor.
Definition at line 135 of file pointConstraintI.H.
References Foam::constant::electromagnetic::e, Foam::mag(), n, FixedList< T, N >::size(), x, and Foam::Zero.
|
inline |