CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (https://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   Radiation heat transfer (https://www.cfd-online.com/Forums/openfoam-programming-development/183356-radiation-heat-transfer.html)

upuli February 2, 2017 03:40

Radiation heat transfer
 
Dear members
I am using OpenFoam version 4.0 and want to add radiation heat transfer in to my temperature equation. below is the equation

{
alphat = turbulence->nut()/Prt;
alphat.correctBoundaryConditions();

volScalarField alphaEff("alphaEff", turbulence->nu()/Pr + alphat);

fvScalarMatrix TEqn
(
fvm::(T)
+ fvm::div(phi, T)
- fvm::laplacian(alphaEff, T)
==
radiation->ST(rhoCpRef, T)
+ fvOptions(T)
);

TEqn.relax();

fvOptions.constrain(TEqn);

TEqn.solve();

radiation->correct();

fvOptions.correct(T);

rhok = 1.0 - beta*(T - TRef);
}
I included the
radiation.H in the solver and canged the make/options file also.

But when I compile the solver it gives errors that rhoCpRef was not declared.

I will be thankfull if you can help me to solve this error.

rgds

K.U.C.Perera

DustExplosion February 10, 2017 11:14

Hi Upuli,

I am not sure about your specific problem, but you may find this reference useful for implementing radiation in an OF solver: http://www.tfd.chalmers.se/~hani/kur...Foam_final.pdf


All times are GMT -4. The time now is 04:19.