37 <<
"Table " <<
name() <<
": must have at least 2 values." <<
nl 38 <<
"Table size = " << size() <<
nl 39 <<
" min, interval width = " << x0_ <<
", " << dx_ <<
nl 65 dict.
lookup(
"data") >> *
this;
79 const word& tableName,
82 const bool initialiseOnly
108 dict.
lookup(
"data") >> *
this;
153 <<
"Supplied value is less than minimum table value:" <<
nl 154 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" << x <<
nl 161 <<
"Supplied value is greater than maximum table value:" <<
nl 162 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" << x <<
nl 167 const label i =
static_cast<label>((x - x0_)/dx_);
169 const scalar xLo = x0_ + i*dx_;
171 Type fx = (x - xLo)/dx_*(
operator[](i+1) - operator[](i)) +
operator[](i);
175 Info<<
"Table: " <<
name() <<
", x=" << x
176 <<
", x_lo=" << xLo <<
", x_hi=" << xLo + dx_
177 <<
", f(x_lo)=" << operator[](i) <<
", f(x_hi)=" << operator[](i+1)
178 <<
", f(x)=" << fx <<
endl;
197 else if (bound_ && (x <= 0))
204 <<
"Table " <<
name() <<
nl 205 <<
"Supplied value must be greater than 0 when in log10 mode" 224 dict.
add(
"log10", log10_);
228 dict.
add(
"bound", bound_);
231 dict.regIOobject::write();
const Time & time() const
Return time.
const label nIntervals(readLabel(pdfDictionary.lookup("nIntervals")))
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
errorManipArg< error, int > exit(error &err, const int errNo=1)
A list of keyword definitions, which are a keyword followed by any number of values (e...
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & endl(Ostream &os)
Add newline and flush stream.
A simple wrapper around bool so that it can be read as a word: true/false, on/off, yes/no, y/n, t/f, or none.
tmp< surfaceScalarField > interpolate(const RhoType &rho)
bool add(entry *, bool mergeEntry=false)
Add a new entry.
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const HashSet< word > &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the specified type.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
points setSize(newPointi)
A class for handling words, derived from string.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
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.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
dimensionedScalar log10(const dimensionedScalar &ds)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.