41namespace solidBodyMotionFunctions
73 scalar t = time_.value();
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_);
#define R(A, B, C, D, E, F, K, M)
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Input from file stream, using an ISstream.
bool good() const noexcept
True if next operation might succeed.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
virtual bool read()
Re-read model coefficients if they have changed.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
T & first()
Return the first element of the list.
void size(const label n)
Older name for setAddressableSize.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
A class for handling file names.
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.
Tabulated 6DoF motion function.
virtual septernion transformation() const
Return the solid-body motion transformation septernion.
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
string & expand(const bool allowEmpty=false)
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Interpolates y values from one curve to another with a different x distribution.
#define DebugInFunction
Report an information message using Foam::Info.
Ostream & endl(Ostream &os)
Add newline and flush stream.
constexpr scalar degToRad() noexcept
Multiplication factor for degrees to radians conversion.
errorManipArg< error, int > exit(error &err, const int errNo=1)
Field< Type > interpolateSplineXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)
#define forAll(list, i)
Loop across all elements in list.
Unit conversion functions.