Go to the documentation of this file.
39 namespace regionModels
41 namespace areaSurfaceFilmModels
88 const word& modelType,
166 h_.name() +
"*" + rho_.name(),
167 primaryMesh().time().timeName(),
229 "cloudDiameterTrans",
242 availableMass_(regionMesh().faces().size(),
Zero),
244 injection_(*
this,
dict),
251 Tref_ =
dict.
get<scalar>(
"T0");
254 correctThermoFields();
365 <<
indent <<
"min/max(delta) = "
367 <<
indent <<
"coverage = "
369 <<
indent <<
"total mass = "
const liquidMixtureProperties & thermo() const
Access to thermo.
const dimensionSet dimPressure
Defines the attributes of an object for which implicit objectRegistry management is supported,...
areaScalarField Cp_
Film Heat capacity.
A class for handling words, derived from Foam::string.
scalar Tref() const
Access to reference temperature.
virtual const volScalarField & cloudMassTrans() const
Return the film mass available for transfer to cloud.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
const fvMesh & primaryMesh() const
Return the reference to the primary mesh database.
label size() const
Return the number of liquids in the mixture.
static constexpr const zero Zero
Global zero (0)
const dimensionSet dimVelocity
const dimensionSet dimEnergy
const Field< Type > & field() const
Return field.
const dimensionSet dimDensity
bool found(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Search for an entry (const access) with the given keyword.
virtual void preEvolveRegion()
Pre-evolve film.
scalar Tref_
Reference tempararure.
const areaScalarField & Cp() const
Access const reference Cp.
virtual void postEvolveRegion()
Post-evolve film.
tmp< areaScalarField > alpha() const
Wet indicator using h0.
virtual void postEvolveRegion()
Post-evolve film.
scalarField availableMass_
Available mass for transfer via sub-models.
tmp< Field< Type > > mapToSurface(const typename GeometricField< Type, fvPatchField, volMesh >::Boundary &df) const
Map Boundary field to surface.
areaScalarField pnSp_
Normal pressure by particles.
volScalarField pnSource_
Normal pressure by particles.
virtual void info(Ostream &os)
Provide some info.
scalar mu(const scalar p, const scalar T, const scalarField &X) const
Calculate the mixture viscosity [Pa s].
areaScalarField gn_
Normal gravity field.
Ostream & endl(Ostream &os)
Add newline and flush stream.
Type gSum(const FieldField< Field, Type > &f)
T get(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
virtual void preEvolveRegion()
Pre-evolve film.
const volSurfaceMapping & vsm() const
Return mapping between surface and volume fields.
dimensionedScalar h0_
Smallest numerical thickness.
scalar rho(const scalar p, const scalar T, const scalarField &X) const
Calculate the mixture density [kg/m^3].
scalar deltaTValue() const noexcept
Return time step value.
#define forAll(list, i)
Loop across all elements in list.
void correctThermoFields()
Correct thermo.
virtual void correct(scalarField &availableMass, volScalarField &massToInject, volScalarField &diameterToInject)
Correct.
dimensioned< vector > dimensionedVector
Dimensioned vector obtained from generic dimensioned type.
areaScalarField pf_
Film pressure.
const dimensionSet dimTime(0, 0, 1, 0, 0, 0, 0)
scalar sigma(const scalar p, const scalar T, const scalarField &X) const
Estimate mixture surface tension [N/m].
liquidFilmModel(const word &modelType, const fvPatch &patch, const dictionary &dict)
Construct from components and dict.
const DimensionedField< scalar, areaMesh > & S() const
Return face areas.
areaScalarField rhoSp_
Mass source.
messageStream Info
Information stream (stdout output on master, null elsewhere)
volScalarField massSource_
Mass.
A finiteVolume patch using a polyPatch and a fvBoundaryMesh.
const dictionary & subDict(const word &keyword, enum keyType::option matchOpt=keyType::REGEX) const
Find and return a sub-dictionary.
volVectorField momentumSource_
Momentum.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
areaVectorField Uf_
Film velocity.
const dimensionSet dimViscosity
const faMesh & regionMesh() const
Return the region mesh database.
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
const areaScalarField & rho() const
Access const reference rho.
Macros for easy insertion into run-time selection tables.
liquidMixtureProperties thermo_
Liquid thermo.
This boundary condition is not designed to be evaluated; it is assmued that the value is assigned via...
areaScalarField Tf_
Film temperature.
const dimensionSet dimMass(1, 0, 0, 0, 0, 0, 0)
Ostream & indent(Ostream &os)
Indent stream.
volScalarField cloudDiameterTrans_
Parcel diameters originating from film to cloud.
Internal::FieldType & primitiveFieldRef(const bool updateAccessTime=true)
Return a reference to the internal field.
areaScalarField mu_
Dynamic viscosity [Pa.s].
scalar Cp(const scalar p, const scalar T, const scalarField &X) const
Calculate the mixture heat capacity [J/(kg K)].
dimensionedSymmTensor sqr(const dimensionedVector &dv)
defineTypeNameAndDebug(kinematicThinFilm, 0)
const std::string patch
OpenFOAM patch number as a std::string.
Boundary & boundaryFieldRef(const bool updateAccessTime=true)
Return a reference to the boundary field.
areaVectorField USp_
Momentum source.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
fileName::Type type(const fileName &name, const bool followLink=true)
Return the file type: DIRECTORY or FILE, normally following symbolic links.
const areaScalarField & h() const
Access const reference h.
void relax(const scalar alpha)
Relax field (for steady-state solution).
label patchID() const
Return patch ID.
const dimensionSet dimTemperature(0, 0, 0, 1, 0, 0, 0)
const Time & time() const
Return the top-level database.
virtual void info()
Provide some feedback.
areaScalarField sigma_
Surface tension [m/s2].
areaScalarField rho_
Density [kg/m3].
virtual const volScalarField & cloudDiameterTrans() const
Return the parcel diameters originating from film to cloud.
scalar pRef_
Reference absolute pressure.
const areaScalarField & mu() const
Access const reference mu.
Type gMin(const FieldField< Field, Type > &f)
areaScalarField h_
Film hight.
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
static autoPtr< filmTurbulenceModel > New(liquidFilmBase &film, const dictionary &dict)
Return a reference to the selected injection model.
Type gMax(const FieldField< Field, Type > &f)
const areaScalarField & Tf() const
Access const reference Tf.
volScalarField cloudMassTrans_
Film mass for transfer to cloud.
const Boundary & boundaryField() const
Return const-reference to the boundary field.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
injectionModelList injection_
Cloud injection.
const areaScalarField & sigma() const
Access const reference sigma.