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

fixedAxis Class Reference

sixDoFRigidBodyMotionConstraint. Body may only rotate around an axis fixed in global space. More...

#include <forces/fixedAxis.H>


Detailed Description

sixDoFRigidBodyMotionConstraint. Body may only rotate around an axis fixed in global space.

Source files

Definition at line 55 of file fixedAxis.H.

Inheritance diagram for fixedAxis:
Collaboration diagram for fixedAxis:

List of all members.

Public Member Functions

 TypeName ("fixedAxis")
 Runtime type information.
 fixedAxis (const dictionary &sDoFRBMCDict)
 Construct from components.
virtual autoPtr
< sixDoFRigidBodyMotionConstraint >  
clone () const
 Construct and return a clone.
virtual  ~fixedAxis ()
virtual bool  constrain (const sixDoFRigidBodyMotion &motion, const vector &existingConstraintForce, const vector &existingConstraintMoment, scalar deltaT, vector &constraintPosition, vector &constraintForceIncrement, vector &constraintMomentIncrement) const
 Calculate the constraint position, force and moment.
virtual bool  read (const dictionary &sDoFRBMCCoeff)
 Update properties from given dictionary.
virtual void  write (Ostream &) const
 Write.

Constructor & Destructor Documentation

fixedAxis ( const dictionary &   sDoFRBMCDict  )

Construct from components.

Definition at line 50 of file fixedAxis.C.

Referenced by fixedAxis::clone().

~fixedAxis (  ) [virtual]

Definition at line 63 of file fixedAxis.C.


Member Function Documentation

TypeName ( "fixedAxis"    )

Runtime type information.

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

Construct and return a clone.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 81 of file fixedAxis.H.

References fixedAxis::fixedAxis().

bool constrain ( const sixDoFRigidBodyMotion &   motion,
const vector &   existingConstraintForce,
const vector &   existingConstraintMoment,
scalar   deltaT,
vector &   constraintPosition,
vector &   constraintForceIncrement,
vector &   constraintMomentIncrement  
) const [virtual]

Calculate the constraint position, force and moment.

Global reference frame vectors. Returns boolean stating whether the constraint been converged to tolerance.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 70 of file fixedAxis.C.

References Foam::acos(), sixDoFRigidBodyMotion::centreOfMass(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::momentOfInertia(), sixDoFRigidBodyMotion::orientation(), sixDoFRigidBodyMotion::predictedOrientation(), Foam::sqr(), Tensor< Cmpt >::T(), and Vector< Cmpt >::zero.

bool read ( const dictionary &   sDoFRBMCCoeff  ) [virtual]

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 146 of file fixedAxis.C.

References Foam::abort(), Foam::FatalError, FatalErrorIn, Foam::mag(), and sixDoFRigidBodyMotionConstraint::read().

void write ( Ostream &   os  ) const [virtual]

Write.

Reimplemented from sixDoFRigidBodyMotionConstraint.

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