linearDamper Class Reference

sixDoFRigidBodyMotionRestraints model. Linear spring. More...

Inheritance diagram for linearDamper:
Collaboration diagram for linearDamper:

Public Member Functions

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

Additional Inherited Members

- Static Public Member Functions inherited from sixDoFRigidBodyMotionRestraint
static autoPtr< sixDoFRigidBodyMotionRestraintNew (const word &name, const dictionary &sDoFRBMRDict)
 Select constructed from the sDoFRBMRDict dictionary and Time. More...
 
- Protected Attributes inherited from sixDoFRigidBodyMotionRestraint
word name_
 Name of the restraint. More...
 
dictionary sDoFRBMRCoeffs_
 Restraint model specific coefficient dictionary. More...
 

Detailed Description

sixDoFRigidBodyMotionRestraints model. Linear spring.

Source files

Definition at line 52 of file linearDamper.H.

Constructor & Destructor Documentation

◆ linearDamper()

linearDamper ( const word name,
const dictionary sDoFRBMRDict 
)

Construct from components.

Definition at line 51 of file linearDamper.C.

References Foam::read().

Referenced by linearDamper::clone().

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

◆ ~linearDamper()

~linearDamper ( )
virtual

Destructor.

Definition at line 65 of file linearDamper.C.

References linearDamper::restrain().

Referenced by linearDamper::clone().

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

Member Function Documentation

◆ TypeName()

TypeName ( "linearDamper"  )

Runtime type information.

◆ clone()

virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone ( ) const
inlinevirtual

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 78 of file linearDamper.H.

References linearDamper::linearDamper(), linearDamper::read(), linearDamper::restrain(), linearDamper::write(), and linearDamper::~linearDamper().

Here is the call graph for this function:

◆ restrain()

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

Calculate the restraint position, force and moment.

Global reference frame vectors.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 72 of file linearDamper.C.

References Foam::endl(), Foam::Info, linearDamper::read(), sixDoFRigidBodyMotion::report(), and Foam::Zero.

Referenced by linearDamper::clone(), and linearDamper::~linearDamper().

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

◆ read()

bool read ( const dictionary sDoFRBMRCoeff)
virtual

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionRestraint.

Definition at line 91 of file linearDamper.C.

References sixDoFRigidBodyMotionRestraint::read(), and linearDamper::write().

Referenced by linearDamper::clone(), and linearDamper::restrain().

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

◆ write()

void write ( Ostream os) const
virtual

Write.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 104 of file linearDamper.C.

References Foam::writeEntry().

Referenced by linearDamper::clone(), and linearDamper::read().

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

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