Restraint setting angular velocity of the rigid body. Developed from the linear axial angular spring restraint. More...
Public Member Functions | |
TypeName ("prescribedRotation") | |
prescribedRotation (const word &name, const dictionary &dict, const rigidBodyModel &model) | |
virtual autoPtr< restraint > | clone () const |
virtual | ~prescribedRotation () |
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_ |
Restraint setting angular velocity of the rigid body. Developed from the linear axial angular spring restraint.
Adds a rotation along given axis to the body. Used for a combination of 6DOF bodies where one is driven by 6DOF and the other attached to it using specified rotation in the local reference frame.
Property | Description | Required | Default value |
---|---|---|---|
referenceOrientation | Orientation | no | I |
axis | Rotation axis (in reference) | yes | |
omega | Angular velocity (rad/s) | yes | |
relax | Relax moment with previous iter | yes | |
p | Propoptional corrector for PDI | yes | |
d | Differential corrector for PDI | yes | |
i | Integral corrector for PDI | yes |
Definition at line 108 of file prescribedRotation.H.
prescribedRotation | ( | const word & | name, |
const dictionary & | dict, | ||
const rigidBodyModel & | model | ||
) |
Definition at line 50 of file prescribedRotation.C.
References dict, and Foam::blockMeshTools::read().
Referenced by prescribedRotation::clone().
|
virtual |
Definition at line 69 of file prescribedRotation.C.
TypeName | ( | "prescribedRotation" | ) |
Implements restraint.
Definition at line 161 of file prescribedRotation.H.
References prescribedRotation::prescribedRotation().
|
virtual |
Implements restraint.
Definition at line 76 of file prescribedRotation.C.
References Foam::acos(), Foam::endl(), Foam::Info, Foam::mag(), Foam::min(), Foam::rotationTensor(), Foam::sign(), Field::T(), and Foam::Zero.
|
virtual |
Reimplemented from restraint.
Definition at line 164 of file prescribedRotation.C.
References Foam::abort(), dict, Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::I, Foam::mag(), Foam::nl, restraint::read(), and Foam::sqrt().
|
virtual |
Implements restraint.
Definition at line 210 of file prescribedRotation.C.
References os(), and restraint::write().
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.