Functions | Variables
pEqn.H File Reference
Include dependency graph for pEqn.H:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Functions

rho relax ()
 
volScalarField rAU ("rAU", 1.0/UEqn().A())
 
surfaceScalarField rhorAUf ("rhorAUf", fvc::interpolate(rho *rAU))
 
volVectorField HbyA ("HbyA", U)
 
UEqn clear ()
 
surfaceScalarField phig (-rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf())
 
surfaceScalarField phiHbyA ("phiHbyA",(fvc::interpolate(rho *HbyA) &mesh.Sf()))
 
MRF makeRelative (fvc::interpolate(rho), phiHbyA)
 
 setSnGrad< fixedFluxPressureFvPatchScalarField > (p_rgh.boundaryField(),(phiHbyA.boundaryField() - MRF.relative(mesh.Sf().boundaryField() &U.boundaryField()) *rho.boundaryField())/(mesh.magSf().boundaryField() *rhorAUf.boundaryField()))
 
 for (int nonOrth=0;nonOrth<=nNonOrthCorr;nonOrth++)
 
 if (closedVolume &&compressible)
 

Variables

 rho = max(rho, rhoMin[i])
 
 HbyA = rAU*UEqn().H()
 
bool closedVolume = adjustPhi(phiHbyA, U, p_rgh)
 
 phiHbyA = phig
 
dimensionedScalar compressibility = fvc::domainIntegrate(psi)
 
bool compressible = (compressibility.value() > SMALL)
 
 p = p_rgh + rho*gh
 

Function Documentation

◆ relax()

rho relax ( )

◆ rAU()

volScalarField rAU ( "rAU"  ,
1.0/  UEqn).A( 
)

◆ rhorAUf()

surfaceScalarField rhorAUf ( "rhorAUf"  ,
fvc::interpolate(rho *rAU  
)

◆ HbyA()

volVectorField HbyA ( "HbyA"  ,
U   
)

◆ clear()

UEqn clear ( )

◆ phig()

surfaceScalarField phig ( -rhorAUf *ghf fvc::snGradrho) *mesh.magSf()

◆ phiHbyA()

surfaceScalarField phiHbyA ( "phiHbyA"  ,
(fvc::interpolate(rho *HbyA) &mesh.Sf())   
)

◆ makeRelative()

MRF makeRelative ( fvc::interpolate(rho ,
phiHbyA   
)

◆ setSnGrad< fixedFluxPressureFvPatchScalarField >()

setSnGrad< fixedFluxPressureFvPatchScalarField > ( p_rgh.  boundaryField(),
(phiHbyA.boundaryField() - MRF.relative(mesh.Sf().boundaryField() &U.boundaryField()) *rho.boundaryField())/(mesh.magSf().boundaryField() *rhorAUf.boundaryField())   
)

◆ for()

for ( int  nonOrth = 0; nonOrth<=nNonOrthCorr; nonOrth++)

Definition at line 43 of file pEqn.H.

References compressible, Foam::fvc::div(), fvOptions, Foam::getRefCellValue(), HbyA, Foam::fvc::laplacian(), nNonOrthCorr, p_rgh, phi, phig(), phiHbyA, pRefCell, pRefValue, rAU(), Foam::fvc::reconstruct(), rhorAUf(), and U.

Here is the call graph for this function:

◆ if()

if ( closedVolume &&  compressible)

Definition at line 80 of file pEqn.H.

References compressibility, Foam::fvc::domainIntegrate(), gh, initialMass, p, p_rgh, and rho.

Here is the call graph for this function:

Variable Documentation

◆ rho

rho = max(rho, rhoMin[i])

Definition at line 3 of file pEqn.H.

◆ HbyA

HbyA = rAU*UEqn().H()

Definition at line 11 of file pEqn.H.

◆ closedVolume

bool closedVolume = adjustPhi(phiHbyA, U, p_rgh)

Definition at line 24 of file pEqn.H.

◆ phiHbyA

phiHbyA = phig

Definition at line 26 of file pEqn.H.

◆ compressibility

dimensionedScalar compressibility = fvc::domainIntegrate(psi)

Definition at line 39 of file pEqn.H.

◆ compressible

bool compressible = (compressibility.value() > SMALL)

Definition at line 40 of file pEqn.H.

◆ p

p = p_rgh + rho*gh

Definition at line 74 of file pEqn.H.