CFD Online Discussion Forums

CFD Online Discussion Forums (http://www.cfd-online.com/Forums/)
-   OpenFOAM Programming & Development (http://www.cfd-online.com/Forums/openfoam-programming-development/)
-   -   How to set heat in the enthalpy equation? (http://www.cfd-online.com/Forums/openfoam-programming-development/109455-how-set-heat-enthalpy-equation.html)

yzf1215 November 18, 2012 09:08

How to set heat in the enthalpy equation?
 
Hello, world. I have costumed the enthalpy in hEqn.H which is included rhoSimpleFoam. The problem is, I inserted a scalarField Q in it. But it is a steady-state solver, but I don't know the relation of scalarField Q and the heat(unit Joule) I need to add per second per volume. And, what should I set the Q's unit?

The hEqn.H I costumed is:
{
fvScalarMatrix hEqn
(
fvm::div(phi, h)
- fvm::Sp(fvc::div(phi), h)
- fvm::laplacian(turbulence->alphaEff(), h)
- Q
==
fvc::div(phi/fvc::interpolate(rho), rho/psi, "div(U,p)")
- (rho/psi)*fvc::div(phi/fvc::interpolate(rho))
);

hEqn.relax();

hEqn.solve();

thermo.correct();
}

yzf1215 December 1, 2012 07:03

OK, I have solved this, the unit of Q is J/(M^3*s)


All times are GMT -4. The time now is 11:31.