Go to the documentation of this file.
36 namespace solidBodyMotionFunctions
53 CofG_(SBMFCoeffs_.lookup(
"CofG"))
69 scalar time = time_.value();
71 scalar Tpi = Tp_ + dTp_*(time/dTi_);
72 scalar wr =
twoPi/Tpi;
76 scalar u = Tp_ + r*time;
80 scalar phs = phr +
pi;
85 scalar rollA =
max(rollAmax_*
exp(-
sqr(Tpi - Tpn_)/(2*Q_)), rollAmin_);
90 swayA_*(
sin(wr*time + phs) -
sin(phs)),
91 heaveA_*(
sin(wr*time + phh) -
sin(phh))
96 Info<<
"solidBodyMotionFunctions::SDA::transformation(): "
97 <<
"Time = " << time <<
" transformation: " << TR <<
endl;
107 SBMFCoeffs_.lookup(
"CofG") >> CofG_;
108 SBMFCoeffs_.lookup(
"lamda") >> lamda_;
109 SBMFCoeffs_.lookup(
"rollAmax") >> rollAmax_;
110 SBMFCoeffs_.lookup(
"rollAmin") >> rollAmin_;
111 SBMFCoeffs_.lookup(
"heaveA") >> heaveA_;
112 SBMFCoeffs_.lookup(
"swayA") >> swayA_;
113 SBMFCoeffs_.lookup(
"Q") >> Q_;
114 SBMFCoeffs_.lookup(
"Tp") >> Tp_;
115 SBMFCoeffs_.lookup(
"Tpn") >> Tpn_;
116 SBMFCoeffs_.lookup(
"dTi") >> dTi_;
117 SBMFCoeffs_.lookup(
"dTp") >> dTp_;
120 if (lamda_ > 1 + SMALL)
125 Tpn_ /=
sqrt(lamda_);
126 dTi_ /=
sqrt(lamda_);
127 dTp_ /=
sqrt(lamda_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Septernion class used to perform translations and rotations in 3D space.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
dimensionedScalar sin(const dimensionedScalar &ds)
bool read(const char *, int32_t &)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar exp(const dimensionedScalar &ds)
const scalar twoPi(2 *pi)
dimensioned< scalar > mag(const dimensioned< Type > &)
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
Quaternion class used to perform rotations in 3D space.
const scalar piByTwo(0.5 *pi)
#define R(A, B, C, D, E, F, K, M)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
Base class for defining solid-body motions.
A list of keyword definitions, which are a keyword followed by any number of values (e....
dimensionedScalar log(const dimensionedScalar &ds)
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
virtual ~SDA()
Destructor.
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
dimensionedSymmTensor sqr(const dimensionedVector &dv)
SDA(const SDA &)
Disallow copy construct.
dimensionedScalar sqrt(const dimensionedScalar &ds)
defineTypeNameAndDebug(combustionModel, 0)
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.