Go to the documentation of this file.
41 <<
"Table " <<
name() <<
": must have at least 2 values." <<
nl
42 <<
"Table size = " << size() <<
nl
43 <<
" min, interval width = " << x0_ <<
", " << dx_ <<
nl
69 dict.readEntry(
"data", *
this);
70 dict.readEntry(
"x0", x0_);
71 dict.readEntry(
"dx", dx_);
72 dict.readIfPresent(
"log10", log10_);
73 dict.readIfPresent(
"bound", bound_);
83 const word& tableName,
86 const bool initialiseOnly
99 x0_(
dict.get<scalar>(
"x0")),
100 dx_(
dict.get<scalar>(
"dx")),
101 log10_(
dict.lookupOrDefault<
Switch>(
"log10",
false)),
102 bound_(
dict.lookupOrDefault<
Switch>(
"bound",
false))
106 const scalar
xMax =
dict.get<scalar>(
"xMax");
112 dict.readEntry(
"data", *
this);
157 <<
"Supplied value is less than minimum table value:" <<
nl
158 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl
165 <<
"Supplied value is greater than maximum table value:" <<
nl
166 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl
173 const scalar xLo = x0_ + i*dx_;
175 Type fx = (
x - xLo)/dx_*(
operator[](i+1) - operator[](i)) +
operator[](i);
179 Info<<
"Table: " <<
name() <<
", x=" <<
x
180 <<
", x_lo=" << xLo <<
", x_hi=" << xLo + dx_
181 <<
", f(x_lo)=" << operator[](i) <<
", f(x_hi)=" << operator[](i+1)
182 <<
", f(x)=" << fx <<
endl;
201 else if (bound_ && (
x <= 0))
208 <<
"Table " <<
name() <<
nl
209 <<
"Supplied value must be greater than 0 when in log10 mode"
228 dict.add(
"log10", log10_);
232 dict.add(
"bound", bound_);
235 dict.regIOobject::writeObject
238 IOstream::currentVersion,
239 dict.time().writeCompression(),
int debug
Static debugging option.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
points setSize(newPointi)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
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 Foam::string.
static constexpr const zero Zero
Global zero.
const Time & time() const
Return time.
Ostream & endl(Ostream &os)
Add newline and flush stream.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
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.
messageStream Info
Information stream (uses stdout - output is on the master only)
word name(const complex &c)
Return string representation of complex.
dimensionedScalar log10(const dimensionedScalar &ds)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const label nIntervals(pdfDictionary.get< label >("nIntervals"))
errorManipArg< error, int > exit(error &err, const int errNo=1)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
const word & constant() const
Return constant name.
static tmp< GeometricField< Type, faePatchField, edgeMesh > > interpolate(const GeometricField< Type, faPatchField, areaMesh > &tvf, const edgeScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.