37 namespace solidBodyMotionFunctions
42 solidBodyMotionFunction,
43 oscillatingRotatingMotion,
52 Foam::solidBodyMotionFunctions::oscillatingRotatingMotion::
53 oscillatingRotatingMotion
71 scalar t = time_.value();
73 vector eulerAngles = amplitude_*
sin(omega_*t);
94 SBMFCoeffs_.readEntry(
"origin", origin_);
95 SBMFCoeffs_.readEntry(
"amplitude", amplitude_);
96 SBMFCoeffs_.readEntry(
"omega", omega_);
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
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.
defineTypeNameAndDebug(axisRotationMotion, 0)
Base class for defining solid-body motions.
#define DebugInFunction
Report an information message using Foam::Info.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
Quaternion class used to perform rotations in 3D space.
dimensionedScalar sin(const dimensionedScalar &ds)
A Vector of values with scalar precision, where scalar is float/double depending on the compilation f...
#define R(A, B, C, D, E, F, K, M)
addToRunTimeSelectionTable(solidBodyMotionFunction, axisRotationMotion, dictionary)
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.