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;
80 const word& tableName,
83 const bool initialiseOnly
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 168 const label i =
static_cast<label>((x - x0_)/dx_);
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::write();
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)
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.
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.
bool add(entry *, bool mergeEntry=false)
Add a new entry.
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.
const word & constant() const
Return constant name.
bool readIfPresent(const word &, T &, bool recursive=false, bool patternMatch=true) const
Find an entry if present, and assign to T.
const Time & time() const
Return time.
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
word name(const complex &)
Return a string representation of a complex.
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
T lookupOrDefault(const word &, const T &, bool recursive=false, bool patternMatch=true) const
Find and return a T,.
Registry of regIOobjects.
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
dimensionedScalar log10(const dimensionedScalar &ds)
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.