Go to the documentation of this file.
40 thermophysicalFunction,
61 dict.readEntry(name_, values_);
63 if (values_.size() < 2)
68 <<
" has fewer than 2 entries." <<
nl
72 Trange_.min() = values_.first().first();
73 Trange_.max() = values_.last().first();
75 for (label i = 1; i < values_.size(); ++i)
79 if (values_[i].first() <= values_[i-1].first())
84 <<
" out-of-order value: " << values_[i].first()
85 <<
" at index " << i <<
nl
90 deltaT_ =
min(deltaT_, values_[i].first() - values_[i-1].first());
95 jumpTable_.resize(Trange_.mag()/deltaT_ + 1);
100 const scalar
T = Trange_.min() + j*deltaT_;
102 if (
T > values_[i+1].first())
129 const label i = index(
p,
T);
130 const scalar Ti = values_[i].first();
131 const scalar
lambda = (
T - Ti)/(values_[i + 1].first() - Ti);
135 +
lambda*(values_[i + 1].second() - values_[i].second());
145 const label i = index(
p,
T);
148 (values_[i + 1].second() - values_[i].second())
149 /(values_[i + 1].first() - values_[i].first());
addToRunTimeSelectionTable(decompositionMethod, kahipDecomp, dictionary)
A class for handling words, derived from Foam::string.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
word name(const complex &c)
Return string representation of complex.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
Macros for easy insertion into run-time selection tables.
errorManipArg< error, int > exit(error &err, const int errNo=1)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
defineTypeNameAndDebug(combustionModel, 0)