34 namespace regionModels
36 namespace surfaceFilmModels
59 T0_(coeffDict_.lookup<scalar>(
"T0")),
60 maxSolidificationFrac_
62 coeffDict_.lookupOrDefault(
"maxSolidificationFrac", 0.2)
64 maxSolidificationRate_
68 "maxSolidificationRate",
125 const scalar rateLimiter =
min 136 if (coverage[celli] > 0.5)
140 const scalar dm = rateLimiter*availableMass[celli];
147 dEnergy[celli] += dm*h[celli];
#define forAll(list, i)
Loop across all elements in list.
Base class for surface film models.
virtual ~solidification()
Destructor.
A list of keyword definitions, which are a keyword followed by any number of values (e...
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
Generic dimensioned Type class.
const Time & time() const
Return the top-level database.
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
Macros for easy insertion into run-time selection tables.
Base class for surface film phase change models.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
scalar maxSolidificationFrac_
Solidification limiter.
scalar deltaTValue() const
Return time step value.
const volScalarField & coverage() const
Return the film coverage, 1 = covered, 0 = uncovered [].
const fvMesh & regionMesh() const
Return the region mesh database.
dimensionedScalar maxSolidificationRate_
Solidification limiter.
solidification(surfaceFilmRegionModel &film, const dictionary &dict)
Construct from surface film model.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
volScalarField::Internal thickness_
Accumulated solid thickness [m].
volScalarField::Internal mass_
Accumulated solid mass [kg].
scalar T0_
Temperature at which solidification starts.
const volScalarField::Internal & magSf() const
Return the face area magnitudes [m^2].
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual const volScalarField & h() const
Return the film sensible enthalpy [J/kg].
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
const dimensionedScalar & h
Planck constant.
const volScalarField & rho() const
Return the film density [kg/m^3].
static word modelName(Name name, const word &model)
Return the name of the object within the given model.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Thermodynamic form of single-cell layer surface film model.
virtual const volScalarField & T() const
Return the film mean temperature [K].