37 namespace thermophysicalFunctions
44 integratedNonUniformTable,
53 Foam::thermophysicalFunctions::integratedNonUniformTable::
54 integratedNonUniformTable
67 for (label i = 1; i < intf_.size(); ++i)
69 intf_[i] = intfdT(0,
values()[i].first());
70 intfByT_[i] = intfByTdT(0,
values()[i].first());
73 const scalar intfStd = intfdT(
Pstd,
Tstd);
74 const scalar intfByTStd = intfByTdT(
Pstd,
Tstd);
79 intfByT_[i] -= intfByTStd;
84 Foam::thermophysicalFunctions::integratedNonUniformTable::
85 integratedNonUniformTable
87 const dictionary&
dict 90 integratedNonUniformTable(
"values",
dict)
96 Foam::scalar Foam::thermophysicalFunctions::integratedNonUniformTable::intfdT
102 const label i = index(
p,
T);
103 const scalar Ti =
values()[i].first();
104 const scalar fi =
values()[i].second();
105 const scalar dT =
T - Ti;
106 const scalar
lambda = dT/(
values()[i + 1].first() - Ti);
114 Foam::scalar Foam::thermophysicalFunctions::integratedNonUniformTable::intfByTdT
120 const label i = index(
p,
T);
121 const scalar Ti =
values()[i].first();
122 const scalar fi =
values()[i].second();
124 (
values()[i + 1].second() - fi)/(
values()[i + 1].first() - Ti);
127 intfByT_[i] + ((fi - gradf*Ti)*
log(
T/Ti) + gradf*(
T - Ti));
dimensionedScalar log(const dimensionedScalar &ds)
A list of keyword definitions, which are a keyword followed by a number of values (eg...
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.
List< T > values(const HashTable< T, Key, Hash > &tbl, const bool doSort=false)
List of values from HashTable, optionally sorted.
Abstract base class for thermo-physical functions.
word name(const expressions::valueTypeCode typeCode)
A word representation of a valueTypeCode. Empty for expressions::valueTypeCode::INVALID.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
A class for handling words, derived from Foam::string.
addToRunTimeSelectionTable(thermophysicalFunction, integratedNonUniformTable, dictionary)
const dimensionedScalar Pstd
Standard pressure.
const dimensionedScalar Tstd
Standard temperature.
OBJstream os(runTime.globalPath()/outputName)
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
defineTypeNameAndDebug(integratedNonUniformTable, 0)