36 namespace solidBodyMotionFunctions
41 solidBodyMotionFunction,
42 oscillatingRotatingMotion,
77 scalar t = time_.value();
79 vector eulerAngles = amplitude_*
sin(omega_*t);
82 eulerAngles *=
pi/180.0;
100 SBMFCoeffs_.lookup(
"origin") >> origin_;
101 SBMFCoeffs_.lookup(
"amplitude") >> amplitude_;
102 SBMFCoeffs_.lookup(
"omega") >> omega_;
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
A list of keyword definitions, which are a keyword followed by any number of values (e...
oscillatingRotatingMotion(const dictionary &SBMFCoeffs, const Time &runTime)
Construct from components.
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.
bool read(const char *, int32_t &)
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)
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual ~oscillatingRotatingMotion()
Destructor.
#define R(A, B, C, D, E, F, K, M)