37 #ifndef virtualMassModel_H 38 #define virtualMassModel_H 56 class virtualMassModel
65 const phasePair&
pair_;
82 const dictionary&
dict,
83 const phasePair& pair,
93 static const dimensionSet
dimK;
101 const dictionary&
dict,
102 const phasePair& pair,
113 static autoPtr<virtualMassModel>
New 115 const dictionary&
dict,
116 const phasePair& pair
123 virtual tmp<volScalarField>
Cvm()
const = 0;
129 virtual tmp<volScalarField>
Ki()
const;
135 virtual tmp<volScalarField>
K()
const;
139 virtual tmp<surfaceScalarField>
Kf()
const;
bool writeData(Ostream &os) const
Pure virtual writeData function.
virtualMassModel(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from a dictionary and a phase pair.
virtual tmp< volScalarField > K() const
Return the virtual mass coefficient K.
TypeName("virtualMassModel")
Runtime type information.
static const dimensionSet dimK
Coefficient dimensions.
virtual tmp< surfaceScalarField > Kf() const
Return the virtual mass coefficient Kf.
OBJstream os(runTime.globalPath()/outputName)
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))
bool registerObject() const noexcept
Should objects created with this IOobject be registered?
Macros to ease declaration of run-time selection tables.
const phasePair & pair_
Phase pair.
static autoPtr< virtualMassModel > New(const dictionary &dict, const phasePair &pair)
virtual tmp< volScalarField > Ki() const
Return the phase-intensive virtual mass coefficient Ki.
virtual ~virtualMassModel()=default
Destructor.