Loading...
Searching...
No Matches
softWall Class Reference

sixDoFRigidBodyMotionRestraints model. Soft wall. More...

#include <softWall.H>

Inheritance diagram for softWall:
Collaboration diagram for softWall:

Public Member Functions

 TypeName ("softWall")
 Runtime type information.
 softWall (const word &name, const dictionary &sDoFRBMRDict)
 Construct from components.
virtual autoPtr< sixDoFRigidBodyMotionRestraintclone () const
 Construct and return a clone.
virtual ~softWall ()=default
 Destructor.
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.
Public Member Functions inherited from sixDoFRigidBodyMotionRestraint
 TypeName ("sixDoFRigidBodyMotionRestraint")
 Runtime type information.
 declareRunTimeSelectionTable (autoPtr, sixDoFRigidBodyMotionRestraint, dictionary,(const word &name, const dictionary &sDoFRBMRDict),(name, sDoFRBMRDict))
 sixDoFRigidBodyMotionRestraint (const word &name, const dictionary &sDoFRBMRDict)
 Construct from the sDoFRBMRDict dictionary and Time.
virtual ~sixDoFRigidBodyMotionRestraint ()
 Destructor.
const wordname () const
 Return the name.
const dictionarycoeffDict () const

Additional Inherited Members

Static Public Member Functions inherited from sixDoFRigidBodyMotionRestraint
static autoPtr< sixDoFRigidBodyMotionRestraintNew (const word &name, const dictionary &sDoFRBMRDict)
 Select constructed from the sDoFRBMRDict dictionary and Time.
Protected Attributes inherited from sixDoFRigidBodyMotionRestraint
word name_
 Name of the restraint.
dictionary sDoFRBMRCoeffs_
 Restraint model specific coefficient dictionary.

Detailed Description

sixDoFRigidBodyMotionRestraints model. Soft wall.

Source files

Definition at line 50 of file softWall.H.

Constructor & Destructor Documentation

◆ softWall()

softWall ( const word & name,
const dictionary & sDoFRBMRDict )

Construct from components.

Definition at line 45 of file softWall.C.

References sixDoFRigidBodyMotionRestraint::name(), read(), sixDoFRigidBodyMotionRestraint::sixDoFRigidBodyMotionRestraint(), and Foam::Zero.

Referenced by clone().

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

◆ ~softWall()

virtual ~softWall ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "softWall" )

Runtime type information.

References sixDoFRigidBodyMotionRestraint::name().

Here is the call graph for this function:

◆ clone()

virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone ( ) const
inlinevirtual

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 105 of file softWall.H.

References softWall().

Here is the call graph for this function:

◆ restrain()

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 64 of file softWall.C.

References Foam::endl(), Foam::Info, Foam::mag(), sixDoFRigidBodyMotion::mass(), sixDoFRigidBodyMotion::report(), Foam::sqr(), sixDoFRigidBodyMotion::transform(), sixDoFRigidBodyMotion::velocity(), and Foam::Zero.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary & sDoFRBMRCoeff)
virtual

Update properties from given dictionary.

Reimplemented from sixDoFRigidBodyMotionRestraint.

Definition at line 105 of file softWall.C.

References sixDoFRigidBodyMotionRestraint::read(), and sixDoFRigidBodyMotionRestraint::sDoFRBMRCoeffs_.

Referenced by softWall().

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

◆ write()

void write ( Ostream & os) const
virtual

Write.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 125 of file softWall.C.

References os().

Here is the call graph for this function:

The documentation for this class was generated from the following files:
  • src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/softWall/softWall.H
  • src/sixDoFRigidBodyMotion/sixDoFRigidBodyMotion/restraints/softWall/softWall.C