ENH: Updated sources for heatTransfer solvers

This commit is contained in:
andy
2012-12-10 10:59:17 +00:00
parent e86258bc4e
commit ad1246515a
10 changed files with 33 additions and 2 deletions

View File

@ -21,8 +21,12 @@
); );
EEqn.relax(); EEqn.relax();
sources.constrain(EEqn); sources.constrain(EEqn);
EEqn.solve(); EEqn.solve();
sources.correct(he);
thermo.correct(); thermo.correct();
} }

View File

@ -27,5 +27,7 @@
)*mesh.magSf() )*mesh.magSf()
) )
); );
sources.correct(U);
K = 0.5*magSqr(U); K = 0.5*magSqr(U);
} }

View File

@ -21,6 +21,8 @@
EEqn.solve(); EEqn.solve();
sources.correct(he);
thermo.correct(); thermo.correct();
radiation->correct(); radiation->correct();
} }

View File

@ -26,4 +26,6 @@
)*mesh.magSf() )*mesh.magSf()
) )
); );
sources.correct(U);
} }

View File

@ -21,6 +21,8 @@
EEqn.solve(); EEqn.solve();
sources.correct(he);
thermo.correct(); thermo.correct();
rad.correct(); rad.correct();

View File

@ -23,3 +23,5 @@
)*mesh.magSf() )*mesh.magSf()
) )
); );
sources.correct(U);

View File

@ -6,8 +6,14 @@
- fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)") - fvm::laplacian(betav*alpha, h, "laplacian(alpha,h)")
+ sources(rho, h) + sources(rho, h)
); );
hEqn.relax(); hEqn.relax();
sources.constrain(hEqn);
hEqn.solve(); hEqn.solve();
sources.correct(h);
} }
} }

View File

@ -22,8 +22,13 @@
); );
EEqn.relax(); EEqn.relax();
sources.constrain(EEqn);
EEqn.solve(mesh.solver(he.select(finalIter))); EEqn.solve(mesh.solver(he.select(finalIter)));
sources.correct(he);
thermo.correct(); thermo.correct();
rad.correct(); rad.correct();

View File

@ -9,6 +9,8 @@
UEqn().relax(); UEqn().relax();
sources.constrain(UEqn());
// Add porous resistance // Add porous resistance
pZones.addResistance(UEqn()); pZones.addResistance(UEqn());
@ -21,11 +23,13 @@
fvc::reconstruct fvc::reconstruct
( (
( (
- ghf*fvc::snGrad(rho) - ghf*fvc::snGrad(rho)
- fvc::snGrad(p_rgh) - fvc::snGrad(p_rgh)
)*mesh.magSf() )*mesh.magSf()
), ),
mesh.solver(U.select(finalIter)) mesh.solver(U.select(finalIter))
); );
sources.correct(U);
K = 0.5*magSqr(U); K = 0.5*magSqr(U);
} }

View File

@ -19,6 +19,8 @@ if (finalIter)
sources.constrain(hEqn()); sources.constrain(hEqn());
hEqn().solve(mesh.solver(h.select(finalIter))); hEqn().solve(mesh.solver(h.select(finalIter)));
sources.correct(h);
} }
} }