Go to the source code of this file.
|
| if (pimple.frozenFlow()) |
|
tmp< fvVectorMatrix > | tUEqn (fvm::ddt(rho, U)+fvm::div(phi, U)+MRF.DDt(rho, U)+turbulence.divDevRhoReff(U)==fvOptions(rho, U)) |
|
UEqn | relax () |
|
fvOptions | constrain (UEqn) |
|
fvOptions | correct (U) |
|
tmp< fv::convectionScheme< scalar > > | mvConvection (nullptr) |
|
| if (Y.size()) |
|
volScalarField | Yt (IOobject("Yt", runTime.timeName(), mesh), mesh, dimensionedScalar("Yt", dimless, 0)) |
|
| forAll (Y, i) |
|
| if (Y.size()) |
|
fvScalarMatrix | EEqn (fvm::ddt(rho, he)+fvm::div(phi, he)+fvc::ddt(rho, K)+fvc::div(phi, K)+(he.name()=="e" ? fvc::div(fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)") :-dpdt) - fvm::laplacian(turbulence.alphaEff(), he)==rho *(U &g)+rad.Sh(thermo, he)+Qdot+fvOptions(rho, he)) |
|
EEqn | relax () |
|
fvOptions | constrain (EEqn) |
|
EEqn | solve () |
|
fvOptions | correct (he) |
|
thermo | correct () |
|
| while (pimple.correctNonOrthogonal()) |
|
| if (!mesh.steady()) |
|
| if (thermo.dpdt()) |
|
| if (!mesh.steady()) |
|
| if (adjustMass) |
|
| if (adjustMass||pLimited) |
|
| if (adjustMass||pLimited||mesh.steady()||pimple.simpleRho()) |
|
| if (mesh.steady() &&!pimple.transonic()) |
|
|
| else |
|
fvVectorMatrix & | UEqn = tUEqn.ref() |
|
| Qdot = reaction.Qdot() |
|
Info<< "Min/max T:"<< min(thermo.T()).value()<< ' '<< max(thermo.T()).value()<< endl;}# 14 "/home/ubuntu/OpenFOAM-6/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/solveFluid.H" 2 while(pimple.correct()) {# 1 "/home/ubuntu/OpenFOAM-6/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H" 1if(!mesh.steady() &&!pimple.simpleRho()){ rho=thermo.rho();}volScalarField rAU("rAU", 1.0/UEqn.A());surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho *rAU));volVectorField HbyA(constrainHbyA(rAU *UEqn.H(), U, p_rgh));if(pimple.nCorrPISO()<=1){ tUEqn.clear();}surfaceScalarField phig(-rhorAUf *ghf *fvc::snGrad(rho) *mesh.magSf());surfaceScalarField phiHbyA("phiHbyA", fvc::flux(rho *HbyA)+MRF.zeroFilter(rhorAUf *fvc::ddtCorr(rho, U, phi)));MRF.makeRelative(fvc::interpolate(rho), phiHbyA);const bool closedVolume=adjustPhi(phiHbyA, U, p_rgh);const bool adjustMass=closedVolume &&!thermo.incompressible();phiHbyA+=phig;constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);{ fvScalarMatrix p_rghEqnComp(fvc::ddt(rho)+psi *correction(fvm::ddt(p_rgh)));if(pimple.transonic()) { surfaceScalarField phid("phid",(fvc::interpolate(psi)/fvc::interpolate(rho)) *phiHbyA);phiHbyA -=fvc::interpolate(psi *p_rgh) *phiHbyA/fvc::interpolate(rho);p_rghEqnComp+=fvm::div(phid, p_rgh);} tmp< volScalarField > | psip0 (mesh.steady() ? tmp< volScalarField >() :psi *p) |
|
| p = p_rgh + rho*gh |
|
| else |
|
◆ if() [1/10]
if |
( |
pimple. |
frozenFlow() | ) |
|
◆ tUEqn()
◆ relax() [1/2]
◆ constrain() [1/2]
◆ correct() [1/3]
◆ mvConvection()
tmp<fv::convectionScheme<scalar> > mvConvection |
( |
nullptr |
| ) |
|
◆ if() [2/10]
◆ Yt()
volScalarField Yt |
( |
IOobject("Yt", runTime.timeName(), mesh) |
, |
|
|
mesh |
, |
|
|
dimensionedScalar("Yt", dimless, 0) |
|
|
) |
| |
◆ forAll()
◆ if() [3/10]
◆ EEqn()
fvScalarMatrix EEqn |
( |
fvm::ddt(rho, he)+fvm::div(phi, he)+fvc::ddt(rho, K)+fvc::div(phi, K)+(he.name()=="e" ? fvc::div(fvc::absolute(phi/fvc::interpolate(rho), U), p, "div(phiv,p)") :-dpdt) - fvm::laplacian(turbulence.alphaEff(), he) |
= =rho *(U &g)+rad.Sh(thermo, he)+Qdot+fvOptions(rho, he) | ) |
|
Initial value:{
rhoReactionThermo & thermo
GeometricField< scalar, fvPatchField, volMesh > volScalarField
◆ relax() [2/2]
◆ constrain() [2/2]
◆ solve()
◆ correct() [2/3]
◆ correct() [3/3]
◆ while()
while |
( |
pimple. |
correctNonOrthogonal() | ) |
|
◆ if() [4/10]
◆ if() [5/10]
◆ if() [6/10]
◆ if() [7/10]
◆ if() [8/10]
◆ if() [9/10]
◆ if() [10/10]
if |
( |
mesh. |
steady) &&!pimple.transonic( | ) |
|
◆ else [1/2]
Initial value:{
if (!
mesh.steady() && pimples.nCorrPimple() <= 1)
{
}
# 1 "/home/ubuntu/OpenFOAM-6/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/UEqn.H" 1
MRF.correctBoundaryVelocity(
U)
Definition at line 6 of file solveFluid.H.
◆ UEqn
◆ Qdot
◆ psip0
Info<< "Min/max T:" << min(thermo.T()).value() << ' ' << max(thermo.T()).value() << endl;}# 14 "/home/ubuntu/OpenFOAM-6/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/solveFluid.H" 2 while (pimple.correct()) {# 1 "/home/ubuntu/OpenFOAM-6/applications/solvers/heatTransfer/chtMultiRegionFoam/fluid/pEqn.H" 1if (!mesh.steady() && !pimple.simpleRho()){ rho = thermo.rho();}volScalarField rAU("rAU", 1.0/UEqn.A());surfaceScalarField rhorAUf("rhorAUf", fvc::interpolate(rho*rAU));volVectorField HbyA(constrainHbyA(rAU*UEqn.H(), U, p_rgh));if (pimple.nCorrPISO() <= 1){ tUEqn.clear();}surfaceScalarField phig(-rhorAUf*ghf*fvc::snGrad(rho)*mesh.magSf());surfaceScalarField phiHbyA( "phiHbyA", fvc::flux(rho*HbyA) + MRF.zeroFilter(rhorAUf*fvc::ddtCorr(rho, U, phi)));MRF.makeRelative(fvc::interpolate(rho), phiHbyA);const bool closedVolume = adjustPhi(phiHbyA, U, p_rgh);const bool adjustMass = closedVolume && !thermo.incompressible();phiHbyA += phig;constrainPressure(p_rgh, rho, U, phiHbyA, rhorAUf, MRF);{ fvScalarMatrix p_rghEqnComp ( fvc::ddt(rho) + psi*correction(fvm::ddt(p_rgh)) ); if (pimple.transonic()) { surfaceScalarField phid ( "phid", (fvc::interpolate(psi)/fvc::interpolate(rho))*phiHbyA ); phiHbyA -= fvc::interpolate(psi*p_rgh)*phiHbyA/fvc::interpolate(rho); p_rghEqnComp += fvm::div(phid, p_rgh); } tmp<volScalarField> psip0(mesh.steady() ? tmp< volScalarField >() :psi *p) |
◆ else [2/2]
Initial value:{
}
pressureControl & pressureControl
Definition at line 160 of file solveFluid.H.