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 ()
 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...
 
- Public Member Functions inherited from Tuple2< label, vector >
 Tuple2 ()
 Null constructor for lists. More...
 
 Tuple2 (const label &f, const vector &s)
 Construct from components. More...
 
 Tuple2 (Istream &is)
 Construct from Istream. More...
 
const labelfirst () const
 Return first. More...
 
labelfirst ()
 Return first. More...
 
const vectorsecond () const
 Return second. More...
 
vectorsecond ()
 Return second. More...
 

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 ( )
inline

Construct null.

Definition at line 28 of file pointConstraintI.H.

Referenced by Foam::transform().

Here is the caller graph for this function:

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

Construct from components.

Definition at line 34 of file pointConstraintI.H.

pointConstraint ( Istream is)
inline

Construct from Istream.

Definition at line 40 of file pointConstraintI.H.

Member Function Documentation

void applyConstraint ( const vector cd)
inline
void combine ( const pointConstraint pc)
inline
Foam::tensor constraintTransformation ( ) const
inline

Return the accumulated constraint transformation tensor.

Definition at line 118 of file pointConstraintI.H.

References Tuple2< label, vector >::first(), Foam::I, Tuple2< label, vector >::second(), Foam::sqr(), and Tensor< scalar >::zero.

Referenced by sixDoFRigidBodyMotion::addConstraints().

Here is the call graph for this function:

Here is the caller graph for this function:

void unconstrainedDirections ( label n,
tensor vecs 
) const
inline

Return the accumulated unconstrained directions. Directions.

coded as first n rows of tensor.

Definition at line 139 of file pointConstraintI.H.

References Foam::e, Tuple2< label, vector >::first(), Foam::mag(), Tuple2< label, vector >::second(), FixedList< T, Size >::size(), x, Vector< Cmpt >::x(), Vector< Cmpt >::y(), and Vector< Cmpt >::zero.

Here is the call graph for this function:


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