38 namespace regionModels
40 namespace surfaceFilmModels
57 void waxSolventViscosity::correctMu()
59 const kinematicSingleLayer&
film = filmType<kinematicSingleLayer>();
67 const auto& Wsolvent =
73 const auto& Ysolvent0 =
79 const auto& Ysolvent =
87 Ysolvent*Wsolvent/((1 - Ysolvent)*Wwax + Ysolvent*Wsolvent)
92 Ysolvent0*Wsolvent/((1 - Ysolvent0)*Wwax + Ysolvent0*Wsolvent)
102 waxSolventViscosity::waxSolventViscosity
114 IOobject::scopedName(typeName,
"muWax"),
115 film.regionMesh().time().
timeName(),
116 film.regionMesh().thisDb(),
130 coeffDict_.subDict(
"muWax"),
138 IOobject::scopedName(typeName,
"muSolvent"),
139 film.regionMesh().time().
timeName(),
140 film.regionMesh().thisDb(),
154 coeffDict_.subDict(
"muSolvent"),
const Type & lookupObject(const word &name, const bool recursive=false) const
Lookup and return const reference to the object of the given Type. Fatal if not found or the wrong ty...
const word zeroGradientType
A zeroGradient patch field type.
Base class for surface film models.
A list of keyword definitions, which are a keyword followed by a number of values (eg...
volScalarField muSolvent_
Solvent viscosity.
tmp< DimensionedField< TypeR, GeoMesh > > New(const tmp< DimensionedField< TypeR, GeoMesh >> &tf1, const word &name, const dimensionSet &dimensions, const bool initCopy=false)
Global function forwards to reuseTmpDimensionedField::New.
Template invariant parts for fvPatchField.
UniformDimensionedField< scalar > uniformDimensionedScalarField
const dimensionSet dimDynamicViscosity
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.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static word scopedName(const std::string &scope, const word &name)
Create scope:name or scope_name string.
autoPtr< filmViscosityModel > muWaxModel_
Wax viscosity model.
Base class for surface film viscosity models.
const fvMesh & regionMesh() const
Return the region mesh database.
autoPtr< filmViscosityModel > muSolventModel_
Solvent viscosity model.
volScalarField & mu_
Reference to the viscosity field.
void T(FieldField< Field, Type > &f1, const FieldField< Field, Type > &f2)
const dimensionedScalar mu
Atomic mass unit.
dimensionedScalar pow(const dimensionedScalar &ds, const dimensionedScalar &expt)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual void correct(const volScalarField &p, const volScalarField &T)
Correct.
volScalarField muWax_
Wax viscosity.
void correctBoundaryConditions()
Correct boundary field.
Defines the attributes of an object for which implicit objectRegistry management is supported...
defineTypeNameAndDebug(kinematicSingleLayer, 0)
static constexpr const zero Zero
Global zero (0)