This repository has been archived on 2023-11-20. You can view files and clone it, but cannot push or open issues or pull requests.
foam-extend4.1-coherent-io/applications/solvers/heatTransfer/chtMultiRegionFoam/solid/solveSolid.H

15 lines
306 B
C++
Raw Normal View History

{
for (int nonOrth=0; nonOrth<=nNonOrthCorr; nonOrth++)
{
2010-08-26 14:22:03 +00:00
tmp<fvScalarMatrix> TEqn
(
2010-08-26 14:22:03 +00:00
fvm::ddt(rho*cp, T)
2015-08-05 11:34:57 +00:00
- fvm::laplacian(Kappa, T)
);
2010-08-26 14:22:03 +00:00
TEqn().relax();
TEqn().solve();
}
2010-08-26 14:22:03 +00:00
Info<< "Min/max T:" << min(T) << ' ' << max(T) << endl;
}