Soft wall is a Damper-Linear spring restraint. Acts as a "soft" wall when the distance between 'anchor' and 'refAttachmentPt' in the wallNormal direction becomes negative. More...
Public Member Functions | |
TypeName ("softWall") | |
Runtime type information. More... | |
softWall (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 | ~softWall () |
Destructor. More... | |
virtual void | restrain (scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const |
Accumulate the restraint 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... | |
![]() | |
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 autoPtr< restraint > | New (const word &name, const dictionary &dict, const rigidBodyModel &model) |
Select constructed from the dict dictionary and Time. More... | |
![]() | |
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... | |
![]() | |
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... | |
Soft wall is a Damper-Linear spring restraint. Acts as a "soft" wall when the distance between 'anchor' and 'refAttachmentPt' in the wallNormal direction becomes negative.
A system of spring-damper is activated to simulate a soft collision de-acceleration.
Definition at line 63 of file softWall.H.
softWall | ( | const word & | name, |
const dictionary & | dict, | ||
const rigidBodyModel & | model | ||
) |
Construct from components.
Definition at line 57 of file softWall.C.
References dict, and Foam::blockMeshTools::read().
Referenced by softWall::clone().
|
virtual |
Destructor.
Definition at line 71 of file softWall.C.
TypeName | ( | "softWall" | ) |
Runtime type information.
Construct and return a clone.
Implements restraint.
Definition at line 103 of file softWall.H.
References softWall::softWall().
|
virtual |
Accumulate the restraint internal joint forces into the tau field and.
external forces into the fx field
Implements restraint.
Definition at line 78 of file softWall.C.
References Foam::endl(), Foam::Info, Foam::mag(), Foam::nl, p, Foam::sqr(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
|
virtual |
Update properties from given dictionary.
Reimplemented from restraint.
Definition at line 131 of file softWall.C.
References dict, and restraint::read().
|
virtual |
Write.
Implements restraint.
Definition at line 148 of file softWall.C.
References os(), and restraint::write().