Go to the documentation of this file.
39 namespace solidBodyMotionFunctions
44 solidBodyMotionFunction,
77 scalar t = time_.value();
82 <<
"current time (" << t
83 <<
") is less than the minimum in the data table ("
88 if (t > times_.last())
91 <<
"current time (" << t
92 <<
") is greater than the maximum in the data table ("
93 << times_.last() <<
')'
110 Info<<
"solidBodyMotionFunctions::tabulated6DoFMotion::transformation(): "
111 <<
"Time = " << t <<
" transformation: " << TR <<
endl;
131 if (newTimeDataFileName != timeDataFileName_)
133 timeDataFileName_ = newTimeDataFileName;
135 IFstream dataStream(timeDataFileName_);
137 if (dataStream.
good())
144 times_.setSize(timeValues.
size());
145 values_.setSize(timeValues.
size());
149 times_[i] = timeValues[i].first();
150 values_[i] = timeValues[i].second();
156 <<
"Cannot open time data file " << timeDataFileName_
161 SBMFCoeffs_.lookup(
"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.
#define forAll(list, i)
Loop across all elements in list.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
bool read(const char *, int32_t &)
virtual bool read(const dictionary &SBMFCoeffs)
Update properties from given dictionary.
virtual ~tabulated6DoFMotion()
Destructor.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Templated 2D Vector derived from VectorSpace adding construction from 2 components,...
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.
Base class for defining solid-body motions.
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
virtual bool read(const dictionary &SBMFCoeffs)=0
Update properties from given dictionary.
errorManipArg< error, int > exit(error &err, const int errNo=1)
tabulated6DoFMotion(const tabulated6DoFMotion &)
Disallow copy construct.
#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)
Expand initial tildes and all occurences of environment variables.
void size(const label)
Override size to be inconsistent with allocated storage.
Interpolates y values from one curve to another with a different x distribution.
bool good() const
Return true if next operation might succeed.
defineTypeNameAndDebug(combustionModel, 0)
Field< Type > interpolateSplineXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)