Public Member Functions | List of all members
linearDamper Class Reference

Linear damper restraint. Operates in the local frame of the body. More...

Inheritance diagram for linearDamper:
Inheritance graph
[legend]
Collaboration diagram for linearDamper:
Collaboration graph
[legend]

Public Member Functions

 TypeName ("linearDamper")
 
 linearDamper (const word &name, const dictionary &dict, const rigidBodyModel &model)
 
virtual autoPtr< restraintclone () const
 
virtual ~linearDamper ()
 
virtual void restrain (scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const
 
virtual bool read (const dictionary &dict)
 
virtual void write (Ostream &) const
 
- Public Member Functions inherited from restraint
 TypeName ("restraint")
 
 declareRunTimeSelectionTable (autoPtr, restraint, dictionary,(const word &name, const dictionary &dict, const rigidBodyModel &model),(name, dict, model))
 
 restraint (const word &name, const dictionary &dict, const rigidBodyModel &model)
 
virtual ~restraint ()
 
const wordname () const
 
label bodyID () const
 
const dictionarycoeffDict () const
 

Additional Inherited Members

- Static Public Member Functions inherited from restraint
static autoPtr< restraintNew (const word &name, const dictionary &dict, const rigidBodyModel &model)
 
- Protected Member Functions inherited from restraint
point bodyPoint (const point &p) const
 
spatialVector bodyPointVelocity (const point &p) const
 
- Protected Attributes inherited from restraint
word name_
 
label bodyID_
 
label bodyIndex_
 
dictionary coeffs_
 
const rigidBodyModelmodel_
 

Detailed Description

Linear damper restraint. Operates in the local frame of the body.

Source files

Definition at line 53 of file linearDamper.H.

Constructor & Destructor Documentation

◆ linearDamper()

linearDamper ( const word name,
const dictionary dict,
const rigidBodyModel model 
)

Definition at line 49 of file linearDamper.C.

References dict, and Foam::blockMeshTools::read().

Referenced by linearDamper::clone().

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

◆ ~linearDamper()

~linearDamper ( )
virtual

Definition at line 63 of file linearDamper.C.

Member Function Documentation

◆ TypeName()

TypeName ( "linearDamper"  )

◆ clone()

virtual autoPtr<restraint> clone ( ) const
inlinevirtual

Implements restraint.

Definition at line 80 of file linearDamper.H.

References linearDamper::linearDamper().

Here is the call graph for this function:

◆ restrain()

void restrain ( scalarField tau,
Field< spatialVector > &  fx,
const rigidBodyModelState state 
) const
virtual

Implements restraint.

Definition at line 70 of file linearDamper.C.

References Foam::endl(), Foam::Info, Field::T(), and Foam::Zero.

Here is the call graph for this function:

◆ read()

bool read ( const dictionary dict)
virtual

Reimplemented from restraint.

Definition at line 89 of file linearDamper.C.

References dict, and restraint::read().

Here is the call graph for this function:

◆ write()

void write ( Ostream os) const
virtual

Implements restraint.

Definition at line 102 of file linearDamper.C.

References os(), and restraint::write().

Here is the call graph for this function:

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