pEqn.H
Go to the documentation of this file.
1 {
2  volScalarField rAU("rAU", 1.0/UEqn.A());
6  (
7  "phiHbyA",
8  (fvc::interpolate(HbyA) & mesh.Sf())
10  );
12 
14  (
15  (
16  interface.surfaceTensionForce()
18  )*rAUf*mesh.magSf()
19  );
20 
22 
23  // Update the pressure BCs to ensure flux consistency
25 
26  Pair<tmp<volScalarField>> vDot = mixture->vDot();
27  const volScalarField& vDotc = vDot[0]();
28  const volScalarField& vDotv = vDot[1]();
29 
30  while (pimple.correctNonOrthogonal())
31  {
32  fvScalarMatrix p_rghEqn
33  (
36  ==
37  vDotv + vDotc
38  );
39 
40  p_rghEqn.setReference(pRefCell, pRefValue);
41 
42  p_rghEqn.solve(p_rgh.select(pimple.finalInnerIter()));
43 
44  if (pimple.finalNonOrthogonalIter())
45  {
46  phi = phiHbyA + p_rghEqn.flux();
47 
48  U = HbyA + rAU*fvc::reconstruct((phig + p_rghEqn.flux())/rAUf);
49  U.correctBoundaryConditions();
50  fvOptions.correct(U);
51  }
52  }
53 
54  p = p_rgh + rho*gh;
55 
56  if (p_rgh.needReference())
57  {
59  (
60  "p",
61  p.dimensions(),
63  );
64  p_rgh = p - rho*gh;
65  }
66 }
const volScalarField & vDotv
Definition: pEqn.H:28
fvMatrix< scalar > fvScalarMatrix
Definition: fvMatricesFwd.H:37
rho
Definition: pEqn.H:1
p
Definition: pEqn.H:50
volScalarField rAU(1.0/UEqn.A())
phiHbyA
Definition: pEqn.H:20
surfaceScalarField phig("phig", -rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
tmp< GeometricField< typename flux< Type >::type, fvsPatchField, surfaceMesh > > ddtCorr(const GeometricField< Type, fvPatchField, volMesh > &U, const GeometricField< Type, fvsPatchField, surfaceMesh > &Uf)
Definition: fvcDdt.C:165
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:43
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Definition: createFields.H:39
Pair< tmp< volScalarField > > vDot
Definition: pEqn.H:26
interfaceProperties interface(alpha1, U, thermo->transportPropertiesDict())
GeometricField< vector, fvPatchField, volMesh > volVectorField
Definition: volFieldsFwd.H:82
scalar getRefCellValue(const volScalarField &field, const label refCelli)
Return the current value of field in the reference cell.
Definition: findRefCell.C:127
fv::options & fvOptions
const surfaceScalarField & ghf
GeometricField< scalar, fvPatchField, volMesh > volScalarField
Definition: volFieldsFwd.H:81
dynamicFvMesh & mesh
const volScalarField & vDotc
Definition: pEqn.H:27
tmp< GeometricField< Type, faPatchField, areaMesh > > laplacian(const GeometricField< Type, faPatchField, areaMesh > &vf, const word &name)
Definition: facLaplacian.C:40
tmp< volVectorField > constrainHbyA(const tmp< volVectorField > &tHbyA, const volVectorField &U, const volScalarField &p)
Definition: constrainHbyA.C:28
HbyA
Definition: pEqn.H:4
p_rgh
Definition: pEqn.H:139
pimpleControl & pimple
adjustPhi(phiHbyA, U, p_rgh)
const scalar pRefValue
const label pRefCell
surfaceScalarField rAUf("rAUf", fvc::interpolate(rAU))
tmp< GeometricField< typename outerProduct< vector, Type >::type, fvPatchField, volMesh >> reconstruct(const GeometricField< Type, fvsPatchField, surfaceMesh > &ssf)
U
Definition: pEqn.H:72
dimensioned< scalar > dimensionedScalar
Dimensioned scalar obtained from generic dimensioned type.
mesh interpolate(rAU)
fvVectorMatrix & UEqn
Definition: UEqn.H:13
const volScalarField & gh
constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF)
phi
Definition: pEqn.H:18
GeometricField< scalar, fvsPatchField, surfaceMesh > surfaceScalarField
tmp< GeometricField< Type, fvsPatchField, surfaceMesh > > snGrad(const GeometricField< Type, fvPatchField, volMesh > &vf, const word &name)
Definition: fvcSnGrad.C:40