sixDoFRigidBodyMotionRestraint Class Referenceabstract

Base class for defining restraints for sixDoF motions. More...

Inheritance diagram for sixDoFRigidBodyMotionRestraint:
Collaboration diagram for sixDoFRigidBodyMotionRestraint:

Public Member Functions

 TypeName ("sixDoFRigidBodyMotionRestraint")
 Runtime type information. More...
 
 declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionRestraint, dictionary,(const word &name, const dictionary &sDoFRBMRDict),(name, sDoFRBMRDict))
 
 sixDoFRigidBodyMotionRestraint (const word &name, const dictionary &sDoFRBMRDict)
 Construct from the sDoFRBMRDict dictionary and Time. More...
 
virtual autoPtr< sixDoFRigidBodyMotionRestraintclone () const =0
 Construct and return a clone. More...
 
virtual ~sixDoFRigidBodyMotionRestraint ()
 Destructor. More...
 
const wordname () const
 Return the name. More...
 
virtual void restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const =0
 Calculate the restraint position, force and moment. More...
 
virtual bool read (const dictionary &sDoFRBMRDict)
 Update properties from given dictionary. More...
 
const dictionarycoeffDict () const
 
virtual void write (Ostream &) const =0
 Write. More...
 

Static Public Member Functions

static autoPtr< sixDoFRigidBodyMotionRestraintNew (const word &name, const dictionary &sDoFRBMRDict)
 Select constructed from the sDoFRBMRDict dictionary and Time. More...
 

Protected Attributes

word name_
 Name of the restraint. More...
 
dictionary sDoFRBMRCoeffs_
 Restraint model specific coefficient dictionary. More...
 

Detailed Description

Base class for defining restraints for sixDoF motions.

Source files

Definition at line 64 of file sixDoFRigidBodyMotionRestraint.H.

Constructor & Destructor Documentation

◆ sixDoFRigidBodyMotionRestraint()

sixDoFRigidBodyMotionRestraint ( const word name,
const dictionary sDoFRBMRDict 
)

Construct from the sDoFRBMRDict dictionary and Time.

Definition at line 40 of file sixDoFRigidBodyMotionRestraint.C.

◆ ~sixDoFRigidBodyMotionRestraint()

Destructor.

Definition at line 52 of file sixDoFRigidBodyMotionRestraint.C.

References sixDoFRigidBodyMotionRestraint::read().

Here is the call graph for this function:

Member Function Documentation

◆ TypeName()

TypeName ( "sixDoFRigidBodyMotionRestraint"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

declareRunTimeSelectionTable ( autoPtr  ,
sixDoFRigidBodyMotionRestraint  ,
dictionary  ,
(const word &name, const dictionary &sDoFRBMRDict)  ,
(name, sDoFRBMRDict)   
)

◆ clone()

virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone ( ) const
pure virtual

◆ New()

Foam::autoPtr< Foam::sixDoFRigidBodyMotionRestraint > New ( const word name,
const dictionary sDoFRBMRDict 
)
static

Select constructed from the sDoFRBMRDict dictionary and Time.

Definition at line 32 of file sixDoFRigidBodyMotionRestraintNew.C.

References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, dictionary::lookup(), Foam::name(), and Foam::nl.

Referenced by sixDoFRigidBodyMotion::addRestraints().

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

◆ name()

const word& name ( ) const
inline

Return the name.

Definition at line 126 of file sixDoFRigidBodyMotionRestraint.H.

References sixDoFRigidBodyMotionRestraint::name_, sixDoFRigidBodyMotionRestraint::read(), and sixDoFRigidBodyMotionRestraint::restrain().

Here is the call graph for this function:

◆ restrain()

virtual void restrain ( const sixDoFRigidBodyMotion motion,
vector restraintPosition,
vector restraintForce,
vector restraintMoment 
) const
pure virtual

Calculate the restraint position, force and moment.

Global reference frame vectors.

Implemented in axialAngularSpring, linearSpring, linearAxialAngularSpring, sphericalAngularSpring, linearDamper, and sphericalAngularDamper.

Referenced by sixDoFRigidBodyMotionRestraint::name().

Here is the caller graph for this function:

◆ read()

◆ coeffDict()

const dictionary& coeffDict ( ) const
inline

Definition at line 147 of file sixDoFRigidBodyMotionRestraint.H.

References sixDoFRigidBodyMotionRestraint::sDoFRBMRCoeffs_, and sixDoFRigidBodyMotionRestraint::write().

Here is the call graph for this function:

◆ write()

virtual void write ( Ostream ) const
pure virtual

Member Data Documentation

◆ name_

word name_
protected

Name of the restraint.

Definition at line 72 of file sixDoFRigidBodyMotionRestraint.H.

Referenced by sixDoFRigidBodyMotionRestraint::name().

◆ sDoFRBMRCoeffs_

dictionary sDoFRBMRCoeffs_
protected

Restraint model specific coefficient dictionary.

Definition at line 75 of file sixDoFRigidBodyMotionRestraint.H.

Referenced by sixDoFRigidBodyMotionRestraint::coeffDict().


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