Go to the documentation of this file.
36 namespace solidBodyMotionFunctions
41 solidBodyMotionFunction,
51 Foam::solidBodyMotionFunctions::drivenLinearMotion::drivenLinearMotion
58 CofGvelocity_(SBMFCoeffs.
get<
word>(
"CofGvelocity")),
67 IOobject::READ_IF_PRESENT,
75 if (
mag(normal_) > SMALL)
77 normal_ /= (
mag(normal_) + SMALL);
92 if (
mag(normal_) > SMALL)
94 velocity = CofGvel_.
value() - ((CofGvel_.
value() & normal_)*normal_);
101 displacement_ += velocity*deltaT;
107 <<
" transformation: " << TR <<
endl;
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling words, derived from Foam::string.
Septernion class used to perform translations and rotations in 3D space.
dimensionedScalar deltaT() const
Return time step.
addToRunTimeSelectionTable(solidBodyMotionFunction, axisRotationMotion, dictionary)
static constexpr const zero Zero
Global zero (0)
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Quaternion class used to perform rotations in 3D space.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
#define R(A, B, C, D, E, F, K, M)
#define DebugInFunction
Report an information message using Foam::Info.
Base class for defining solid-body motions.
defineTypeNameAndDebug(axisRotationMotion, 0)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
T getOrDefault(const word &keyword, const T &deflt, enum keyType::option matchOpt=keyType::REGEX) const