Accumulates point constraints through successive applications of the applyConstraint function. More...
#include <pointConstraint.H>


Public Member Functions | |
| pointConstraint () | |
| Default construct zero-initialized. | |
| pointConstraint (const Tuple2< label, vector > &) | |
| Construct from components. | |
| pointConstraint (const label count, const vector &n) | |
| Construct from components. | |
| pointConstraint (Istream &) | |
| Construct from Istream. Handles ASCII only, since that is what Tuple2 does. | |
| void | applyConstraint (const vector &cd) |
| Apply and accumulate the effect of the given constraint direction. | |
| void | combine (const pointConstraint &) |
| Combine constraints. | |
| tensor | constraintTransformation () const |
| Return the accumulated constraint transformation tensor. | |
| void | unconstrainedDirections (label &n, tensor &vecs) const |
| Return the accumulated unconstrained directions. Directions coded as first n rows of tensor. | |
| vector | constrainDisplacement (const vector &disp) const |
| Constrain a displacement. | |
| Public Member Functions inherited from Tuple2< label, vector > | |
| Tuple2 ()=default | |
| Default construct. | |
| const label & | first () const noexcept |
| Access the first element. | |
| const vector & | second () const noexcept |
| Access the second element. | |
Additional Inherited Members | |
| Public Types inherited from Tuple2< label, vector > | |
| typedef label | first_type |
| Type of member first, the first template parameter (T1). | |
| typedef vector | second_type |
| Type of member second, the second template parameter (T2). | |
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 63 of file pointConstraint.H.
|
inline |
Default construct zero-initialized.
Definition at line 23 of file pointConstraintI.H.
References Tuple2< label, vector >::Tuple2().
Referenced by combine().


Construct from components.
Definition at line 29 of file pointConstraintI.H.
References Tuple2< label, vector >::Tuple2().

|
inline |
Construct from components.
Definition at line 35 of file pointConstraintI.H.
References n, and Tuple2< label, vector >::Tuple2().

|
inlineexplicit |
Construct from Istream. Handles ASCII only, since that is what Tuple2 does.
Definition at line 45 of file pointConstraintI.H.
References Tuple2< label, vector >::Tuple2().

|
inline |
Apply and accumulate the effect of the given constraint direction.
Definition at line 53 of file pointConstraintI.H.
References e, Tuple2< label, vector >::first(), Foam::mag(), Tuple2< label, vector >::second(), and Foam::Zero.
Referenced by cyclicSlipPointPatch::applyConstraint(), emptyPointPatch::applyConstraint(), nonuniformTransformCyclicPointPatch::applyConstraint(), symmetryPlanePointPatch::applyConstraint(), symmetryPointPatch::applyConstraint(), wedgePointPatch::applyConstraint(), combine(), plane::constrainTranslation(), and displacementSmartPointSmoothingMotionSolver::emptyCorrectPoints().


|
inline |
Combine constraints.
Definition at line 82 of file pointConstraintI.H.
References applyConstraint(), e, Tuple2< T1, T2 >::first(), Tuple2< label, vector >::first(), Foam::mag(), n, pointConstraint(), Tuple2< T1, T2 >::second(), Tuple2< label, vector >::second(), and Foam::Zero.
Referenced by axis::constrainRotation(), orientation::constrainRotation(), line::constrainTranslation(), and point::constrainTranslation().


|
inline |
Return the accumulated constraint transformation tensor.
Definition at line 123 of file pointConstraintI.H.
References Tuple2< label, vector >::first(), Foam::I, Tuple2< label, vector >::second(), 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 144 of file pointConstraintI.H.
References e, Tuple2< label, vector >::first(), Foam::mag(), n, Tuple2< label, vector >::second(), FixedList< T, N >::size(), Vector< Cmpt >::x(), x, Vector< Cmpt >::y(), and Foam::Zero.

|
inline |
Constrain a displacement.
Definition at line 190 of file pointConstraintI.H.
References Tuple2< label, vector >::first(), Tuple2< label, vector >::second(), and Foam::Zero.
Referenced by displacementSmartPointSmoothingMotionSolver::emptyCorrectPoints().

