Public Member Functions | List of all members
pointConstraint Class Reference

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

Inheritance diagram for pointConstraint:
Inheritance graph
[legend]
Collaboration diagram for pointConstraint:
Collaboration graph
[legend]

Public Member Functions

 pointConstraint ()
 
 pointConstraint (const Tuple2< label, vector > &)
 
 pointConstraint (Istream &)
 
void applyConstraint (const vector &cd)
 
void combine (const pointConstraint &)
 
tensor constraintTransformation () const
 
void unconstrainedDirections (label &n, tensor &vecs) const
 
vector constrainDisplacement (const vector &disp) const
 
- Public Member Functions inherited from Tuple2< label, vector >
 Tuple2 ()=default
 
 Tuple2 (const T1 &f, const T2 &s)
 
 Tuple2 (T1 &&f, T2 &&s)
 
 Tuple2 (const std::pair< T1, T2 > &vals)
 
 Tuple2 (std::pair< T1, T2 > &&vals)
 
 Tuple2 (Istream &is)
 
const T1 & first () const noexcept
 
T1 & first () noexcept
 
const T2 & second () const noexcept
 
T2 & second () noexcept
 

Additional Inherited Members

- Public Types inherited from Tuple2< label, vector >
typedef T1 first_type
 
typedef T2 second_type
 

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 56 of file pointConstraint.H.

Constructor & Destructor Documentation

◆ pointConstraint() [1/3]

pointConstraint ( )
inline

Definition at line 23 of file pointConstraintI.H.

◆ pointConstraint() [2/3]

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

Definition at line 29 of file pointConstraintI.H.

◆ pointConstraint() [3/3]

pointConstraint ( Istream is)
inline

Definition at line 35 of file pointConstraintI.H.

Member Function Documentation

◆ applyConstraint()

void applyConstraint ( const vector cd)
inline

◆ combine()

void combine ( const pointConstraint pc)
inline

Definition at line 72 of file pointConstraintI.H.

References Foam::constant::electromagnetic::e, Tuple2::first(), Foam::mag(), n, Tuple2::second(), and Foam::Zero.

Referenced by orientation::constrainRotation(), axis::constrainRotation(), point::constrainTranslation(), and line::constrainTranslation().

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

◆ constraintTransformation()

Foam::tensor constraintTransformation ( ) const
inline

Definition at line 113 of file pointConstraintI.H.

References Foam::I, 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

Definition at line 135 of file pointConstraintI.H.

References Foam::constant::electromagnetic::e, Foam::mag(), n, FixedList::size(), x, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Foam::Zero.

Here is the call graph for this function:

◆ constrainDisplacement()

Foam::vector constrainDisplacement ( const vector disp) const
inline

Definition at line 181 of file pointConstraintI.H.

References Foam::Zero.


The documentation for this class was generated from the following files: