Tabulated 6DoF motion function. More...
Public Member Functions | |
TypeName ("tabulated6DoFMotion") | |
Runtime type information. More... | |
tabulated6DoFMotion (const dictionary &SBMFCoeffs, const Time &runTime) | |
Construct from components. More... | |
virtual autoPtr< solidBodyMotionFunction > | clone () const |
Construct and return a clone. More... | |
virtual | ~tabulated6DoFMotion () |
Destructor. More... | |
virtual septernion | transformation () const |
Return the solid-body motion transformation septernion. More... | |
virtual bool | read (const dictionary &SBMFCoeffs) |
Update properties from given dictionary. More... | |
![]() | |
TypeName ("solidBodyMotionFunction") | |
Runtime type information. More... | |
declareRunTimeSelectionTable (autoPtr, solidBodyMotionFunction, dictionary,(const dictionary &SBMFCoeffs, const Time &runTime),(SBMFCoeffs, runTime)) | |
solidBodyMotionFunction (const dictionary &SBMFCoeffs, const Time &runTime) | |
Construct from the SBMFCoeffs dictionary and Time. More... | |
virtual | ~solidBodyMotionFunction () |
Destructor. More... | |
virtual void | writeData (Ostream &) const |
Write in dictionary format. More... | |
Private Types | |
typedef Vector2D< vector > | translationRotationVectors |
Type used to read in the translation and rotation "vectors". More... | |
Private Member Functions | |
tabulated6DoFMotion (const tabulated6DoFMotion &) | |
Disallow copy construct. More... | |
void | operator= (const tabulated6DoFMotion &) |
Disallow default bitwise assignment. More... | |
Private Attributes | |
fileName | timeDataFileName_ |
Time data file name read from dictionary. More... | |
vector | CofG_ |
Center of gravity read from dictionary. More... | |
scalarField | times_ |
Field of times. More... | |
Field< translationRotationVectors > | values_ |
Field of translation and rotation "vectors". More... | |
Additional Inherited Members | |
![]() | |
static autoPtr< solidBodyMotionFunction > | New (const dictionary &SBMFCoeffs, const Time &runTime) |
Select constructed from the SBMFCoeffs dictionary and Time. More... | |
![]() | |
dictionary | SBMFCoeffs_ |
const Time & | time_ |
Tabulated 6DoF motion function.
Obtained by interpolating tabulated data for surge (x-translation), sway (y-translation), heave (z-translation), roll (rotation about x), pitch (rotation about y) and yaw (rotation about z).
Definition at line 56 of file tabulated6DoFMotion.H.
|
private |
Type used to read in the translation and rotation "vectors".
Definition at line 69 of file tabulated6DoFMotion.H.
|
private |
Disallow copy construct.
tabulated6DoFMotion | ( | const dictionary & | SBMFCoeffs, |
const Time & | runTime | ||
) |
Construct from components.
Definition at line 55 of file tabulated6DoFMotion.C.
References Foam::read().
|
virtual |
Destructor.
Definition at line 68 of file tabulated6DoFMotion.C.
|
private |
Disallow default bitwise assignment.
TypeName | ( | "tabulated6DoFMotion" | ) |
Runtime type information.
|
inlinevirtual |
Construct and return a clone.
Implements solidBodyMotionFunction.
Definition at line 103 of file tabulated6DoFMotion.H.
References solidBodyMotionFunction::SBMFCoeffs_, and solidBodyMotionFunction::time_.
|
virtual |
Return the solid-body motion transformation septernion.
Implements solidBodyMotionFunction.
Definition at line 75 of file tabulated6DoFMotion.C.
References Foam::endl(), Foam::exit(), Foam::FatalError, FatalErrorInFunction, Foam::Info, Foam::interpolateSplineXY(), Foam::constant::mathematical::pi(), R, x, and y.
|
virtual |
Update properties from given dictionary.
Implements solidBodyMotionFunction.
Definition at line 118 of file tabulated6DoFMotion.C.
References Foam::exit(), string::expand(), Foam::FatalError, FatalErrorInFunction, forAll, IOstream::good(), solidBodyMotionFunction::read(), and List::size().
|
private |
Time data file name read from dictionary.
Definition at line 63 of file tabulated6DoFMotion.H.
|
private |
Center of gravity read from dictionary.
Definition at line 66 of file tabulated6DoFMotion.H.
|
private |
Field of times.
Definition at line 72 of file tabulated6DoFMotion.H.
|
private |
Field of translation and rotation "vectors".
Definition at line 75 of file tabulated6DoFMotion.H.
Copyright © 2011-2018 OpenFOAM | OPENFOAM® is a registered trademark of OpenCFD Ltd.