37 namespace populationBalance
51 Foam::populationBalance::shapeModels::fractal::dColl(
const label i)
const
55 tmp<volScalarField> tDColl
86 kappas_(popBal.nGroups()),
87 dColls_(popBal.nGroups()),
88 Sus_(popBal.nGroups())
164 Df_->value(popBal_.dSph(i).value())
177 alphaC_->value(popBal_.dSph(i).value())
200 const phaseModel& phase = popBal_.phases()[i];
230 Sus_[i] +
fvm::Sp(popBal_.Sp(i)*fi, kappas_[i])
231 + popBal_.expansionSu(i, kappas_)
232 +
fvm::Sp(popBal_.expansionSp(i)*fi, kappas_[i])
233 + popBal_.modelSourceSu(i, kappas_)
234 + popBal_.fluid().fvModels().source(alphaFi,
rho, kappas_[i])/
rho
248 popBal_.fluid().fvConstraints().constrain(kappaiEqn);
252 popBal_.fluid().fvConstraints().constrain(kappas_[i]);
257 kappas_[i] =
min(
max(kappas_[i], 6/popBal_.dSph(i)), 6/popBal_.dSph(0));
259 kappas_[i].correctBoundaryConditions();
269 dColls_[i] = dColl(i);
277 return kappas_[i]*popBal_.v(i);
#define forAll(list, i)
Loop across all elements in list.
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Run-time selectable general function of one variable.
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
static word member(const word &name)
Return member (name without the extension)
static word groupName(Name name, const word &group)
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
A special matrix type and solver, designed for finite volume solutions of scalar equations....
void relax(const scalar alpha)
Relax matrix (for steady-state solution).
SolverPerformance< Type > solve(const dictionary &)
Solve segregated or coupled returning the solution statistics.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual tmp< surfaceScalarField > alphaPhi() const =0
Return the volumetric flux of the phase.
Model for tracking the evolution of a dispersed phase size distribution due to coalescence (synonymou...
const dimensionedScalar & v(const label i) const
Access the representative volumes diameters of a group.
static tmp< volScalarField > groupField(const word &name, const label i, const phaseModel &phase)
Read and return a group-associated field.
static IOobject groupFieldIo(const word &name, const label i, const phaseModel &phase, const IOobject::readOption r=IOobject::NO_READ, const IOobject::writeOption w=IOobject::NO_WRITE, const bool registerObject=true)
Return IO for a group-associated field.
const fvMesh & mesh() const
Return reference to the mesh.
Base class for modelling evolution of secondary representative properties of a size class....
Base class for modelling the shape of the particles belonging to a size class through alternative dia...
const populationBalanceModel & popBal_
Reference to the population balance model.
Class for modelling the shape of particle aggregates using the concept of fractal geometry....
virtual volScalarField::Internal & src(const label i)
Access a secondary property source.
virtual void correct()
Correct the shape.
dimensionedScalar alphaC(const label i) const
Return the scaling prefactor for a group.
fractal(const dictionary &dict, const populationBalanceModel &popBal)
Construct from a dictionary.
dimensionedScalar Df(const label i) const
Return the fractal dimension for a group.
virtual const volScalarField & fld(const label i) const
Return a reference to a secondary property field.
virtual tmp< volScalarField > d(const label i) const
Return the representative diameter of a group.
virtual tmp< volScalarField > a(const label i) const
Return the representative surface area of a group.
virtual ~fractal()
Destructor.
virtual void solve()
Solve equations.
A class for managing temporary objects.
word capitalise() const
Return the word with the first letter capitalised.
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the matrix for the first temporal derivative.
Calculate the matrix for the divergence of the given field and flux.
Calculate the matrix for implicit and explicit sources.
volScalarField alpha(IOobject("alpha", runTime.name(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), lambda *max(Ua &U, zeroSensitivity))
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< fvMatrix< Type > > div(const surfaceScalarField &flux, const VolField< Type > &vf, const word &name)
tmp< fvMatrix< Type > > Sp(const volScalarField::Internal &, const VolField< Type > &)
tmp< fvMatrix< Type > > ddt(const VolField< Type > &vf)
addToRunTimeSelectionTable(shapeModel, fractal, dictionary)
defineTypeNameAndDebug(fractal, 0)
const dimensionSet & dimless
intWM_LABEL_SIZE_t label
A label is an int32_t or int64_t as specified by the pre-processor macro WM_LABEL_SIZE.
const dimensionSet & dimLength
const dimensionSet & dimTime
VolField< scalar > volScalarField
dimensioned< Type > min(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
void pow3(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
word name(const LagrangianState state)
Return a string representation of a Lagrangian state enumeration.
tmp< DimensionedField< typename powProduct< Type, r >::type, GeoMesh, Field > > pow(const DimensionedField< Type, GeoMesh, PrimitiveField > &df, typename powProduct< Type, r >::type)
tmp< DimensionedField< TypeR, GeoMesh, Field > > New(const tmp< DimensionedField< TypeR, GeoMesh, Field >> &tdf1, const word &name, const dimensionSet &dimensions)
dimensioned< Type > max(const DimensionedField< Type, GeoMesh, PrimitiveField > &df)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.