axialAngularSpring Class Reference

Axial angular spring with moment values obtained from a Function1 and linear damping. More...

Inheritance diagram for axialAngularSpring:
Collaboration diagram for axialAngularSpring:

Public Member Functions

 TypeName ("axialAngularSpring")
 Runtime type information. More...
 
 axialAngularSpring (const word &name, const dictionary &sDoFRBMRDict)
 Construct from components. More...
 
virtual autoPtr< sixDoFRigidBodyMotionRestraintclone () const
 Construct and return a clone. More...
 
virtual ~axialAngularSpring ()
 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

Axial angular spring with moment values obtained from a Function1 and linear damping.

Source files

Definition at line 55 of file axialAngularSpring.H.

Constructor & Destructor Documentation

◆ axialAngularSpring()

axialAngularSpring ( const word name,
const dictionary sDoFRBMRDict 
)

Construct from components.

Definition at line 51 of file axialAngularSpring.C.

References axialAngularSpring::read().

Referenced by axialAngularSpring::clone().

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

◆ ~axialAngularSpring()

~axialAngularSpring ( )
virtual

Destructor.

Definition at line 69 of file axialAngularSpring.C.

Member Function Documentation

◆ TypeName()

TypeName ( "axialAngularSpring"  )

Runtime type information.

◆ clone()

virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone ( ) const
inlinevirtual

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 90 of file axialAngularSpring.H.

References axialAngularSpring::axialAngularSpring().

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 75 of file axialAngularSpring.C.

References Foam::acos(), sixDoFRigidBodyMotion::centreOfRotation(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::omega(), sixDoFRigidBodyMotion::orientation(), sixDoFRigidBodyMotion::report(), Foam::rotationTensor(), Foam::sign(), and Foam::Zero.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary sDoFRBMRCoeff)
virtual

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionRestraint.

Definition at line 131 of file axialAngularSpring.C.

References Foam::abort(), Foam::dimForce, Foam::dimLength, Foam::e, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::FatalIOError, FatalIOErrorInFunction, Foam::I, Foam::mag(), Function1< Type >::New(), Foam::nl, sixDoFRigidBodyMotionRestraint::read(), Foam::sqrt(), and Foam::unitRadians.

Referenced by axialAngularSpring::axialAngularSpring().

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 192 of file axialAngularSpring.C.

References Foam::writeEntry().

Here is the call graph for this function:

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