44 namespace diameterModels
56 return max(6/
max(kappai_, 6/dMax_), dMin_);
64 const dictionary& diameterProperties,
65 const phaseModel& phase
68 diameterModel(diameterProperties, phase),
73 IOobject::groupName(
"kappai", phase.
name()),
81 dMax_(
"dMax",
dimLength, diameterProperties),
82 dMin_(
"dMin",
dimLength, diameterProperties),
83 residualAlpha_(
"residualAlpha",
dimless, diameterProperties),
84 d_(IOobject::groupName(
"d", phase.
name()), dsm()),
85 sources_(diameterProperties.
lookup(
"sources"), IATEsource::iNew(*this))
105 return phase()*kappai_;
143 R += sources_[j].R(alphaAv, kappai_);
184 IATEsource::iNew(*
this)
185 ).transfer(sources_);
fvMatrix< scalar > fvScalarMatrix
#define forAll(list, i)
Loop across all elements in list.
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
tmp< fvMatrix< Type > > SuSp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
virtual tmp< volScalarField > d() const
Get the diameter field.
const dimensionSet dimless
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const GeometricField< Type, fvPatchField, volMesh > &)
Fundamental dimensioned constants.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
Area-weighted average a surfaceField creating a volField.
virtual tmp< volScalarField > a() const
Get the surface area per unit volume field.
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Calculate the first temporal derivative.
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
stressControl lookup("compactNormalStress") >> compactNormalStress
const phaseModel & phase() const
Return the phase.
Foam::fvConstraints & fvConstraints
virtual bool read(const dictionary &phaseProperties)
Read phaseProperties dictionary.
virtual ~IATE()
Destructor.
tmp< fvMatrix< Type > > ddt(const GeometricField< Type, fvPatchField, volMesh > &vf)
Calculate the matrix for the first temporal derivative.
surfaceScalarField alphaPhi(phi.name()+alpha1.name(), fvc::flux(phi, alpha1, alphaScheme))
IATE(const dictionary &diameterProperties, const phaseModel &phase)
Construct from dictionary and phase.
Calculate the divergence of the given field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
static autoPtr< dictionary > New(Istream &)
Construct top-level dictionary on freestore from Istream.
defineTypeNameAndDebug(combustionModel, 0)
word name(const complex &)
Return a string representation of a complex.
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Foam::fvModels & fvModels
Calculate the matrix for the divergence of the given field and flux.
#define R(A, B, C, D, E, F, K, M)
Finite volume constraints.
tmp< GeometricField< Type, fvPatchField, volMesh > > average(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
Area-weighted average a surfaceField creating a volField.
virtual void correct()
Correct the model.
A class for managing temporary objects.
const dictionary & diameterProperties() const
Return the phase diameter properties dictionary.
Calculate the matrix for implicit and explicit sources.
ITstream & lookup(const word &, bool recursive=false, bool patternMatch=true) const
Find and return an entry data stream.