74#ifndef Foam_liquidFilmBase_H
75#define Foam_liquidFilmBase_H
89namespace areaSurfaceFilmModels
198 const word& modelType,
346 const scalar massSource,
347 const vector& momentumSource,
348 const scalar pressureSource,
349 const scalar energySource = 0
A simple wrapper around bool so that it can be read as a word: true/false, on/off,...
Pointer management similar to std::unique_ptr, with some additional methods and type checking.
dictionary()
Default construct, a top-level empty dictionary.
Finite-area options, which is an IOdictionary of values and a fa::optionList.
Mesh data needed to do the Finite Volume discretisation.
areaVectorField Uf_
Film velocity.
word pName_
Name of the pressure field.
scalar addedMassTotal_
Total mass added.
areaScalarField h_
Film height.
virtual void postEvolveRegion()
Post-evolve film.
static autoPtr< liquidFilmBase > New(const fvMesh &mesh, const dictionary &dict)
Return a reference to the selected model using dictionary.
scalar cumulativeContErr_
Cumulative continuity error.
word UName_
Name of the velocity field.
areaScalarField ppf_
Primary region pressure.
virtual const areaScalarField & Cp() const =0
Access const reference Cp.
virtual void addSources(const label patchi, const label facei, const scalar massSource, const vector &momentumSource, const scalar pressureSource, const scalar energySource=0)
Add sources.
virtual const areaScalarField & sigma() const =0
Access const reference sigma.
areaScalarField gn_
Normal gravity field.
tmp< areaScalarField > alpha() const
Wet indicator using h0.
label nFilmCorr_
Number of film thickness correctors.
const dimensionedScalar & h0() const noexcept
Return h0.
uniformDimensionedVectorField g_
Gravity.
liquidFilmBase(const word &modelType, const fvMesh &mesh, const dictionary &dict)
Construct from type name and mesh and dict.
edgeScalarField phif_
Film momentum flux.
Switch momentumPredictor_
Flag to enable momentum predictor.
Foam::fa::options & faOptions_
faOptions
tmp< areaScalarField > pg() const
Map primary static pressure.
const areaScalarField & gn() const noexcept
Access const reference gn.
const edgeScalarField & phif() const noexcept
Access to momentum flux.
volScalarField pnSource_
Normal pressure by particles.
const uniformDimensionedVectorField & g() const noexcept
Gravity.
dimensionedScalar h0_
Smallest film thickness.
const regionFaModel & region() const noexcept
Access to this region.
void operator=(const liquidFilmBase &)=delete
No copy assignment.
tmp< areaVectorField > Uw() const
Wall velocity.
label nOuterCorr_
Number of outer correctors.
virtual void preEvolveRegion()
Pre-evolve film.
virtual const areaScalarField & Tf() const =0
Access const reference Tf.
Foam::fa::options & faOptions() noexcept
Return faOptions.
tmp< areaVectorField > Up() const
Primary region velocity at film hight. Assume the film to be.
virtual const areaScalarField & mu() const =0
Access const reference mu.
volScalarField massSource_
Mass.
label nCorr_
Number of PISO-like inner correctors.
virtual const areaScalarField & rho() const =0
Access const reference rho.
TypeName("liquidFilmBase")
Runtime type information.
const areaVectorField & Uf() const noexcept
Access const reference Uf.
virtual ~liquidFilmBase()
Destructor.
word UName() const
Name of the U field.
declareRunTimeSelectionTable(autoPtr, liquidFilmBase, dictionary,(const word &modelType, const fvMesh &mesh, const dictionary &dict),(modelType, mesh, dict))
areaScalarField pf_
Film pressure.
volVectorField momentumSource_
Momentum.
edgeScalarField phi2s_
Film height flux.
dimensionedScalar deltaWet_
Film thickness beyond which face is assumed to be wet.
const areaScalarField & h() const noexcept
Access const reference h.
virtual scalar CourantNumber() const
Courant number evaluation.
const edgeScalarField & phi2s() const noexcept
Access continuity flux.
tmp< areaVectorField > Us() const
Film surface film velocity.
scalar pRef_
Reference absolute pressure.
scalar pRef() const
Access to pRef.
virtual const volScalarField & cloudDiameterTrans() const =0
Return the parcel diameters originating from film to cloud.
virtual const volScalarField & cloudMassTrans() const =0
Return mass transfer source - Eulerian phase only.
liquidFilmBase(const liquidFilmBase &)=delete
No copy construct.
Base class for liquid-film models.
regionFaModel(const fvMesh &mesh, const word ®ionType, const word &modelName, const dictionary &dict, bool readFields=true)
Construct from mesh and name and dict.
A class for managing temporary objects.
A class for handling words, derived from Foam::string.
GeometricField< vector, fvPatchField, volMesh > volVectorField
GeometricField< scalar, fvPatchField, volMesh > volScalarField
GeometricField< vector, faPatchField, areaMesh > areaVectorField
GeometricField< scalar, faePatchField, edgeMesh > edgeScalarField
UniformDimensionedField< vector > uniformDimensionedVectorField
GeometricField< scalar, faPatchField, areaMesh > areaScalarField
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
#define declareRunTimeSelectionTable(ptrWrapper, baseType, argNames, argList, parList)
Declare a run-time selection (variables and adder classes).
#define TypeName(TypeNameString)
Declare a ClassName() with extra virtual type info.
Forwards and collection of common volume field types.