Commit ad124651 authored by andy's avatar andy
Browse files

ENH: Updated sources for heatTransfer solvers

parent e86258bc
......@@ -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();
......
......@@ -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);
}
}
......
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment