Loading...
Searching...
No Matches
pointConstraint Class Reference

Accumulates point constraints through successive applications of the applyConstraint function. More...

#include <pointConstraint.H>

Inheritance diagram for pointConstraint:
Collaboration diagram for pointConstraint:

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 vectorsecond () 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).

Detailed Description

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.

Source files

Definition at line 63 of file pointConstraint.H.

Constructor & Destructor Documentation

◆ pointConstraint() [1/4]

pointConstraint ( )
inline

Default construct zero-initialized.

Definition at line 23 of file pointConstraintI.H.

References Tuple2< label, vector >::Tuple2().

Referenced by combine().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ pointConstraint() [2/4]

pointConstraint ( const Tuple2< label, vector > & pc)
inline

Construct from components.

Definition at line 29 of file pointConstraintI.H.

References Tuple2< label, vector >::Tuple2().

Here is the call graph for this function:

◆ pointConstraint() [3/4]

pointConstraint ( const label count,
const vector & n )
inline

Construct from components.

Definition at line 35 of file pointConstraintI.H.

References n, and Tuple2< label, vector >::Tuple2().

Here is the call graph for this function:

◆ pointConstraint() [4/4]

pointConstraint ( Istream & is)
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().

Here is the call graph for this function:

Member Function Documentation

◆ applyConstraint()

◆ combine()

void combine ( const pointConstraint & pc)
inline

◆ constraintTransformation()

Foam::tensor constraintTransformation ( ) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

◆ unconstrainedDirections()

void unconstrainedDirections ( label & n,
tensor & vecs ) const
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.

Here is the call graph for this function:

◆ constrainDisplacement()

Foam::vector constrainDisplacement ( const vector & disp) const
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().

Here is the call graph for this function:
Here is the caller graph for this function:

The documentation for this class was generated from the following files:
  • src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraint.H
  • src/OpenFOAM/fields/pointPatchFields/pointPatchField/pointConstraint/pointConstraintI.H