27 PtrList<surfaceScalarField>
alphafs(
fluid.phases().size());
30 PtrList<volScalarField>
rAUs(
fluid.phases().size());
34 for (phaseModel& phase :
fluid.phases())
36 MRF.makeAbsolute(phase.phi().oldTime());
37 MRF.makeAbsolute(phase.phi());
56 dimensionedScalar(dimArea*dimVelocity, Zero)
63 for (phaseModel& phase :
fluid.phases())
65 const volScalarField&
alpha = phase;
70 volScalarField dragCoeffi
81 dragCoeffi.correctBoundaryConditions();
104 MRF.makeRelative(phase.phi().oldTime());
105 MRF.makeRelative(phase.phi());
111 + (phase.rho() - fvc::interpolate(
rho))*(
g &
mesh.Sf())
115 auto dmIter =
fluid.dragModels().cbegin();
121 dmIter.good() && dcIter.good();
125 const phaseModel *phase2Ptr =
nullptr;
127 if (&phase == &dmIter()->
phase1())
129 phase2Ptr = &dmIter()->phase2();
131 else if (&phase == &dmIter()->
phase2())
133 phase2Ptr = &dmIter()->phase1();
141 fvc::interpolate((*dcIter())/phase.rho())
175 dimensionedScalar(dimensionSet(-1, 3, 1, 0, 0), Zero)
179 for (
const phaseModel& phase :
fluid.phases())
188 surfaceScalarField::Boundary
phib(
phi.boundaryField());
191 for (
const phaseModel& phase :
fluid.phases())
195 *(
mesh.Sf().boundaryField() & phase.U().boundaryField());
202 p_rgh.boundaryFieldRef(),
205 )/(
mesh.magSf().boundaryField()*
rAUf.boundaryField())
211 fvScalarMatrix pEqnIncomp
229 if (
pimple.finalNonOrthogonalIter())
231 surfaceScalarField mSfGradp(
"mSfGradp", pEqnIncomp.flux()/
rAUf);
234 phi = dimensionedScalar(
"phi",
phi.dimensions(), Zero);
236 for (phaseModel& phase :
fluid.phases())
245 *mSfGradp/phase.rho();
261 mSfGradp = pEqnIncomp.flux()/
rAUf;
263 U = dimensionedVector(
"U", dimVelocity, Zero);
266 for (phaseModel& phase :
fluid.phases())
268 const volScalarField&
alpha = phase;
276 (phase.rho() - fvc::interpolate(
rho))
284 phase.U().correctBoundaryConditions();
295 #include "continuityErrs.H"
static const Foam::dimensionedScalar A("", Foam::dimPressure, 611.21)
const uniformDimensionedVectorField & g
const surfaceScalarField & ghf
const volScalarField & gh
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
autoPtr< multiphaseSystem::dragCoeffFields > dragCoeffs(fluid.dragCoeffs())
PtrList< fvVectorMatrix > UEqns(fluid.phases().size())
surfaceScalarField ghSnGradRho(ghf *fvc::snGrad(rho) *mesh.magSf())
PtrList< surfaceScalarField > phiHbyAs(fluid.phases().size())
PtrList< surfaceScalarField > rAlphaAUfs(fluid.phases().size())
PtrList< volVectorField > HbyAs(fluid.phases().size())
setSnGrad< fixedFluxPressureFvPatchScalarField >(p_rgh.boundaryFieldRef(),(phiHbyA.boundaryField() - MRF.relative(phib))/(mesh.magSf().boundaryField() *rAUf.boundaryField()))
PtrList< surfaceScalarField > alphafs(phases.size())
PtrList< volScalarField > rAUs
static const char *const typeName
The type name used in ensight case files.