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/)
-   -   How to set heat in the enthalpy equation? (https://www.cfd-online.com/Forums/openfoam-programming-development/109455-how-set-heat-enthalpy-equation.html)

yzf1215 November 18, 2012 08: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 06:03

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

zhuangli January 21, 2022 22:22

How did you insert the Q with unit J/(m3*s)
 
Quote:

Originally Posted by yzf1215 (Post 395141)
OK, I have solved this, the unit of Q is J/(M^3*s)


Hi!boy,
How did you solve it, could you give me some advice?
anything would be appreciate!
lizhuang
bestWish!


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