29 #include "surfaceInterpolate.H" 49 const dictionary&
dict,
50 const phasePair& pair,
51 const bool registerObject
54 dragModel(dict, pair, registerObject),
72 <<
"Drag coefficient not defined for the segregated model." 100 mesh.time().timeName(),
108 L.correctBoundaryConditions();
131 limitedAlpha1*
rho1*nu1*limitedAlpha2*
rho2*nu2
132 /(limitedAlpha1*
rho1*nu1 + limitedAlpha2*
rho2*nu2)
138 /(magGradI*limitedAlpha1*limitedAlpha2*muI)
const volScalarField & rho1
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const phaseModel & phase2() const
Return phase 2.
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
errorManipArg< error, int > exit(error &err, const int errNo=1)
dimensioned< Type > max(const dimensioned< Type > &, const dimensioned< Type > &)
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
static const char *const typeName
const phaseModel & phase1() const
Return phase 1.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
IOobject(const word &name, const fileName &instance, const objectRegistry ®istry, readOption r=NO_READ, writeOption w=NO_WRITE, bool registerObject=true)
Construct from name, instance, registry, io options.
virtual tmp< volScalarField > rho() const =0
Return the density field.
volScalarField & alpha1(mixture.alpha1())
tmp< volScalarField > magUr() const
Relative velocity magnitude.
const dimensionSet dimless
virtual ~segregated()
Destructor.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
Macros for easy insertion into run-time selection tables.
const dimensionSet dimLength
GeometricField< scalar, fvPatchField, volMesh > volScalarField
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
static const Identity< scalar > I
Calculate the gradient of the given field.
const rhoThermo & thermo() const
Return const-access to phase rhoThermo.
dimensionedScalar cbrt(const dimensionedScalar &ds)
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
const phasePair & pair_
Phase pair.
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
const Mesh & mesh() const
Return mesh.
defineTypeNameAndDebug(combustionModel, 0)
static tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > interpolate(const GeometricField< Type, fvPatchField, volMesh > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
segregated(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from components.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const volScalarField & rho2
virtual tmp< volScalarField > nu() const
Kinematic viscosity of mixture [m^2/s].
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
tmp< volScalarField > rho() const
Average density.