pEqn.H File Reference
Include dependency graph for pEqn.H:

Go to the source code of this file.

Functions

surfaceScalarField rAUf ("rAUf", fvc::interpolate(rAU))
 
volVectorField HbyA (constrainHbyA(rAU *UEqn.H(), U, p_rgh))
 
surfaceScalarField phiHbyA ("phiHbyA", fvc::flux(HbyA)+MRF.zeroFilter(fvc::interpolate(rho *rAU) *fvc::ddtCorr(U, phi)))
 
MRF makeRelative (phiHbyA)
 
surfaceScalarField phig ((mixture.surfaceTensionForce() - ghf *fvc::snGrad(rho)) *rAUf *mesh.magSf())
 
 constrainPressure (p_rgh, U, phiHbyA, rAUf, MRF)
 
 if (pimple.transonic())
 
volScalarField p_rgh_0 (p_rgh)
 
 while (pimple.correctNonOrthogonal())
 
mixture thermo1 ().correctRho(psi1 *(p_rgh - p_rgh_0))
 
mixture thermo2 ().correctRho(psi2 *(p_rgh - p_rgh_0))
 
p_rgh correctBoundaryConditions ()
 

Variables

 phiHbyA = phig
 
tmp< fvScalarMatrix > p_rghEqnComp1
 
tmp< fvScalarMatrix > p_rghEqnComp2
 
 else
 
 rho = alpha1*rho1 + alpha2*rho2
 
 p_rgh = p - rho*gh
 
 K = 0.5*magSqr(U)
 

Function Documentation

◆ rAUf()

surfaceScalarField rAUf ( "rAUf"  ,
fvc::interpolate(rAU  
)

◆ HbyA()

volVectorField HbyA ( constrainHbyA(rAU *UEqn.H(), U, p_rgh )

◆ phiHbyA()

surfaceScalarField phiHbyA ( "phiHbyA"  ,
fvc::flux(HbyA)+MRF.zeroFilter(fvc::interpolate(rho *rAU) *fvc::ddtCorr(U, phi))   
)

◆ makeRelative()

MRF makeRelative ( phiHbyA  )

◆ phig()

surfaceScalarField phig ( (mixture.surfaceTensionForce() - ghf *fvc::snGrad(rho)) *rAUf *mesh.magSf()  )

◆ constrainPressure()

constrainPressure ( p_rgh  ,
U  ,
phiHbyA  ,
rAUf  ,
MRF   
)

◆ if()

if ( pimple.  transonic())

Definition at line 29 of file pEqn.H.

References alpha1, alpha2, alphaPhi1, alphaPhi2, Foam::correction(), Foam::fac::ddt(), Foam::fac::div(), fvOptions, interpolate(), mixture, p_rgh, p_rghEqnComp1, p_rghEqnComp2, phi, Foam::pos(), psi1, psi2, rho1, rho1f(), rho2, rho2f(), and Sp.

Here is the call graph for this function:

◆ p_rgh_0()

volScalarField p_rgh_0 ( p_rgh  )

◆ while()

while ( pimple.  correctNonOrthogonal())

Definition at line 100 of file pEqn.H.

References alpha1, alpha2, Foam::fac::div(), fvOptions, gh, HbyA, Foam::fac::laplacian(), Foam::max(), mesh, p, p_rgh, p_rghEqnComp1, p_rghEqnComp2, phi, phig(), phiHbyA, pimple, pMin, rAU(), rAUf(), Foam::fvc::reconstruct(), rho1, rho2, solve(), and U.

Here is the call graph for this function:

◆ thermo1()

mixture thermo1 ( )

◆ thermo2()

mixture thermo2 ( )

◆ correctBoundaryConditions()

p_rgh correctBoundaryConditions ( )

Variable Documentation

◆ phiHbyA

phiHbyA = phig

Definition at line 21 of file pEqn.H.

◆ p_rghEqnComp1

tmp<fvScalarMatrix> p_rghEqnComp1

Definition at line 26 of file pEqn.H.

◆ p_rghEqnComp2

p_rghEqnComp2
Initial value:

Definition at line 27 of file pEqn.H.

◆ else

else
Initial value:
{
# 72 "/home/chef2/andy/OpenFOAM/release/v2112/OpenFOAM-v2112/applications/solvers/multiphase/compressibleInterFoam/pEqn.H" 2
*(
(
- (fvOptions(alpha1, mixture.thermo1().rho())&rho1)
)/rho1
)

Definition at line 71 of file pEqn.H.

◆ rho

Definition at line 138 of file pEqn.H.

◆ p_rgh

p_rgh = p - rho*gh

Definition at line 141 of file pEqn.H.

◆ K

K = 0.5*magSqr(U)

Definition at line 144 of file pEqn.H.

alpha2
const volScalarField & alpha2
Definition: setRegionFluidFields.H:9
p_rghEqnComp1
tmp< fvScalarMatrix > p_rghEqnComp1
Definition: pEqn.H:29
Foam::correction
tmp< fvMatrix< Type > > correction(const fvMatrix< Type > &)
alpha1
const volScalarField & alpha1
Definition: setRegionFluidFields.H:8
Foam::fac::div
tmp< GeometricField< Type, faPatchField, areaMesh > > div(const GeometricField< Type, faePatchField, edgeMesh > &ssf)
Definition: facDiv.C:50
psi2
const volScalarField & psi2
Definition: setRegionFluidFields.H:31
rho2f
surfaceScalarField rho2f(fvc::interpolate(rho2))
fvOptions
fv::options & fvOptions
Definition: setRegionFluidFields.H:23
rho2
volScalarField & rho2
Definition: setRegionFluidFields.H:30
rho1
volScalarField & rho1
Definition: setRegionFluidFields.H:27
rho1f
surfaceScalarField rho1f(fvc::interpolate(rho1))
alphaPhi1
const surfaceScalarField & alphaPhi1
Definition: setRegionFluidFields.H:13
psi1
const volScalarField & psi1
Definition: setRegionFluidFields.H:28
Foam::fac::ddt
tmp< GeometricField< Type, faPatchField, areaMesh > > ddt(const dimensioned< Type > dt, const faMesh &mesh)
Definition: facDdt.C:47
p_rgh
p_rgh
Definition: pEqn.H:139
mixture
Info<< "Creating temperaturePhaseChangeTwoPhaseMixture\n"<< endl;autoPtr< temperaturePhaseChangeTwoPhaseMixture > mixture
Definition: createFields.H:39
alphaPhi2
const surfaceScalarField & alphaPhi2
Definition: setRegionFluidFields.H:17
Foam::pos
dimensionedScalar pos(const dimensionedScalar &ds)
Definition: dimensionedScalar.C:177