Loading...
Searching...
No Matches
point Class Reference

Translation constraint on the centre of rotation: fixed in space. More...

#include <sixDoFRigidBodyMotionPointConstraint.H>

Inheritance diagram for point:
Collaboration diagram for point:

Public Member Functions

 TypeName ("point")
 Runtime type information.
 point (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
 Construct from components.
virtual autoPtr< sixDoFRigidBodyMotionConstraintclone () const
 Construct and return a clone.
virtual ~point ()
 Destructor.
virtual void setCentreOfRotation (Foam::point &) const
 Set the centre of rotation to the point.
virtual void constrainTranslation (pointConstraint &) const
 Apply and accumulate translational constraints.
virtual void constrainRotation (pointConstraint &) const
 Apply and accumulate rotational constraints.
virtual bool read (const dictionary &sDoFRBMCCoeff)
 Update properties from given dictionary.
virtual void write (Ostream &) const
 Write.
Public Member Functions inherited from sixDoFRigidBodyMotionConstraint
 TypeName ("sixDoFRigidBodyMotionConstraint")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionConstraint, dictionary,(const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion),(name, sDoFRBMCDict, motion))
 sixDoFRigidBodyMotionConstraint (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
 Construct from the sDoFRBMCDict dictionary and Time.
virtual ~sixDoFRigidBodyMotionConstraint ()
 Destructor.
const wordname () const
 Return the name.
const dictionarycoeffDict () const
const sixDoFRigidBodyMotionmotion () const noexcept
 Return const access to motion.

Additional Inherited Members

Static Public Member Functions inherited from sixDoFRigidBodyMotionConstraint
static autoPtr< sixDoFRigidBodyMotionConstraintNew (const word &name, const dictionary &sDoFRBMCDict, const sixDoFRigidBodyMotion &motion)
 Select constructed from the sDoFRBMCDict dictionary and Time.
Protected Attributes inherited from sixDoFRigidBodyMotionConstraint
word name_
 Name of the constraint.
dictionary sDoFRBMCCoeffs_
 Constraint model specific coefficient dictionary.
const sixDoFRigidBodyMotionmotion_
 Reference to the body motion.

Detailed Description

Translation constraint on the centre of rotation: fixed in space.

If 'centreOfRotation' is not provided in the dictionary the centre of mass is used.

Source files

Definition at line 54 of file sixDoFRigidBodyMotionPointConstraint.H.

Constructor & Destructor Documentation

◆ point()

point ( const word & name,
const dictionary & sDoFRBMCDict,
const sixDoFRigidBodyMotion & motion )

Construct from components.

Definition at line 46 of file sixDoFRigidBodyMotionPointConstraint.C.

References sixDoFRigidBodyMotionConstraint::motion(), sixDoFRigidBodyMotionConstraint::name(), point(), read(), and sixDoFRigidBodyMotionConstraint::sixDoFRigidBodyMotionConstraint().

Referenced by point().

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

◆ ~point()

~point ( )
virtual

Destructor.

Definition at line 62 of file sixDoFRigidBodyMotionPointConstraint.C.

References ~point().

Referenced by ~point().

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

Member Function Documentation

◆ TypeName()

TypeName ( "point" )

Runtime type information.

References sixDoFRigidBodyMotionConstraint::motion(), and sixDoFRigidBodyMotionConstraint::name().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< sixDoFRigidBodyMotionConstraint > clone ( ) const
inlinevirtual

Construct and return a clone.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 89 of file sixDoFRigidBodyMotionPointConstraint.H.

◆ setCentreOfRotation()

void setCentreOfRotation ( Foam::point & CofR) const
virtual

Set the centre of rotation to the point.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 68 of file sixDoFRigidBodyMotionPointConstraint.C.

References setCentreOfRotation().

Referenced by setCentreOfRotation().

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

◆ constrainTranslation()

void constrainTranslation ( pointConstraint & pc) const
virtual

Apply and accumulate translational constraints.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 77 of file sixDoFRigidBodyMotionPointConstraint.C.

References pointConstraint::combine(), constrainTranslation(), and Foam::Zero.

Referenced by constrainTranslation().

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

◆ constrainRotation()

void constrainRotation ( pointConstraint & pc) const
virtual

Apply and accumulate rotational constraints.

Implements sixDoFRigidBodyMotionConstraint.

Definition at line 86 of file sixDoFRigidBodyMotionPointConstraint.C.

References constrainRotation().

Referenced by constrainRotation().

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

◆ read()

bool read ( const dictionary & sDoFRBMCCoeff)
virtual

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 93 of file sixDoFRigidBodyMotionPointConstraint.C.

References sixDoFRigidBodyMotionConstraint::motion_, sixDoFRigidBodyMotionConstraint::read(), read(), and sixDoFRigidBodyMotionConstraint::sDoFRBMCCoeffs_.

Referenced by point(), and read().

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

◆ write()

void write ( Ostream & os) const
virtual

Write.

Reimplemented from sixDoFRigidBodyMotionConstraint.

Definition at line 110 of file sixDoFRigidBodyMotionPointConstraint.C.

References os(), and write().

Referenced by write().

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

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