Go to the documentation of this file.
37 namespace regionModels
39 namespace surfaceFilmModels
55 solidification::solidification
62 T0_(coeffDict_.get<scalar>(
"T0")),
63 maxSolidificationFrac_
65 coeffDict_.getOrDefault<scalar>(
"maxSolidificationFrac", 0.2)
67 maxSolidificationRate_
69 "maxSolidificationRate",
86 zeroGradientFvPatchScalarField::typeName
92 typeName +
":thickness",
100 zeroGradientFvPatchScalarField::typeName
126 const scalar rateLimiter =
min
128 maxSolidificationFrac_,
130 maxSolidificationRate_
131 *filmModel_.regionMesh().time().deltaTValue()
137 if (
alpha[celli] > 0.5)
141 const scalar dm = rateLimiter*availableMass[celli];
152 thickness_ = mass_/film.
magSf()/film.
rho();
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
Dimensionless.
virtual ~solidification()
Destructor.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
static constexpr const zero Zero
Global zero (0)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
static word timeName(const scalar t, const int precision=precision_)
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
#define forAll(list, i)
Loop across all elements in list.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
Thermodynamic form of single-cell layer surface film model.
Base class for surface film models.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
const fvMesh & regionMesh() const
Return the region mesh database.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual const volScalarField & T() const
Return the film mean temperature [K].
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
Macros for easy insertion into run-time selection tables.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
defineTypeNameAndDebug(kinematicSingleLayer, 0)
const volScalarField & alpha() const
Return the film coverage, 1 = covered, 0 = uncovered [].
const Time & time() const
Return the top-level database.
virtual const volScalarField & rho() const
Return the film density [kg/m3].
Base class for surface film phase change models.