34 namespace thermophysicalFunctions
40 thermophysicalFunction,
41 integratedNonUniformTable,
58 intf_(values().size()),
59 intfByT_(values().size())
64 for(
label i = 0; i<intf_.size() - 1; i++)
66 intf_[i + 1] = intf_[i] + intfdT(0, values()[i + 1].first());
67 intfByT_[i + 1] = intfByT_[i] + intfByTdT(0, values()[i + 1].first());
70 const scalar intfStd = intfdT(
Pstd,
Tstd);
71 const scalar intfByTStd = intfByTdT(
Pstd,
Tstd);
76 intfByT_[i] -= intfByTStd;
99 const label i = index(p, T);
100 const scalar Ti = values()[i].first();
101 const scalar fi = values()[i].second();
102 const scalar dT = T - Ti;
103 const scalar
lambda = dT/(values()[i + 1].first() - Ti);
107 + (fi + 0.5*lambda*(values()[i + 1].second() - fi))*dT;
117 const label i = index(p, T);
118 const scalar Ti = values()[i].first();
119 const scalar fi = values()[i].second();
121 (values()[i + 1].second() - fi)/(values()[i + 1].first() - Ti);
124 intfByT_[i] + ((fi - gradf*Ti)*
log(T/Ti) + gradf*(T - Ti));
#define forAll(list, i)
Loop across all elements in list.
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
defineTypeNameAndDebug(APIdiffCoef, 0)
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by any number of values (e...
const dimensionedScalar & Tstd
Standard temperature.
Macros for easy insertion into run-time selection tables.
A class for handling words, derived from string.
addToRunTimeSelectionTable(thermophysicalFunction, APIdiffCoef, dictionary)
An Ostream is an abstract base class for all output systems (streams, files, token lists...
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
const dimensionedScalar & Pstd
Standard pressure.