34 namespace saturationModels
50 template<
class FieldType>
52 Foam::saturationModels::ArdenBuck::xByTC(
const FieldType& TC)
const
54 return (
B - TC/
C)/(
D + TC);
58 template<
class FieldType>
60 Foam::saturationModels::ArdenBuck::pSat(
const FieldType&
T)
const
62 const FieldType TC(
T -
zeroC);
64 return A*
exp(TC*xByTC(TC));
68 template<
class FieldType>
70 Foam::saturationModels::ArdenBuck::pSatPrime(
const FieldType&
T)
const
72 const FieldType TC(
T -
zeroC);
73 const FieldType
x(xByTC(TC));
79 template<
class FieldType>
81 Foam::saturationModels::ArdenBuck::lnPSat(
const FieldType&
T)
const
83 const FieldType TC(
T -
zeroC);
IMPLEMENT_PSAT(saturationModels::ArdenBuck, scalarField)
Macros for easy insertion into run-time selection tables.
Graphite solid properties.
DimensionedField< Type, GeoMesh, PrimitiveField > Internal
Type of the internal field from which this GeometricField is derived.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
const Type & value() const
Return const reference to value.
ArdenBuck equation for the vapour pressure of moist air.
ArdenBuck(const dictionary &dict)
Construct from a dictionary.
virtual ~ArdenBuck()
Destructor.
Model to describe the dependence of saturation pressure on temperature.
A class for managing temporary objects.
static const coefficient zeroC("zeroC", dimTemperature, 273.15)
addToRunTimeSelectionTable(saturationPressureModel, Antoine, dictionary)
static const coefficient C("C", dimTemperature, 234.5)
static const coefficient D("D", dimTemperature, 257.14)
static const coefficient B("B", dimless, 18.678)
defineTypeNameAndDebug(Antoine, 0)
static const coefficient A("A", dimPressure, 611.21)
dimensionedScalar exp(const dimensionedScalar &ds)
const dimensionSet dimPressure
const dimensionSet dimless
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
const dimensionSet dimTemperature
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar log(const dimensionedScalar &ds)
VolField< scalar > volScalarField
Structure to store a dimensioned coefficient of the saturation model.