35 #ifndef virtualMassModel_H 36 #define virtualMassModel_H 53 class virtualMassModel
62 const phasePair&
pair_;
79 const dictionary&
dict,
80 const phasePair& pair,
83 (dict, pair, registerObject)
90 static const dimensionSet
dimK;
98 const dictionary& dict,
99 const phasePair& pair,
100 const bool registerObject
110 static autoPtr<virtualMassModel>
New 112 const dictionary& dict,
113 const phasePair& pair
120 virtual tmp<volScalarField>
Cvm()
const = 0;
126 virtual tmp<volScalarField>
Ki()
const;
132 virtual tmp<volScalarField>
K()
const;
136 virtual tmp<surfaceScalarField>
Kf()
const;
static autoPtr< virtualMassModel > New(const dictionary &dict, const phasePair &pair)
virtual ~virtualMassModel()
Destructor.
bool writeData(Ostream &os) const
Pure virtual writaData function.
virtual tmp< surfaceScalarField > Kf() const
Return the virtual mass coefficient Kf.
virtualMassModel(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
TypeName("virtualMassModel")
Runtime type information.
virtual tmp< volScalarField > Ki() const
Return the phase-intensive virtual mass coefficient Ki.
static const dimensionSet dimK
Coefficient dimensions.
virtual tmp< volScalarField > Cvm() const =0
Return the virtual mass coefficient.
declareRunTimeSelectionTable(autoPtr, virtualMassModel, dictionary,(const dictionary &dict, const phasePair &pair, const bool registerObject),(dict, pair, registerObject))
Macros to ease declaration of run-time selection tables.
bool & registerObject()
Register object created from this IOobject with registry if true.
const phasePair & pair_
Phase pair.
virtual tmp< volScalarField > K() const
Return the virtual mass coefficient K.