Go to the documentation of this file.
29 #include "phasePair.H"
31 #include "surfaceInterpolate.H"
53 const bool registerObject
74 <<
"Drag coefficient not defined for the segregated model."
77 return pair_.phase1();
102 mesh.time().timeName(),
110 L.correctBoundaryConditions();
118 pair_.phase1().residualAlpha() + pair_.phase2().residualAlpha()
126 (pair_.phase1().residualAlpha() + pair_.phase2().residualAlpha())/
L
138 max(
alpha1, pair_.phase1().residualAlpha())
143 max(
alpha2, pair_.phase2().residualAlpha())
149 /(limitedAlpha1*
rho1*nu1 + limitedAlpha2*
rho2*nu2)
156 /(magGradI*limitedAlpha1*limitedAlpha2*muI)
Defines the attributes of an object for which implicit objectRegistry management is supported,...
const vector L(dict.get< vector >("L"))
Description for mass transfer between a pair of phases. The direction of the mass transfer is from th...
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> grad(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
defineTypeNameAndDebug(blended, 0)
A class for managing temporary objects.
const volScalarField & alpha2
const volScalarField & alpha1
virtual ~segregated()
Destructor.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
CGAL::Exact_predicates_exact_constructions_kernel K
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
addToRunTimeSelectionTable(dragModel, blended, dictionary)
A list of keyword definitions, which are a keyword followed by a number of values (eg,...
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
Macros for easy insertion into run-time selection tables.
Mesh data needed to do the Finite Volume discretisation.
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.
errorManipArg< error, int > exit(error &err, const int errNo=1)
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
Calculate the gradient of the given field.
dimensioned< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
dimensionedScalar cbrt(const dimensionedScalar &ds)
segregated(const dictionary &dict, const phasePair &pair, const bool registerObject)
Construct from components.
static const Identity< scalar > I
const dimensionSet dimless
Dimensionless.