40 low_(
dict.lookup<scalar>(
"low")),
41 high_(
dict.lookup<scalar>(
"high")),
42 values_(
dict.lookup(
"values"))
46 if (values_.
size() < 2)
50 <<
" " << dictName_ <<
nl
51 <<
" has less than 2 entries."
56 delta_ = (high_ - low_)/(values_.
size() - 1);
66 const scalar nd = (
x - low_)/delta_;
69 if (nd < 0 || i > values_.size() - 2)
72 <<
x <<
" out of range "
73 << low_ <<
" to " << high_ <<
nl
74 <<
" of table " << dictName_
78 const scalar xi = low_ + i*delta_;
79 const scalar
lambda = (
x - xi)/delta_;
81 return values_[i] +
lambda*(values_[i + 1] - values_[i]);
void size(const label)
Override size to be inconsistent with allocated storage.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
A list of keyword definitions, which are a keyword followed by any number of values (e....
A class for handling words, derived from string.
#define NotImplemented
Issue a FatalErrorIn for a function not currently implemented.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedScalar lambda(viscosity->lookup("lambda"))
void writeEntry(Ostream &os, const omega &a)
errorManipArg< error, int > exit(error &err, const int errNo=1)
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
word name(const bool)
Return a word representation of a bool.
const HashTable< unitConversion > & units()
Get the table of unit conversions.
void assertNoConvertUnits(const word &typeName, const Function1s::unitConversions &units, const dictionary &dict)
Generate an error in an context where unit conversions are not supported.