36namespace surfaceFilmModels
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;
const Internal::FieldType & primitiveField() const
Return a const-reference to the internal field.
void correctBoundaryConditions()
Correct boundary field.
An Ostream is an abstract base class for all output systems (streams, files, token lists,...
virtual void correct()
Solve the turbulence equations and correct the turbulence viscosity.
scalar deltaTValue() const noexcept
Return time step value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
InfoProxy< ensightCells > info() const
Return info proxy.
const Time & time() const
Return the reference to the time database.
Base class for surface film sub-models.
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
virtual bool writeTime() const
Flag to indicate when to write a property.
Base class for surface film phase change models.
virtual ~phaseChangeModel()
Destructor.
scalar totalMassPC_
Total mass transfer due to phase change.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)=0
Correct.
scalar latestMassPC_
Latest mass transfer due to phase change.
Base class for surface film models.
virtual bool active() const
Return the model 'active' status - default active = true.
A class for handling words, derived from Foam::string.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
OBJstream os(runTime.globalPath()/outputName)
dimensioned< Type > sum(const DimensionedField< Type, GeoMesh > &df)
Ostream & indent(Ostream &os)
Indent stream.
T returnReduce(const T &value, const BinaryOp &bop, const int tag=UPstream::msgType(), const label comm=UPstream::worldComm)
Reduce (copy) and return value.
constexpr char nl
The newline '\n' character (0x0a)
#define defineRunTimeSelectionTable(baseType, argNames)
Define run-time selection table.