33 namespace solidBodyMotionFunctions
72 scalar t = time_.value();
74 const vector displacement = amplitude_*
sin(omega_*t);
92 SBMFCoeffs_.lookup(
"amplitude") >> amplitude_;
93 SBMFCoeffs_.lookup(
"omega") >> omega_;
Macros for easy insertion into run-time selection tables.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Quaternion class used to perform rotations in 3D space.
Septernion class used to perform translations and rotations in 3D space.
Base class for defining solid-body motions.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
SolidBodyMotionFvMesh 6DoF motion function. Oscillating displacement.
oscillatingLinearMotion(const dictionary &SBMFCoeffs, const Time &runTime)
Construct from components.
virtual ~oscillatingLinearMotion()
Destructor.
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
#define DebugInFunction
Report an information message using Foam::Info.
addToRunTimeSelectionTable(solidBodyMotionFunction, axisRotationMotion, dictionary)
defineTypeNameAndDebug(axisRotationMotion, 0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
dimensionedScalar sin(const dimensionedScalar &ds)
static scalar R(const scalar a, const scalar x)