33 namespace saturationModels
50 template<
class FieldType>
52 Foam::saturationModels::AntoineExtended::pSat(
const FieldType&
T)
const
54 return onePbyTpowD_*
exp(A_ + B_/(C_ +
T) + E_*
pow(
T, F_))*
pow(
T, D_);
58 template<
class FieldType>
60 Foam::saturationModels::AntoineExtended::pSatPrime(
const FieldType&
T)
const
62 return pSat(
T)*((D_ + E_*(F_*
pow(
T, F_)))/
T - B_/
sqr(C_ +
T));
66 template<
class FieldType>
68 Foam::saturationModels::AntoineExtended::lnPSat(
const FieldType&
T)
const
IMPLEMENT_PSAT(saturationModels::AntoineExtended, scalarField)
Macros for easy insertion into run-time selection tables.
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.
Extended Antoine equation for the vapour pressure.
AntoineExtended(const dictionary &dict)
Construct from a dictionary and an interface.
virtual ~AntoineExtended()
Destructor.
Model to describe the dependence of saturation pressure on temperature.
A class for managing temporary objects.
addToRunTimeSelectionTable(saturationPressureModel, Antoine, dictionary)
defineTypeNameAndDebug(Antoine, 0)
static const coefficient oneT(dimTemperature, 1)
dimensionedScalar exp(const dimensionedScalar &ds)
const dimensionSet & dimless
Field< scalar > scalarField
Specialisation of Field<T> for scalar.
dimensionedScalar log(const dimensionedScalar &ds)
tmp< DimensionedField< typename outerProduct< Type, Type >::type, GeoMesh, Field >> sqr(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
VolField< scalar > volScalarField
const dimensionSet & dimPressure
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
void T(GeometricField< Type, GeoMesh, PrimitiveField1 > &gf, const GeometricField< Type, GeoMesh, PrimitiveField2 > &gf1)
const dimensionSet & dimTemperature
Structure to store a dimensioned coefficient of the saturation model.