42 <<
"Table " <<
name() <<
": must have at least 2 values." <<
nl
43 <<
"Table size = " << size() <<
nl
44 <<
" min, interval width = " << x0_ <<
", " << dx_ <<
nl
60 List<scalar>(2, Zero),
84 const word& tableName,
87 const bool initialiseOnly
100 x0_(
dict.get<scalar>(
"x0")),
101 dx_(
dict.get<scalar>(
"dx")),
102 log10_(
dict.getOrDefault<
Switch>(
"log10", false)),
103 bound_(
dict.getOrDefault<
Switch>(
"bound", false))
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"
236 dict.regIOobject::writeObject
IOdictionary is derived from dictionary and IOobject to give the dictionary automatic IO functionalit...
Defines the attributes of an object for which implicit objectRegistry management is supported,...
The IOstreamOption is a simple container for options an IOstream can normally have.
A 1D array of objects of type <T>, where the size of the vector is known and used for subscript bound...
void setSize(const label n)
Alias for resize()
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
bool readIfPresent(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX) const
entry * add(entry *entryPtr, bool mergeEntry=false)
Add a new entry.
bool readEntry(const word &keyword, T &val, enum keyType::option matchOpt=keyType::REGEX, bool mandatory=true) const
Registry of regIOobjects.
constant condensation/saturation model.
bool interpolate() const noexcept
Same as isPointData()
A class for handling words, derived from Foam::string.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
IOobject io("surfaceFilmProperties", mesh.time().constant(), mesh, IOobject::READ_IF_PRESENT, IOobject::NO_WRITE, false)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
messageStream Info
Information stream (stdout output on master, null elsewhere)
dimensionedScalar log10(const dimensionedScalar &ds)
void readFields(const typename GeoFieldType::Mesh &mesh, const IOobjectList &objects, const wordHashSet &selectedFields, LIFOStack< regIOobject * > &storedObjects)
Read the selected GeometricFields of the templated type.
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.
static constexpr const zero Zero
Global zero (0)
bool interpolate(const vector &p1, const vector &p2, const vector &o, vector &n, scalar l)
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for INVALID.
errorManipArg< error, int > exit(error &err, const int errNo=1)
constexpr char nl
The newline '\n' character (0x0a)
const label nIntervals(pdfDictionary.get< label >("nIntervals"))