29 #include "phasePair.H" 31 #include "surfaceInterpolate.H" 51 const dictionary&
dict,
52 const phasePair& pair,
53 const bool registerObject
56 dragModel(
dict, pair, registerObject),
74 <<
"Drag coefficient not defined for the segregated model." 77 return pair_.phase1();
83 const fvMesh&
mesh(pair_.phase1().mesh());
91 tmp<volScalarField> tnu1(pair_.phase1().nu());
92 tmp<volScalarField> tnu2(pair_.phase2().nu());
102 mesh.time().timeName(),
110 L.correctBoundaryConditions();
118 pair_.phase1().residualAlpha() + pair_.phase2().residualAlpha()
126 (pair_.phase1().residualAlpha() + pair_.phase2().residualAlpha())/
L static const word & zeroGradientType() noexcept
The type name for zeroGradient patch fields.
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< typename typeOfMag< Type >::type > mag(const dimensioned< Type > &dt)
error FatalError
Error stream (stdout output on all processes), with additional 'FOAM FATAL ERROR' header text and sta...
const vector L(dict.get< vector >("L"))
#define FatalErrorInFunction
Report an error message using Foam::FatalError.
defineTypeNameAndDebug(AttouFerschneider, 0)
label max(const labelHashSet &set, label maxValue=labelMin)
Find the max value in labelHashSet, optionally limited by second argument.
dimensionedSymmTensor sqr(const dimensionedVector &dv)
const volScalarField & alpha2
const dimensionSet dimless
Dimensionless.
CGAL::Exact_predicates_exact_constructions_kernel K
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
Macros for easy insertion into run-time selection tables.
virtual tmp< volScalarField > CdRe() const
Drag coefficient.
GeometricField< scalar, fvPatchField, volMesh > volScalarField
static const Identity< scalar > I
Calculate the gradient of the given field.
dimensionedScalar lambda("lambda", dimTime/sqr(dimLength), laminarTransport)
dimensionedScalar cbrt(const dimensionedScalar &ds)
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.
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
const dimensionSet dimLength(0, 1, 0, 0, 0, 0, 0)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
virtual ~segregated()
Destructor.
addToRunTimeSelectionTable(dragModel, AttouFerschneider, dictionary)
A class for managing temporary objects.
static constexpr const zero Zero
Global zero (0)
const volScalarField & alpha1