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 137 if (
alpha[celli] > 0.5)
141 const scalar dm = rateLimiter*availableMass[celli];
List< ReturnType > get(const UPtrList< T > &list, const AccessOp &aop)
List of values generated by applying the access operation to each list item.
scalar deltaTValue() const noexcept
Return time step value.
Base class for surface film models.
volScalarField mass_
Accumulated solid mass [kg].
virtual ~solidification()
Destructor.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
volScalarField thickness_
Accumulated solid thickness [m].
virtual const volScalarField & alpha() const =0
Return the film coverage, 1 = covered, 0 = uncovered / [].
const dimensionSet dimless
Dimensionless.
const Time & time() const
Return the top-level database.
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
addToRunTimeSelectionTable(surfaceFilmRegionModel, kinematicSingleLayer, mesh)
Macros for easy insertion into run-time selection tables.
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
Base class for surface film phase change models.
#define forAll(list, i)
Loop across all elements in list.
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
scalar maxSolidificationFrac_
Solidification limiter.
const fvMesh & regionMesh() const
Return the region mesh database.
dimensionedScalar maxSolidificationRate_
Solidification limiter.
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
scalar T0_
Temperature at which solidification starts.
Solidification phase change model where all film mass is converted when the local temperature > activ...
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
const dimensionedScalar alpha
Fine-structure constant: default SI units: [].
Defines the attributes of an object for which implicit objectRegistry management is supported...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
Thermodynamic form of single-cell layer surface film model.
static constexpr const zero Zero
Global zero (0)
virtual const volScalarField & T() const =0
Return the film mean temperature [K].