40 thermophysicalFunction,
49 Foam::nonUniformTable::nonUniformTable
52 const dictionary&
dict 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())
112 Foam::nonUniformTable::nonUniformTable
114 const dictionary&
dict 117 nonUniformTable(
"values",
dict)
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());
139 Foam::scalar Foam::nonUniformTable::dfdT
145 const label i = index(
p,
T);
148 (values_[i + 1].second() - values_[i].second())
149 /(values_[i + 1].first() - values_[i].first());
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...
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
constexpr char nl
The newline '\n' character (0x0a)
Ostream & writeEntry(const keyType &key, const T &value)
Write a keyword/value entry.
const bool writeData(pdfDictionary.get< bool >("writeData"))
Macros for easy insertion into run-time selection tables.
#define forAll(list, i)
Loop across all elements in list.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
OBJstream os(runTime.globalPath()/outputName)
defineTypeNameAndDebug(combustionModel, 0)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
#define FatalIOErrorInFunction(ios)
Report an error message using Foam::FatalIOError.
addToRunTimeSelectionTable(functionObject, pointHistory, dictionary)
IOerror FatalIOError
Error stream (stdout output on all processes), with additional 'FOAM FATAL IO ERROR' header text and ...