Go to the documentation of this file.
38 <<
"Table " <<
name() <<
": must have at least 2 values." <<
nl
39 <<
"Table size = " << size() <<
nl
40 <<
" min, interval width = " << x0_ <<
", " << dx_ <<
nl
66 dict.lookup(
"data") >> *
this;
67 dict.lookup(
"x0") >> x0_;
68 dict.lookup(
"dx") >> dx_;
69 dict.readIfPresent(
"log10", log10_);
70 dict.readIfPresent(
"bound", bound_);
80 const word& tableName,
83 const bool initialiseOnly
98 log10_(
dict.lookupOrDefault<
Switch>(
"log10",
false)),
99 bound_(
dict.lookupOrDefault<
Switch>(
"bound",
false))
109 dict.lookup(
"data") >> *
this;
154 <<
"Supplied value is less than minimum table value:" <<
nl
155 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl
162 <<
"Supplied value is greater than maximum table value:" <<
nl
163 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl
170 const scalar xLo = x0_ + i*dx_;
172 Type fx = (
x - xLo)/dx_*(
operator[](i+1) - operator[](i)) +
operator[](i);
176 Info<<
"Table: " <<
name() <<
", x=" <<
x
177 <<
", x_lo=" << xLo <<
", x_hi=" << xLo + dx_
178 <<
", f(x_lo)=" << operator[](i) <<
", f(x_hi)=" << operator[](i+1)
179 <<
", f(x)=" << fx <<
endl;
198 else if (bound_ && (
x <= 0))
205 <<
"Table " <<
name() <<
nl
206 <<
"Supplied value must be greater than 0 when in log10 mode"
225 dict.add(
"log10", log10_);
229 dict.add(
"bound", bound_);
232 dict.regIOobject::writeObject
235 IOstream::currentVersion,
236 dict.time().writeCompression()
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
points setSize(newPointi)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A class for handling words, derived from string.
const Time & time() const
Return time.
tmp< surfaceScalarField > interpolate(const RhoType &rho)
Ostream & endl(Ostream &os)
Add newline and flush stream.
This function object reads fields from the time directories and adds them to the mesh database for fu...
Registry of regIOobjects.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
dimensionedScalar log10(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e....
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")))
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word & constant() const
Return constant name.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.