39 low_(
dict.lookup<scalar>(
"low")),
40 high_(
dict.lookup<scalar>(
"high")),
41 values_(
dict.lookup(
"values"))
43 if (values_.
size() < 2)
47 <<
" " << dictName_ <<
nl
48 <<
" has less than 2 entries."
53 delta_ = (high_ - low_)/(values_.
size() - 1);
63 const scalar nd = (
x - low_)/delta_;
66 if (nd < 0 || i > values_.size() - 2)
69 <<
x <<
" out of range "
70 << low_ <<
" to " << high_ <<
nl
71 <<
" of table " << dictName_
75 const scalar xi = low_ + i*delta_;
76 const scalar
lambda = (
x - xi)/delta_;
78 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 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 complex &)
Return a string representation of a complex.