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

sphericalAngularSpring Class Reference

sixDoFRigidBodyMotionRestraints model. Spherical angular spring. More...

#include <forces/sphericalAngularSpring.H>


Detailed Description

sixDoFRigidBodyMotionRestraints model. Spherical angular spring.

Source files

Definition at line 54 of file sphericalAngularSpring.H.

Inheritance diagram for sphericalAngularSpring:
Collaboration diagram for sphericalAngularSpring:

List of all members.

Public Member Functions

 TypeName ("sphericalAngularSpring")
 Runtime type information.
 sphericalAngularSpring (const dictionary &sDoFRBMRDict)
 Construct from components.
virtual autoPtr
< sixDoFRigidBodyMotionRestraint >  
clone () const
 Construct and return a clone.
virtual  ~sphericalAngularSpring ()
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

sphericalAngularSpring ( const dictionary &   sDoFRBMRDict  )

Construct from components.

Definition at line 51 of file sphericalAngularSpring.C.

Referenced by sphericalAngularSpring::clone().

~sphericalAngularSpring (  ) [virtual]

Definition at line 67 of file sphericalAngularSpring.C.


Member Function Documentation

TypeName ( "sphericalAngularSpring"    )

Runtime type information.

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

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 85 of file sphericalAngularSpring.H.

References sphericalAngularSpring::sphericalAngularSpring().

void restrain ( const sixDoFRigidBodyMotion &   motion,
vector &   restraintPosition,
vector &   restraintForce,
vector &   restraintMoment  
) const [virtual]
bool read ( const dictionary &   sDoFRBMRCoeff  ) [virtual]

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionRestraint.

Definition at line 123 of file sphericalAngularSpring.C.

References e, Foam::exit(), Foam::FatalError, FatalErrorIn, Foam::I, Foam::mag(), Foam::nl, sixDoFRigidBodyMotionRestraint::read(), and Foam::sqrt().

void write ( Ostream &   os  ) const [virtual]

Write.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 156 of file sphericalAngularSpring.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/sphericalAngularSpring/sphericalAngularSpring.H
  • src/postProcessing/functionObjects/forces/pointPatchFields/derived/sixDoFRigidBodyMotion/sixDoFRigidBodyMotionRestraint/sphericalAngularSpring/sphericalAngularSpring.C