softWall Class Reference

sixDoFRigidBodyMotionRestraints model. Soft wall. More...

Inheritance diagram for softWall:
[legend]
Collaboration diagram for softWall:
[legend]

Public Member Functions

 TypeName ("softWall")
 Runtime type information. More...
 
 softWall (const word &name, const dictionary &sDoFRBMRDict)
 Construct from components. More...
 
virtual autoPtr< sixDoFRigidBodyMotionRestraintclone () const
 Construct and return a clone. More...
 
virtual ~softWall ()=default
 Destructor. More...
 
virtual void restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const
 Calculate the restraint position, force and moment. More...
 
virtual bool read (const dictionary &sDoFRBMRCoeff)
 Update properties from given dictionary. More...
 
virtual void write (Ostream &) const
 Write. More...
 
- Public Member Functions inherited from sixDoFRigidBodyMotionRestraint
 TypeName ("sixDoFRigidBodyMotionRestraint")
 Runtime type information. More...
 
 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. More...
 
virtual autoPtr< sixDoFRigidBodyMotionRestraintclone () const =0
 Construct and return a clone. More...
 
virtual ~sixDoFRigidBodyMotionRestraint ()
 Destructor. More...
 
const wordname () const
 Return the name. More...
 
virtual void restrain (const sixDoFRigidBodyMotion &motion, vector &restraintPosition, vector &restraintForce, vector &restraintMoment) const =0
 Calculate the restraint position, force and moment. More...
 
virtual bool read (const dictionary &sDoFRBMRDict)
 Update properties from given dictionary. More...
 
const dictionarycoeffDict () const
 
virtual void write (Ostream &) const =0
 Write. More...
 

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. More...
 
- Protected Attributes inherited from sixDoFRigidBodyMotionRestraint
word name_
 Name of the restraint. More...
 
dictionary sDoFRBMRCoeffs_
 Restraint model specific coefficient dictionary. More...
 

Detailed Description

sixDoFRigidBodyMotionRestraints model. Soft wall.

Source files

Definition at line 54 of file softWall.H.

Constructor & Destructor Documentation

◆ softWall()

softWall ( const word name,
const dictionary sDoFRBMRDict 
)

Construct from components.

Definition at line 52 of file softWall.C.

References Foam::name(), and softWall::read().

Here is the call graph for this function:

◆ ~softWall()

virtual ~softWall ( )
virtualdefault

Destructor.

Member Function Documentation

◆ TypeName()

TypeName ( "softWall"  )

Runtime type information.

◆ clone()

virtual autoPtr< sixDoFRigidBodyMotionRestraint > clone ( ) const
inlinevirtual

Construct and return a clone.

Implements sixDoFRigidBodyMotionRestraint.

Definition at line 93 of file softWall.H.

◆ 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 71 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 112 of file softWall.C.

References kEpsilonLopesdaCosta< BasicTurbulenceModel >::read().

Referenced by softWall::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 132 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: