Go to the documentation of this file.
41 namespace solidBodyMotionFunctions
46 solidBodyMotionFunction,
56 Foam::solidBodyMotionFunctions::tabulated6DoFMotion::tabulated6DoFMotion
78 <<
"current time (" << t
79 <<
") is less than the minimum in the data table ("
84 if (t > times_.last())
87 <<
"current time (" << t
88 <<
") is greater than the maximum in the data table ("
89 << times_.last() <<
')'
126 if (newTimeDataFileName != timeDataFileName_)
128 timeDataFileName_ = newTimeDataFileName;
130 IFstream dataStream(timeDataFileName_);
132 if (dataStream.
good())
139 times_.setSize(timeValues.size());
140 values_.setSize(timeValues.size());
144 times_[i] = timeValues[i].first();
145 values_[i] = timeValues[i].second();
151 <<
"Cannot open time data file " << timeDataFileName_
156 SBMFCoeffs_.readEntry(
"CofG", CofG_);
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
A class for handling file names.
Septernion class used to perform translations and rotations in 3D space.
addToRunTimeSelectionTable(solidBodyMotionFunction, axisRotationMotion, dictionary)
Input from file stream, using an ISstream.
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
Unit conversion functions.
Ostream & endl(Ostream &os)
Add newline and flush stream.
const Type & value() const
Return const reference to value.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
#define forAll(list, i)
Loop across all elements in list.
Quaternion class used to perform rotations in 3D space.
#define R(A, B, C, D, E, F, K, M)
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
#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,...
Macros for easy insertion into run-time selection tables.
constexpr scalar degToRad(const scalar deg) noexcept
Conversion from degrees to radians.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
string & expand(const bool allowEmpty=false)
Interpolates y values from one curve to another with a different x distribution.
bool good() const
Return true if next operation might succeed.
Field< Type > interpolateSplineXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)