51 accelerationCoeffs_(accelerationCoeffs)
62 scalar t = time_.value();
67 <<
"current time (" << t
68 <<
") is less than the minimum in the data table (" 73 if (t > times_.last())
76 <<
"current time (" << t
77 <<
") is greater than the maximum in the data table (" 78 << times_.last() <<
')' 89 Info <<
"Time = " << t <<
" accelerations: " << avs <<
endl;
100 accelerationCoeffs_ = accelerationCoeffs;
109 if (newTimeDataFileName != timeDataFileName_)
111 timeDataFileName_ = newTimeDataFileName;
113 IFstream dataStream(timeDataFileName_);
115 if (dataStream.
good())
122 times_.setSize(timeValues.
size());
123 values_.setSize(timeValues.
size());
127 times_[i] = timeValues[i].
first();
128 values_[i] = timeValues[i].second();
134 <<
"Cannot open time data file " << timeDataFileName_
void size(const label n)
Older name for setAddressableSize.
A class for handling file names.
errorManipArg< error, int > exit(error &err, const int errNo=1)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
A list of keyword definitions, which are a keyword followed by a number of values (eg...
#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...
Interpolates y values from one curve to another with a different x distribution.
T & first()
Access first element of the list, position [0].
Ostream & endl(Ostream &os)
Add newline and flush stream.
tabulated6DoFAcceleration(const dictionary &accelerationCoeffs, const Time &runTime)
Construct from components.
Class to control time during OpenFOAM simulations that is also the top-level objectRegistry.
#define forAll(list, i)
Loop across all elements in list.
Tabulated 6DoF acceleration.
Field< Type > interpolateSplineXY(const scalarField &xNew, const scalarField &xOld, const Field< Type > &yOld)
virtual Vector< vector > acceleration() const
Return the solid-body accelerations.
defineTypeNameAndDebug(combustionModel, 0)
Input from file stream as an ISstream, normally using std::ifstream for the actual input...
string & expand(const bool allowEmpty=false)
Inplace expand initial tags, tildes, and all occurrences of environment variables as per stringOps::e...
bool good() const noexcept
True if next operation might succeed.
messageStream Info
Information stream (stdout output on master, null elsewhere)
virtual bool read(const dictionary &accelerationCoeffs)
Update properties from given dictionary.