26 #include "segregated.H" 27 #include "phasePair.H" 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();
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.
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.
tmp< volScalarField > magUr() const
Relative velocity magnitude.
virtual ~segregated()
Destructor.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
const phasePair & pair_
Phase pair.
Macros for easy insertion into run-time selection tables.
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 volScalarField & alpha1
dimensionedScalar cbrt(const dimensionedScalar &ds)
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
const dimensionedScalar & nu() const
Return the laminar viscosity.
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.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const dimensionedScalar & rho() const
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
dimensioned< scalar > mag(const dimensioned< Type > &)
const dimensionedScalar & rho2
A class for managing temporary objects.
const dimensionedScalar & rho1
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
tmp< volScalarField > rho() const
Average density.