28 #include "surfaceInterpolate.H"
50 const bool registerObject
70 const fvMesh&
mesh(interface_.phase1().mesh());
89 interface_.phase1().residualAlpha()
90 + interface_.phase2().residualAlpha()
96 alpha1/
max(alpha1 + alpha2, residualAlpha)
100 alpha2/
max(alpha1 + alpha2, residualAlpha)
118 max(alpha1, interface_.phase1().residualAlpha())
123 max(alpha2, interface_.phase2().residualAlpha())
128 limitedAlpha1*rho1*nu1*limitedAlpha2*rho2*nu2
129 /(limitedAlpha2*rho1*nu1 + limitedAlpha1*rho2*nu2)
134 (interface_.rho()()*interface_.magUr()()())
135 /(magGradI*limitedAlpha1*limitedAlpha2*muI)
152 tK.
ref().correctBoundaryConditions();
Macros for easy insertion into run-time selection tables.
Field with dimensions and associated with geometry type GeoMesh which is used to size the field and a...
Generic GeometricField class.
static tmp< GeometricField< Type, GeoMesh, PrimitiveField > > New(const word &name, const Internal &, const PtrList< Patch > &, const HashPtrTable< Source > &=HashPtrTable< Source >())
Return a temporary field constructed from name,.
A list of keywords followed by any number of values (e.g. words and numbers) or sub-dictionaries.
Model for drag between phases.
Segregated drag model for use in regions with no obvious dispersed phase.
virtual tmp< surfaceScalarField > Kf() const
The drag function Kf used in the face-momentum equations.
segregated(const dictionary &dict, const phaseInterface &interface, const bool registerObject)
Construct from a dictionary and an interface.
virtual tmp< volScalarField > K() const
The drag function used in the momentum equation.
virtual ~segregated()
Destructor.
Mesh data needed to do the Finite Volume discretisation.
const DimensionedField< scalar, volMesh > & V() const
Return cell volumes.
Class to represent an interface between phases. Derivations can further specify the configuration of ...
Class to represent a interface between phases where the two phases are considered to be segregated; t...
A class for managing temporary objects.
T & ref() const
Return non-const reference or generate a fatal error.
This boundary condition applies a zero-gradient condition from the patch internal field onto the patc...
Foam::fvMesh mesh(Foam::IOobject(regionName, runTime.name(), runTime, Foam::IOobject::MUST_READ), false)
Calculate the gradient of the given field.
dimensionedScalar lambda(viscosity->lookup("lambda"))
defineTypeNameAndDebug(aerosolDrag, 0)
addToRunTimeSelectionTable(dragModel, aerosolDrag, dictionary)
static tmp< SurfaceField< Type > > interpolate(const VolField< Type > &tvf, const surfaceScalarField &faceFlux, Istream &schemeData)
Interpolate field onto faces using scheme given by Istream.
tmp< VolField< typename outerProduct< vector, Type >::type > > grad(const SurfaceField< Type > &ssf)
const dimensionSet dimless
void mag(LagrangianPatchField< scalar > &f, const LagrangianPatchField< Type > &f1)
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
void cbrt(LagrangianPatchField< scalar > &f, const LagrangianPatchField< scalar > &f1)
void sqr(LagrangianPatchField< typename outerProduct< Type, Type >::type > &f, const LagrangianPatchField< Type > &f1)
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.