mirror of
https://github.com/ParticulateFlow/CFDEMcoupling-PFM.git
synced 2025-12-08 06:37:44 +00:00
convert tabs to spaces
This commit is contained in:
@ -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);
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user