mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
Changing header in tutorial files and updating pEq.H
This commit is contained in:
@ -1,11 +1,10 @@
|
||||
{
|
||||
volVectorField HbyA("HbyA", U);
|
||||
HbyA = rAUc*UEqn.H();
|
||||
volVectorField HbyA(constrainHbyA(rAUc*UEqn.H(), U, p_rgh));
|
||||
|
||||
surfaceScalarField phiHbyA
|
||||
(
|
||||
"phiHbyA",
|
||||
(fvc::interpolate(HbyA) & mesh.Sf())
|
||||
fvc::flux(HbyA)
|
||||
+ alphacf*fvc::interpolate(rho*rAUc)*fvc::ddtCorr(U, phi)
|
||||
);
|
||||
|
||||
@ -23,15 +22,8 @@
|
||||
|
||||
phiHbyA += phig;
|
||||
|
||||
// Update the fixedFluxPressure BCs to ensure flux consistency
|
||||
setSnGrad<fixedFluxPressureFvPatchScalarField>
|
||||
(
|
||||
p_rgh.boundaryField(),
|
||||
(
|
||||
phiHbyA.boundaryField()
|
||||
- MRF.relative(mesh.Sf().boundaryField() & U.boundaryField())
|
||||
)/(mesh.magSf().boundaryField()*rAUcf.boundaryField())
|
||||
);
|
||||
// Update the pressure BCs to ensure flux consistency
|
||||
constrainPressure(p_rgh, U, phiHbyA, rAUcf, MRF);
|
||||
|
||||
while (pimple.correctNonOrthogonal())
|
||||
{
|
||||
|
||||
Reference in New Issue
Block a user