convert tabs to spaces

This commit is contained in:
danielque
2023-04-07 14:25:59 +02:00
parent 57f672e0e0
commit e4de205ef5

View File

@ -10,12 +10,12 @@ phi = voidfractionf*phiByVoidfraction;
surfaceScalarField phiHbyA surfaceScalarField phiHbyA
( (
"phiHbyA", "phiHbyA",
( (
(fvc::interpolate(HbyA) & mesh.Sf() ) (fvc::interpolate(HbyA) & mesh.Sf() )
+ phicForces //explicit contribution + phicForces //explicit contribution
+ rAUfvoidfraction*fvc::ddtCorr(U, phiByVoidfraction) //correction + rAUfvoidfraction*fvc::ddtCorr(U, phiByVoidfraction) //correction
) )
); );
if (modelType=="A") if (modelType=="A")
@ -24,8 +24,8 @@ if (modelType=="A")
// Update the fixedFluxPressure BCs to ensure flux consistency // Update the fixedFluxPressure BCs to ensure flux consistency
if (modelType=="A") if (modelType=="A")
{ {
volScalarField rUsed = rAU*voidfraction; volScalarField rUsed = rAU*voidfraction;
constrainPressure(p, U, phiHbyA, rUsed,MRF); constrainPressure(p, U, phiHbyA, rUsed,MRF);
} }
else constrainPressure(p, U, phiHbyA, rAU,MRF); else constrainPressure(p, U, phiHbyA, rAU,MRF);
@ -42,18 +42,18 @@ while (pimple.correctNonOrthogonal())
if (pimple.finalNonOrthogonalIter()) if (pimple.finalNonOrthogonalIter())
{ {
phiByVoidfraction = phiHbyA - pEqn.flux()/voidfractionf; phiByVoidfraction = phiHbyA - pEqn.flux()/voidfractionf;
phi = voidfractionf*phiByVoidfraction; phi = voidfractionf*phiByVoidfraction;
#include "continuityErrorPhiPU.H" #include "continuityErrorPhiPU.H"
// Explicitly relax pressure for momentum corrector // Explicitly relax pressure for momentum corrector
p.relax(); p.relax();
U = fvc::reconstruct(phiHbyA) U = fvc::reconstruct(phiHbyA)
- rAU*fvc::reconstruct(pEqn.flux()/voidfractionf/rAUf); - rAU*fvc::reconstruct(pEqn.flux()/voidfractionf/rAUf);
U.correctBoundaryConditions(); U.correctBoundaryConditions();
fvOptions.correct(U); fvOptions.correct(U);
} }
} }