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.
const Time & time() const
Return the reference to the time database.
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...
surfaceFilmModel & owner_
Reference to the owner surface film model.
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
scalar totalMassPC_
Total mass transfer due to phase change.
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)=0
Correct.
A class for handling words, derived from string.
virtual void info(Ostream &os) const
Provide some feedback.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
scalar deltaTValue() const
Return time step value.
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 bool writeTime() const
Flag to indicate when to write a property.
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)