mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
ENH: Updated sources for heatTransfer solvers
This commit is contained in:
@ -21,8 +21,12 @@
|
||||
);
|
||||
|
||||
EEqn.relax();
|
||||
|
||||
sources.constrain(EEqn);
|
||||
|
||||
EEqn.solve();
|
||||
|
||||
sources.correct(he);
|
||||
|
||||
thermo.correct();
|
||||
}
|
||||
|
||||
@ -27,5 +27,7 @@
|
||||
)*mesh.magSf()
|
||||
)
|
||||
);
|
||||
|
||||
sources.correct(U);
|
||||
K = 0.5*magSqr(U);
|
||||
}
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
|
||||
EEqn.solve();
|
||||
|
||||
sources.correct(he);
|
||||
|
||||
thermo.correct();
|
||||
radiation->correct();
|
||||
}
|
||||
|
||||
@ -26,4 +26,6 @@
|
||||
)*mesh.magSf()
|
||||
)
|
||||
);
|
||||
|
||||
sources.correct(U);
|
||||
}
|
||||
|
||||
@ -21,6 +21,8 @@
|
||||
|
||||
EEqn.solve();
|
||||
|
||||
sources.correct(he);
|
||||
|
||||
thermo.correct();
|
||||
rad.correct();
|
||||
|
||||
|
||||
@ -23,3 +23,5 @@
|
||||
)*mesh.magSf()
|
||||
)
|
||||
);
|
||||
|
||||
sources.correct(U);
|
||||
|
||||
@ -6,8 +6,14 @@
|
||||
- fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)")
|
||||
+ sources(rho, h)
|
||||
);
|
||||
|
||||
hEqn.relax();
|
||||
|
||||
sources.constrain(hEqn);
|
||||
|
||||
hEqn.solve();
|
||||
|
||||
sources.correct(h);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
@ -22,8 +22,13 @@
|
||||
);
|
||||
|
||||
EEqn.relax();
|
||||
|
||||
sources.constrain(EEqn);
|
||||
|
||||
EEqn.solve(mesh.solver(he.select(finalIter)));
|
||||
|
||||
sources.correct(he);
|
||||
|
||||
thermo.correct();
|
||||
rad.correct();
|
||||
|
||||
|
||||
@ -9,6 +9,8 @@
|
||||
|
||||
UEqn().relax();
|
||||
|
||||
sources.constrain(UEqn());
|
||||
|
||||
// Add porous resistance
|
||||
pZones.addResistance(UEqn());
|
||||
|
||||
@ -21,11 +23,13 @@
|
||||
fvc::reconstruct
|
||||
(
|
||||
(
|
||||
- ghf*fvc::snGrad(rho)
|
||||
- fvc::snGrad(p_rgh)
|
||||
- ghf*fvc::snGrad(rho)
|
||||
- fvc::snGrad(p_rgh)
|
||||
)*mesh.magSf()
|
||||
),
|
||||
mesh.solver(U.select(finalIter))
|
||||
);
|
||||
|
||||
sources.correct(U);
|
||||
K = 0.5*magSqr(U);
|
||||
}
|
||||
|
||||
@ -19,6 +19,8 @@ if (finalIter)
|
||||
sources.constrain(hEqn());
|
||||
|
||||
hEqn().solve(mesh.solver(h.select(finalIter)));
|
||||
|
||||
sources.correct(h);
|
||||
}
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user