37 #ifndef saturationPressureModel_H
38 #define saturationPressureModel_H
46 #define DEFINE_PSAT(FieldType, Modifier) \
48 virtual tmp<FieldType> pSat(const FieldType& T) const Modifier; \
50 virtual tmp<FieldType> pSatPrime(const FieldType& T) const Modifier; \
52 virtual tmp<FieldType> lnPSat(const FieldType& T) const Modifier;
55 #define IMPLEMENT_PSAT(ModelType, FieldType) \
57 Foam::tmp<Foam::FieldType> \
58 Foam::saturationModels::ModelType::pSat(const FieldType& T) const \
60 return pSat<FieldType>(T); \
63 Foam::tmp<Foam::FieldType> \
64 Foam::saturationModels::ModelType::pSatPrime(const FieldType& T) const \
66 return pSatPrime<FieldType>(T); \
69 Foam::tmp<Foam::FieldType> \
70 Foam::saturationModels::ModelType::lnPSat(const FieldType& T) const \
72 return lnPSat<FieldType>(T); \
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
An auto-pointer similar to the STL auto_ptr but with automatic casting to a reference to the type and...
A list of keyword definitions, which are a keyword followed by any number of values (e....
Model to describe the dependence of saturation pressure on temperature, and vice versa.
declareRunTimeSelectionTable(autoPtr, saturationPressureModel, dictionary,(const dictionary &dict),(dict))
Declare runtime construction.
saturationPressureModel()
Default construct.
TypeName("saturationPressureModel")
Runtime type information.
static autoPtr< saturationPressureModel > New(const dictionary &dict)
Select with dictionary.
virtual ~saturationPressureModel()
Destructor.
A class for handling words, derived from string.
word name(const bool)
Return a word representation of a bool.
Macros to ease declaration of run-time selection tables.
#define DEFINE_PSAT(FieldType, Modifier)