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();
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
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
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 > CdRe() const
Drag coefficient.
virtual ~segregated()
Destructor.
const dimensionedScalar & residualAlpha() const
Return the residual phase-fraction for given phase.
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
const phasePair & pair_
Phase pair.
Macros for easy insertion into run-time selection tables.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static const Identity< scalar > I
Calculate the gradient of the given field.
virtual tmp< volScalarField > K() const
Return the drag coefficient K.
dimensionedScalar cbrt(const dimensionedScalar &ds)
const dimensionedScalar & rho() const
const dimensionedScalar & nu() const
Return the laminar viscosity.
Internal::FieldType & primitiveFieldRef()
Return a reference to the internal field.
addToRunTimeSelectionTable(ensightPart, ensightPartCells, istream)
defineTypeNameAndDebug(combustionModel, 0)
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
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.
const phaseModel & phase1() const
segregated(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from components.
const dimensionSet dimless(0, 0, 0, 0, 0, 0, 0)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
const Mesh & mesh() const
Return mesh.
tmp< volScalarField > rho() const
Average density.
dimensionedScalar lambda(laminarTransport.lookup("lambda"))
dimensioned< scalar > mag(const dimensioned< Type > &)
A class for managing temporary objects.
tmp< volScalarField > magUr() const
Relative velocity magnitude.
const phaseModel & phase2() const