FreeFOAM The Cross-Platform CFD Toolkit
pointConstraint Class Reference

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

#include <OpenFOAM/pointConstraint.H>


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

+ Inheritance diagram for pointConstraint:
+ Collaboration diagram for pointConstraint:

List of all members.

Public Member Functions

 pointConstraint ()
 Construct null.
 pointConstraint (Istream &)
 Construct from Istream.
void applyConstraint (const vector &cd)
 Apply and accumulate the effect of the given constraint direction.
tensor constraintTransformation () const
 Return the accumulated constraint transformation tensor.
- Public Member Functions inherited from Tuple2< label, vector >
 Tuple2 ()
 Null constructor for lists.
 Tuple2 (const label &f, const vector &s)
 Construct from components.
 Tuple2 (Istream &is)
 Construct from Istream.
const label & first () const
 Return first.
label & first ()
 Return first.
const vectorsecond () const
 Return second.
vectorsecond ()
 Return second.
Tuple2< vector, label > reverseTuple2 () const
 Return reverse pair.

Constructor & Destructor Documentation

pointConstraint ( )
inline

Construct null.

Definition at line 28 of file pointConstraintI.H.

pointConstraint ( Istream is)
inline

Construct from Istream.

Definition at line 34 of file pointConstraintI.H.


Member Function Documentation

void applyConstraint ( const vector cd)
inline

Apply and accumulate the effect of the given constraint direction.

Definition at line 42 of file pointConstraintI.H.

References e, Foam::mag(), and Vector< scalar >::zero.

Referenced by emptyPointPatch::applyConstraint(), wedgePointPatch::applyConstraint(), and symmetryPointPatch::applyConstraint().

Foam::tensor constraintTransformation ( ) const
inline

Return the accumulated constraint transformation tensor.

Definition at line 71 of file pointConstraintI.H.

References Foam::I, Foam::sqr(), and Tensor< Cmpt >::zero.


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