db7fac3f24
git-svn-id: https://openfoam-extend.svn.sourceforge.net/svnroot/openfoam-extend/trunk/Core/OpenFOAM-1.5-dev@1731 e4e07f05-0c2f-0410-a05a-b8ba57e0c909
36 lines
705 B
C
36 lines
705 B
C
{
|
|
// Decoupled patches
|
|
# include "attachPatches.H"
|
|
|
|
// Solid side
|
|
# include "readSolidControls.H"
|
|
|
|
for (int nonOrth = 0; nonOrth <= nNonOrthCorr; nonOrth++)
|
|
{
|
|
coupledFvScalarMatrix TEqns(2);
|
|
|
|
// Add fluid equation
|
|
TEqns.set
|
|
(
|
|
0,
|
|
new fvScalarMatrix
|
|
(
|
|
fvm::ddt(T)
|
|
+ fvm::div(phi, T)
|
|
- fvm::laplacian(DT, T)
|
|
)
|
|
);
|
|
|
|
// Add solid equation
|
|
TEqns.set
|
|
(
|
|
1,
|
|
new fvScalarMatrix
|
|
(
|
|
fvm::ddt(Tsolid) - fvm::laplacian(DTsolid, Tsolid)
|
|
)
|
|
);
|
|
|
|
TEqns.solve();
|
|
}
|
|
}
|