Functions | Variables
pEqn.H File Reference
Include dependency graph for pEqn.H:

Go to the source code of this file.


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()))
 while (simple.correctNonOrthogonal())
 if (closedVolume)


 HbyA = rAU*UEqn().H()
bool closedVolume = adjustPhi(phiHbyA, U, p_rgh)
 phiHbyA = phig
 p = p_rgh + rho*gh
 rho = thermo.rho()

Function Documentation

rho relax ( )
volScalarField rAU ( "rAU"  ,
1.0/  UEqn).A( 
surfaceScalarField rhorAUf ( "rhorAUf"  ,
fvc::interpolate(rho *rAU  
volVectorField HbyA ( "HbyA"  ,
UEqn clear ( )
surfaceScalarField phig ( -rhorAUf *ghf fvc::snGradrho)*mesh.magSf()
surfaceScalarField phiHbyA ( "phiHbyA"  ,
(fvc::interpolate(rho *HbyA)&mesh.Sf())   
MRF makeRelative ( fvc::interpolate(rho ,
setSnGrad< fixedFluxPressureFvPatchScalarField > ( p_rgh.  boundaryField(),
( phiHbyA.boundaryField() -MRF.relative(mesh.Sf().boundaryField()&U.boundaryField()) *rho.boundaryField() )/(mesh.magSf().boundaryField()*rhorAUf.boundaryField())   
while ( simple.  correctNonOrthogonal())

Definition at line 37 of file pEqn.H.

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

Here is the call graph for this function:

if ( closedVolume  )

Definition at line 69 of file pEqn.H.

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

Here is the call graph for this function:

Variable Documentation

HbyA = rAU*UEqn().H()

Definition at line 9 of file pEqn.H.

bool closedVolume = adjustPhi(phiHbyA, U, p_rgh)

Definition at line 22 of file pEqn.H.

phiHbyA = phig

Definition at line 24 of file pEqn.H.

p = p_rgh + rho*gh

Definition at line 65 of file pEqn.H.

rho = thermo.rho()

Definition at line 76 of file pEqn.H.