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") | |
softWall (const word &name, const dictionary &dict, const rigidBodyModel &model) | |
virtual autoPtr< restraint > | clone () const |
virtual | ~softWall () |
virtual void | restrain (scalarField &tau, Field< spatialVector > &fx, const rigidBodyModelState &state) const |
virtual bool | read (const dictionary &dict) |
virtual void | write (Ostream &) const |
![]() | |
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 word & | name () const |
label | bodyID () const |
const dictionary & | coeffDict () const |
Additional Inherited Members | |
![]() | |
static autoPtr< restraint > | New (const word &name, const dictionary &dict, const rigidBodyModel &model) |
![]() | |
point | bodyPoint (const point &p) const |
spatialVector | bodyPointVelocity (const point &p) const |
![]() | |
word | name_ |
label | bodyID_ |
label | bodyIndex_ |
dictionary | coeffs_ |
const rigidBodyModel & | model_ |
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 59 of file softWall.H.
softWall | ( | const word & | name, |
const dictionary & | dict, | ||
const rigidBodyModel & | model | ||
) |
Definition at line 50 of file softWall.C.
References dict, and Foam::blockMeshTools::read().
Referenced by softWall::clone().
|
virtual |
Definition at line 64 of file softWall.C.
TypeName | ( | "softWall" | ) |
Implements restraint.
Definition at line 99 of file softWall.H.
References softWall::softWall().
|
virtual |
Implements restraint.
Definition at line 71 of file softWall.C.
References Foam::endl(), Foam::Info, Foam::mag(), Foam::nl, p, Foam::sqr(), and VectorSpace< Vector< scalar >, scalar, 3 >::zero.
|
virtual |
Reimplemented from restraint.
Definition at line 124 of file softWall.C.
References dict, and restraint::read().
|
virtual |
Implements restraint.
Definition at line 141 of file softWall.C.
References os(), and restraint::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.