39 namespace solidBodyMotionFunctions
49 Foam::solidBodyMotionFunctions::SDA::SDA
66 scalar time = time_.value();
68 scalar Tpi = Tp_ + dTp_*(time/dTi_);
69 scalar wr =
twoPi/Tpi;
73 scalar u = Tp_ + r*time;
77 scalar phs = phr +
pi;
82 scalar rollA =
max(rollAmax_*
exp(-
sqr(Tpi - Tpn_)/(2*Q_)), rollAmin_);
87 swayA_*(
sin(wr*time + phs) -
sin(phs)),
88 heaveA_*(
sin(wr*time + phh) -
sin(phh))
103 SBMFCoeffs_.readEntry(
"CofG", CofG_);
104 SBMFCoeffs_.readEntry(
"lamda", lamda_);
105 SBMFCoeffs_.readEntry(
"rollAmax", rollAmax_);
106 SBMFCoeffs_.readEntry(
"rollAmin", rollAmin_);
107 SBMFCoeffs_.readEntry(
"heaveA", heaveA_);
108 SBMFCoeffs_.readEntry(
"swayA", swayA_);
109 SBMFCoeffs_.readEntry(
"Q", Q_);
110 SBMFCoeffs_.readEntry(
"Tp", Tp_);
111 SBMFCoeffs_.readEntry(
"Tpn", Tpn_);
112 SBMFCoeffs_.readEntry(
"dTi", dTi_);
113 SBMFCoeffs_.readEntry(
"dTp", dTp_);
116 if (lamda_ > 1 + SMALL)
121 Tpn_ /=
sqrt(lamda_);
122 dTi_ /=
sqrt(lamda_);
123 dTp_ /=
sqrt(lamda_);
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
dimensionedScalar log(const dimensionedScalar &ds)
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
dimensionedScalar sqrt(const dimensionedScalar &ds)
Ostream & endl(Ostream &os)
Add newline and flush stream.
Septernion class used to perform translations and rotations in 3D space.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
Macros for easy insertion into run-time selection tables.
bool read(const char *buf, int32_t &val)
Same as readInt32.
dimensionedScalar exp(const dimensionedScalar &ds)
Base class for defining solid-body motions.
constexpr scalar twoPi(2 *M_PI)
#define DebugInFunction
Report an information message using Foam::Info.
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
constexpr scalar pi(M_PI)
Quaternion class used to perform rotations in 3D space.
constexpr scalar piByTwo(0.5 *M_PI)
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
#define R(A, B, C, D, E, F, K, M)
virtual septernion transformation() const
Return the solid-body motion transformation septernion.