Go to the documentation of this file.
34 namespace regionModels
36 namespace surfaceFilmModels
60 maxSolidificationFrac_
62 coeffDict_.lookupOrDefault(
"maxSolidificationFrac", 0.2)
64 maxSolidificationRate_
68 "maxSolidificationRate",
86 zeroGradientFvPatchScalarField::typeName
92 typeName +
":thickness",
100 zeroGradientFvPatchScalarField::typeName
126 const scalar rateLimiter =
min
128 maxSolidificationFrac_,
130 maxSolidificationRate_
131 *owner_.regionMesh().time().deltaTValue()
137 if (
alpha[celli] > 0.5)
141 const scalar dm = rateLimiter*availableMass[celli];
152 thickness_ = mass_/film.
magSf()/film.
rho();
IOobject defines the attributes of an object for which implicit objectRegistry management is supporte...
Solidification phase change model where all film mass is converted when the local temperature > activ...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
virtual ~solidification()
Destructor.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Pre-declare SubField and related Field type.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
solidification(const solidification &)
Disallow default bitwise copy construct.
virtual const volScalarField & T() const
Return the film mean temperature [K].
A list of keyword definitions, which are a keyword followed by any number of values (e....
Macros for easy insertion into run-time selection tables.
Generic dimensioned Type class.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
defineTypeNameAndDebug(kinematicSingleLayer, 0)
bool readScalar(const char *buf, doubleScalar &s)
Read whole of buf as a scalar. Return true if succesful.
static word timeName(const scalar, const int precision=precision_)
Return time name of given scalar time.
const volScalarField & alpha() const
Return the film coverage, 1 = covered, 0 = uncovered / [].
addToRunTimeSelectionTable(surfaceFilmModel, kinematicSingleLayer, mesh)
const Time & time() const
Return the top-level database.
Base class for surface film models.
virtual const volScalarField & rho() const
Return the film density [kg/m3].
dimensioned< Type > min(const dimensioned< Type > &, const dimensioned< Type > &)
Base class for surface film phase change models.
const fvMesh & regionMesh() const
Return the region mesh database.