Time-dependent external force restraint using Function1. More...
Public Member Functions | |
TypeName ("externalForce") | |
Runtime type information. More... | |
externalForce (const word &name, const dictionary &dict, const rigidBodyModel &model) | |
Construct from components. More... | |
virtual autoPtr< restraint > | clone () const |
Construct and return a clone. More... | |
virtual | ~externalForce () |
Destructor. More... | |
virtual void | restrain (scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const |
Accumulate the retraint internal joint forces into the tau field and. More... | |
virtual bool | read (const dictionary &dict) |
Update properties from given dictionary. More... | |
virtual void | write (Ostream &) const |
Write. More... | |
Public Member Functions inherited from restraint | |
TypeName ("restraint") | |
Runtime type information. More... | |
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) | |
Construct from the dict dictionary and Time. More... | |
virtual | ~restraint () |
Destructor. More... | |
const word & | name () const |
Return the name. More... | |
label | bodyID () const |
const dictionary & | coeffDict () const |
Return access to coeffs. More... | |
Additional Inherited Members | |
Static Public Member Functions inherited from restraint | |
static autoPtr< restraint > | New (const word &name, const dictionary &dict, const rigidBodyModel &model) |
Select constructed from the dict dictionary and Time. More... | |
Protected Member Functions inherited from restraint | |
point | bodyPoint (const point &p) const |
Transform the given point on the restrained body to the global frame. More... | |
spatialVector | bodyPointVelocity (const point &p) const |
Transform the velocity of the given point on the restrained body. More... | |
Protected Attributes inherited from restraint | |
word | name_ |
Name of the restraint. More... | |
label | bodyID_ |
ID of the body the restraint is applied to. More... | |
label | bodyIndex_ |
Index of the body the force is applied to. More... | |
dictionary | coeffs_ |
Restraint model specific coefficient dictionary. More... | |
const rigidBodyModel & | model_ |
Reference to the model. More... | |
Time-dependent external force restraint using Function1.
restraints { force { type externalForce; body floatingObject; location (0 0 0); force (100 0 0); } }
Definition at line 68 of file externalForce.H.
externalForce | ( | const word & | name, |
const dictionary & | dict, | ||
const rigidBodyModel & | model | ||
) |
Construct from components.
Definition at line 56 of file externalForce.C.
References Foam::read().
Referenced by externalForce::clone().
|
virtual |
Destructor.
Definition at line 71 of file externalForce.C.
References externalForce::restrain().
Referenced by externalForce::clone().
TypeName | ( | "externalForce" | ) |
Runtime type information.
Construct and return a clone.
Implements restraint.
Definition at line 98 of file externalForce.H.
References externalForce::externalForce(), externalForce::read(), externalForce::restrain(), externalForce::write(), and externalForce::~externalForce().
|
virtual |
Accumulate the retraint internal joint forces into the tau field and.
external forces into the fx field
Implements restraint.
Definition at line 78 of file externalForce.C.
References Foam::endl(), Foam::Info, externalForce::read(), and rigidBodyModelState::t().
Referenced by externalForce::clone(), and externalForce::~externalForce().
|
virtual |
Update properties from given dictionary.
Reimplemented from restraint.
Definition at line 101 of file externalForce.C.
References Function1< Type >::New(), restraint::read(), and externalForce::write().
Referenced by externalForce::clone(), and externalForce::restrain().
|
virtual |
Write.
Implements restraint.
Definition at line 116 of file externalForce.C.
References restraint::write(), and Foam::writeEntry().
Referenced by externalForce::clone(), and externalForce::read().