32 namespace regionModels
34 namespace surfaceFilmModels
44 phaseChangeModel::phaseChangeModel
55 phaseChangeModel::phaseChangeModel
57 const word& modelType,
100 availableMass -= dMass;
105 scalar phaseChangeMass = getModelProperty<scalar>(
"phaseChangeMass");
107 setModelProperty<scalar>(
"phaseChangeMass", phaseChangeMass);
115 const scalar massPCRate =
119 scalar phaseChangeMass = getModelProperty<scalar>(
"phaseChangeMass");
122 os <<
indent <<
"mass phase change = " << phaseChangeMass <<
nl 123 <<
indent <<
"vapourisation rate = " << massPCRate <<
nl;
Ostream & indent(Ostream &os)
Indent stream.
virtual void info(Ostream &os) const
Provide some feedback.
scalar latestMassPC_
Latest mass transfer due to phase change.
A list of keyword definitions, which are a keyword followed by any number of values (e...
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
const Time & time() const
Return the reference to the time database.
surfaceFilmModel & filmModel_
Reference to the film surface film model.
scalar totalMassPC_
Total mass transfer due to phase change.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
virtual bool writeTime() const
Flag to indicate when to write a property.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)=0
Correct.
A class for handling words, derived from string.
scalar deltaTValue() const
Return time step value.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
defineRunTimeSelectionTable(filmThermoModel, dictionary)
Base class for surface film models.
virtual ~phaseChangeModel()
Destructor.
void correctBoundaryConditions()
Correct boundary field.
T returnReduce(const T &Value, const BinaryOp &bop, const int tag=Pstream::msgType(), const label comm=UPstream::worldComm)
virtual void correct(const scalar dt, scalarField &availableMass, volScalarField &dMass, volScalarField &dEnergy)
Correct.
virtual bool active() const
Return the model 'active' status - default active = true.
defineTypeNameAndDebug(kinematicSingleLayer, 0)