sixDoFRigidBodyMotionRestraint Class Referenceabstract

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

Inheritance diagram for sixDoFRigidBodyMotionRestraint:
[legend]
Collaboration diagram for sixDoFRigidBodyMotionRestraint:
[legend]

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 66 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 41 of file sixDoFRigidBodyMotionRestraint.C.

References Foam::name().

Here is the call graph for this function:

◆ ~sixDoFRigidBodyMotionRestraint()

Destructor.

Definition at line 54 of file sixDoFRigidBodyMotionRestraint.C.

Member Function Documentation

◆ TypeName()

TypeName ( "sixDoFRigidBodyMotionRestraint"  )

Runtime type information.

◆ declareRunTimeSelectionTable()

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

◆ clone()

◆ New()

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

Select constructed from the sDoFRBMRDict dictionary and Time.

Definition at line 34 of file sixDoFRigidBodyMotionRestraintNew.C.

References dict, Foam::exit(), Foam::FatalIOError, FatalIOErrorInLookup, dictionary::get(), and sixDoFRigidBodyMotionRestraint::name().

Here is the call graph for this function:

◆ name()

const word & name ( ) const
inline

Return the name.

Definition at line 128 of file sixDoFRigidBodyMotionRestraint.H.

References sixDoFRigidBodyMotionRestraint::name_.

Referenced by sixDoFRigidBodyMotionRestraint::New().

Here is the caller 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 linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.

◆ read()

bool read ( const dictionary sDoFRBMRDict)
virtual

◆ coeffDict()

const dictionary & coeffDict ( ) const
inline

◆ write()

Member Data Documentation

◆ name_

word name_
protected

Name of the restraint.

Definition at line 74 of file sixDoFRigidBodyMotionRestraint.H.

Referenced by sixDoFRigidBodyMotionRestraint::name().

◆ sDoFRBMRCoeffs_

dictionary sDoFRBMRCoeffs_
protected

Restraint model specific coefficient dictionary.

Definition at line 77 of file sixDoFRigidBodyMotionRestraint.H.

Referenced by sixDoFRigidBodyMotionRestraint::coeffDict().


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