42 <<
"Table " <<
name() <<
": must have at least 2 values." <<
nl 43 <<
"Table size = " << size() <<
nl 44 <<
" min, interval width = " << x0_ <<
", " << dx_ <<
nl 70 dict.readEntry(
"data", *
this);
71 dict.readEntry(
"x0", x0_);
72 dict.readEntry(
"dx", dx_);
73 dict.readIfPresent(
"log10", log10_);
74 dict.readIfPresent(
"bound", bound_);
84 const word& tableName,
87 const bool initialiseOnly
102 log10_(
dict.getOrDefault<
Switch>(
"log10", false)),
103 bound_(
dict.getOrDefault<
Switch>(
"bound", false))
107 const scalar
xMax =
dict.get<scalar>(
"xMax");
113 dict.readEntry(
"data", *
this);
158 <<
"Supplied value is less than minimum table value:" <<
nl 159 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl 166 <<
"Supplied value is greater than maximum table value:" <<
nl 167 <<
"xMin=" << x0_ <<
", xMax=" <<
xMax() <<
", x=" <<
x <<
nl 172 const label i =
static_cast<label
>((
x - x0_)/dx_);
174 const scalar xLo = x0_ + i*dx_;
176 Type fx = (
x - xLo)/dx_*(
operator[](i+1) - operator[](i)) +
operator[](i);
180 Info<<
"Table: " <<
name() <<
", x=" <<
x 181 <<
", x_lo=" << xLo <<
", x_hi=" << xLo + dx_
182 <<
", f(x_lo)=" << operator[](i) <<
", f(x_hi)=" << operator[](i+1)
183 <<
", f(x)=" << fx <<
endl;
202 else if (bound_ && (
x <= 0))
209 <<
"Table " <<
name() <<
nl 210 <<
"Supplied value must be greater than 0 when in log10 mode" 222 IOdictionary
dict(*
this);
224 dict.add(
"data",
static_cast<const List<scalar>&
>(*
this));
229 dict.add(
"log10", log10_);
233 dict.add(
"bound", bound_);
236 dict.regIOobject::writeObject
238 IOstreamOption(IOstreamOption::ASCII,
dict.time().writeCompression()),
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
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...
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
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.
constexpr char nl
The newline '\n' character (0x0a)
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, any/none. Also accepts 0/1 as a string and shortcuts t/f, y/n.
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
points setSize(newPointi)
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
A class for handling words, derived from Foam::string.
const label nIntervals(pdfDictionary.get< label >("nIntervals"))
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
int debug
Static debugging option.
messageStream Info
Information stream (stdout output on master, null elsewhere)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject *> &storedObjects)
Read the selected GeometricFields of the templated type.
Registry of regIOobjects.
Defines the attributes of an object for which implicit objectRegistry management is supported...
dimensionedScalar log10(const dimensionedScalar &ds)
static constexpr const zero Zero
Global zero (0)