Loading...
Searching...
No Matches
sixDoFRigidBodyMotionRestraint Class Referenceabstract

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

#include <sixDoFRigidBodyMotionRestraint.H>

Inheritance diagram for sixDoFRigidBodyMotionRestraint:
Collaboration diagram for sixDoFRigidBodyMotionRestraint:

Public Member Functions

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

Static Public Member Functions

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

Protected Attributes

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

Detailed Description

Base class for defining restraints for sixDoF motions.

Source files

Definition at line 63 of file sixDoFRigidBodyMotionRestraint.H.

Constructor & Destructor Documentation

◆ sixDoFRigidBodyMotionRestraint()

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

◆ ~sixDoFRigidBodyMotionRestraint()

Destructor.

Definition at line 47 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)  )

References name(), and sixDoFRigidBodyMotionRestraint().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone ( ) const
pure virtual

Construct and return a clone.

Implemented in linearAxialAngularSpring, linearDamper, linearSpring, linearSpringDamper, softWall, sphericalAngularDamper, sphericalAngularSpring, and tabulatedAxialAngularSpring.

References name().

Here is the call graph for this function:

◆ New()

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

Select constructed from the sDoFRBMRDict dictionary and Time.

Definition at line 27 of file sixDoFRigidBodyMotionRestraintNew.C.

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

Referenced by sixDoFRigidBodyMotion::addRestraints().

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

◆ name()

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

◆ coeffDict()

const dictionary & coeffDict ( ) const
inline

Definition at line 167 of file sixDoFRigidBodyMotionRestraint.H.

References sDoFRBMRCoeffs_.

Referenced by linearSpringDamper::restrain().

Here is the caller graph for this function:

◆ write()

Member Data Documentation

◆ name_

word name_
protected

Name of the restraint.

Definition at line 73 of file sixDoFRigidBodyMotionRestraint.H.

Referenced by name(), and sixDoFRigidBodyMotionRestraint().

◆ sDoFRBMRCoeffs_


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