FreeFOAM The Cross-Platform CFD Toolkit
Hosted by SourceForge:
Get FreeFOAM at SourceForge.net.
            Fast, secure and Free Open Source software downloads

linearSpring Class Reference

sixDoFRigidBodyMotionRestraints model. Linear spring. More...

#include <forces/linearSpring.H>


Detailed Description

sixDoFRigidBodyMotionRestraints model. Linear spring.

Source files

Definition at line 53 of file linearSpring.H.

Inheritance diagram for linearSpring:
Collaboration diagram for linearSpring:

List of all members.

Public Member Functions

 TypeName ("linearSpring")
 Runtime type information.
 linearSpring (const dictionary &sDoFRBMRDict)
 Construct from components.
virtual autoPtr
< sixDoFRigidBodyMotionRestraint >  
clone () const
 Construct and return a clone.
virtual  ~linearSpring ()
virtual void  restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
 Calculate the restraint position, force and moment.
virtual bool  read (const dictionary &sDoFRBMRCoeff)
 Update properties from given dictionary.
virtual void  write (Ostream &) const
 Write.

Constructor & Destructor Documentation

linearSpring ( const dictionary &   sDoFRBMRDict  )

Construct from components.

Definition at line 50 of file linearSpring.C.

Referenced by linearSpring::clone().

~linearSpring (  ) [virtual]

Definition at line 67 of file linearSpring.C.


Member Function Documentation

TypeName ( "linearSpring"    )

Runtime type information.

virtual autoPtr<sixDoFRigidBodyMotionRestraint> clone (  ) const [inline, virtual]

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 91 of file linearSpring.H.

References linearSpring::linearSpring().

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 74 of file linearSpring.C.

References sixDoFRigidBodyMotion::currentPosition(), sixDoFRigidBodyMotion::currentVelocity(), Foam::endl(), Foam::Info, Foam::mag(), sixDoFRigidBodyMotion::report(), and Vector< Cmpt >::zero.

bool read ( const dictionary &   sDoFRBMRCoeff  ) [virtual]

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionRestraint.

Definition at line 108 of file linearSpring.C.

References sixDoFRigidBodyMotionRestraint::read().

void write ( Ostream &   os  ) const [virtual]

Write.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 129 of file linearSpring.C.

References token::END_STATEMENT, Foam::nl, and Ostream::writeKeyword().


The documentation for this class was generated from the following files:
  • src/postProcessing/functionObjects/forces/pointPatchFields/derived/sixDoFRigidBodyMotion/sixDoFRigidBodyMotionRestraint/linearSpring/linearSpring.H
  • src/postProcessing/functionObjects/forces/pointPatchFields/derived/sixDoFRigidBodyMotion/sixDoFRigidBodyMotionRestraint/linearSpring/linearSpring.C