33 namespace solidBodyMotionFunctions
38 solidBodyMotionFunction,
39 oscillatingLinearMotion,
72 scalar t = time_.value();
74 const vector displacement = amplitude_*
sin(omega_*t);
92 SBMFCoeffs_.lookup(
"amplitude") >> amplitude_;
93 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...
Ostream & endl(Ostream &os)
Add newline and flush stream.
virtual ~oscillatingLinearMotion()
Destructor.
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)
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.
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
dimensionedScalar sin(const dimensionedScalar &ds)
#define R(A, B, C, D, E, F, K, M)
addToRunTimeSelectionTable(solidBodyMotionFunction, axisRotationMotion, dictionary)
oscillatingLinearMotion(const dictionary &SBMFCoeffs, const Time &runTime)
Construct from components.