36 #ifndef saturationPressureModel_H
37 #define saturationPressureModel_H
45 #define DEFINE_PSAT(FieldType, Modifier) \
47 virtual tmp<FieldType> pSat(const FieldType& T) const Modifier; \
49 virtual tmp<FieldType> pSatPrime(const FieldType& T) const Modifier; \
51 virtual tmp<FieldType> lnPSat(const FieldType& T) const Modifier;
54 #define IMPLEMENT_PSAT(ModelType, FieldType) \
56 Foam::tmp<Foam::FieldType> \
57 Foam::ModelType::pSat(const FieldType& T) const \
59 return pSat<FieldType>(T); \
62 Foam::tmp<Foam::FieldType> \
63 Foam::ModelType::pSatPrime(const FieldType& T) const \
65 return pSatPrime<FieldType>(T); \
68 Foam::tmp<Foam::FieldType> \
69 Foam::ModelType::lnPSat(const FieldType& T) const \
71 return lnPSat<FieldType>(T); \
91 template<
class FieldType>
95 template<
class FieldType>
99 template<
class FieldType>
106 TypeName(
"saturationPressureModel");
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 keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Model to describe the dependence of saturation pressure on temperature.
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 managing temporary objects.
A class for handling words, derived from string.
void T(LagrangianPatchField< Type > &f, const LagrangianPatchField< Type > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
Macros to ease declaration of run-time selection tables.
#define DEFINE_PSAT(FieldType, Modifier)