25 mixture.surfaceTensionForce()
103 p_rghEqnComp1.ref() -=
105 p_rghEqnComp2.ref() -=
110 p_rghEqnComp1.ref().relax();
111 p_rghEqnComp2.ref().relax();
130 if (
pimple.finalNonOrthogonalIter())
142 p_rgh.correctBoundaryConditions();
146 U.correctBoundaryConditions();
155 mixture.thermo1().correctRho(
psi1*(
p_rgh - p_rgh_0));
156 mixture.thermo2().correctRho(
psi2*(
p_rgh - p_rgh_0));
161 p_rgh.correctBoundaryConditions();
surfaceScalarField alphaPhi1(alphaPhi1Header, phi *fvc::interpolate(alpha1))
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
Return the correction form of the given matrix.
const volScalarField & rho1
fvMatrix< scalar > fvScalarMatrix
tmp< fvScalarMatrix > p_rghEqnComp1
layerAndWeight max(const layerAndWeight &a, const layerAndWeight &b)
pimpleNoLoopControl & pimple
surfaceScalarField rho1f(fvc::interpolate(rho1))
mixture MRF().makeRelative(phiHbyA)
tmp< GeometricField< Type, fvPatchField, volMesh > > div(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
dimensionedScalar pMin("pMin", dimPressure, mixture)
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
MRF makeRelative(fvc::interpolate(rho), phiHbyA)
volScalarField & alpha1(mixture.alpha1())
twoPhaseChangeModel & phaseChange
GeometricField< vector, fvPatchField, volMesh > volVectorField
tmp< GeometricField< Type, fvPatchField, volMesh > > laplacian(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
CGAL::Exact_predicates_exact_constructions_kernel K
tmp< GeometricField< Type, fvPatchField, volMesh > > ddt(const dimensioned< Type > dt, const fvMesh &mesh)
GeometricField< scalar, fvPatchField, volMesh > volScalarField
dimensionedScalar pos(const dimensionedScalar &ds)
tmp< fvScalarMatrix > p_rghEqnComp2
surfaceScalarField rho2f(fvc::interpolate(rho2))
Foam::fvConstraints & fvConstraints
volScalarField p_rgh_0(p_rgh)
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
autoPtr< surfaceVectorField > Uf
dimensioned< scalar > magSqr(const dimensioned< Type > &)
const surfaceScalarField & ghf
const volScalarField & psi2
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 tmp< volScalarField::Internal > & Sp
bool constrain(fvMatrix< Type > &eqn) const
Apply constraints to an equation.
Foam::fvModels & fvModels
volScalarField::Internal dgdt(IOobject("dgdt", runTime.timeName(), mesh, IOobject::READ_IF_PRESENT, IOobject::AUTO_WRITE), alpha1 *fvc::div(phi))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
tmp< surfaceScalarField > absolute(const tmp< surfaceScalarField > &tphi, const volVectorField &U)
Return the given relative flux in absolute form.
const volScalarField & rho2
const surfaceScalarField phig(-rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
fvScalarMatrix Sp_rgh(phaseChange.Sp_rgh(rho, gh, p_rgh))
surfaceScalarField alphaPhi2("alphaPhi2", phi - alphaPhi1)
void correctUf(autoPtr< surfaceVectorField > &Uf, const volVectorField &U, const surfaceScalarField &phi, const MRFType &MRF)
const volScalarField & gh
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< surfaceScalarField > flux(const volVectorField &vvf)
Return the face-flux field obtained from the given volVectorField.
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
const volScalarField & psi1
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
constrainPressure(p, rho, U, phiHbyA, rhorAUf, MRF)