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

fixedOrientation Class Reference

sixDoFRigidBodyMotionConstraint. Orientation of body fixed global space. Only valid where the predicted deviation from alignment is < 90 degrees. More...

#include <forces/fixedOrientation.H>


Detailed Description

sixDoFRigidBodyMotionConstraint. Orientation of body fixed global space. Only valid where the predicted deviation from alignment is < 90 degrees.

Source files

Definition at line 56 of file fixedOrientation.H.

Inheritance diagram for fixedOrientation:
Collaboration diagram for fixedOrientation:

List of all members.

Public Member Functions

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

fixedOrientation ( const dictionary &   sDoFRBMCDict  )

Construct from components.

Definition at line 50 of file fixedOrientation.C.

Referenced by fixedOrientation::clone().

~fixedOrientation (  ) [virtual]

Definition at line 62 of file fixedOrientation.C.


Member Function Documentation

TypeName ( "fixedOrientation"    )

Runtime type information.

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

Construct and return a clone.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 76 of file fixedOrientation.H.

References fixedOrientation::fixedOrientation().

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 69 of file fixedOrientation.C.

References Foam::acos(), sixDoFRigidBodyMotion::centreOfMass(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), sixDoFRigidBodyMotion::momentOfInertia(), VectorSpace< Vector< Cmpt >, Cmpt, 3 >::nComponents, sixDoFRigidBodyMotion::predictedOrientation(), Foam::sqr(), and Vector< Cmpt >::zero.

bool read ( const dictionary &   sDoFRBMCCoeff  ) [virtual]

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 168 of file fixedOrientation.C.

References sixDoFRigidBodyMotionConstraint::read().

void write ( Ostream &   os  ) const [virtual]

Write.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 179 of file fixedOrientation.C.


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