39namespace surfaceFilmModels
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];
Macros for easy insertion into run-time selection tables.
#define addToRunTimeSelectionTable(baseType, thisType, argNames)
Add to construction table with typeName as the key.
Defines the attributes of an object for which implicit objectRegistry management is supported,...
scalar deltaTValue() const noexcept
Return time step value.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const Time & time() const
Return the top-level database.
Simple solidification porosity model.
const fvMesh & regionMesh() const
Return the region mesh database.
virtual const volScalarField & magSf() const
Return the face area magnitudes / [m2].
const surfaceFilmRegionModel & film() const
Return const access to the film surface film model.
surfaceFilmRegionModel & filmModel_
Reference to the film surface film model.
Base class for surface film phase change models.
Solidification phase change model where all film mass is converted when the local temperature > activ...
scalar maxSolidificationFrac_
Solidification limiter.
scalar T0_
Temperature at which solidification starts.
volScalarField mass_
Accumulated solid mass [kg].
dimensionedScalar maxSolidificationRate_
Solidification limiter.
volScalarField thickness_
Accumulated solid thickness [m].
virtual void correctModel(const scalar dt, scalarField &availableMass, scalarField &dMass, scalarField &dEnergy)
Correct.
virtual ~solidification()
Destructor.
Base class for surface film models.
virtual const volScalarField & alpha() const =0
Return the film coverage, 1 = covered, 0 = uncovered / [].
virtual const volScalarField & T() const =0
Return the film mean temperature [K].
virtual const volScalarField & rho() const =0
Return the film density [kg/m3].
Thermodynamic form of single-cell layer surface film model.
#define defineTypeNameAndDebug(Type, DebugSwitch)
Define the typeName and debug information.
const dimensionSet dimless
Dimensionless.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
label min(const labelHashSet &set, label minValue=labelMax)
Find the min value in labelHashSet, optionally limited by second argument.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
#define forAll(list, i)
Loop across all elements in list.