34 namespace regionModels
36 namespace surfaceFilmModels
46 phaseChangeModel::phaseChangeModel
57 phaseChangeModel::phaseChangeModel
59 const word& modelType,
102 availableMass -= dMass;
107 scalar phaseChangeMass = getModelProperty<scalar>(
"phaseChangeMass");
109 setModelProperty<scalar>(
"phaseChangeMass", phaseChangeMass);
117 const scalar massPCRate =
121 scalar phaseChangeMass = getModelProperty<scalar>(
"phaseChangeMass");
124 os <<
indent <<
"mass phase change = " << phaseChangeMass <<
nl 125 <<
indent <<
"vapourisation rate = " << massPCRate <<
nl;
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &f1)
const Internal::FieldType & primitiveField() const noexcept
Return a const-reference to the internal field values.
Ostream & indent(Ostream &os)
Indent stream.
virtual void info(Ostream &os) const
Provide some feedback.
scalar deltaTValue() const noexcept
Return time step value.
scalar latestMassPC_
Latest mass transfer due to phase change.
Base class for surface film models.
Base class for surface film sub-models.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
constexpr char nl
The newline '\n' character (0x0a)
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Perform reduction on a copy, using specified binary operation.
scalar totalMassPC_
Total mass transfer due to phase change.
virtual bool writeTime() const
Flag to indicate when to write a property.
Base class for surface film phase change models.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)=0
Correct.
A class for handling words, derived from Foam::string.
An Ostream is an abstract base class for all output systems (streams, files, token lists...
OBJstream os(runTime.globalPath()/outputName)
defineRunTimeSelectionTable(filmThermoModel, dictionary)
virtual ~phaseChangeModel()
Destructor.
void correctBoundaryConditions()
Correct boundary field.
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
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)
const Time & time() const noexcept
Return the reference to the time database.