CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Programming & Development

How to set heat in the enthalpy equation?

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 18, 2012, 08:08
Default How to set heat in the enthalpy equation?
  #1
Member
 
Zifei Yin
Join Date: Sep 2012
Location: Shanghai & Ames
Posts: 33
Rep Power: 13
yzf1215 is on a distinguished road
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 is offline   Reply With Quote

Old   December 1, 2012, 06:03
Default
  #2
Member
 
Zifei Yin
Join Date: Sep 2012
Location: Shanghai & Ames
Posts: 33
Rep Power: 13
yzf1215 is on a distinguished road
OK, I have solved this, the unit of Q is J/(M^3*s)
yzf1215 is offline   Reply With Quote

Old   January 21, 2022, 22:22
Default How did you insert the Q with unit J/(m3*s)
  #3
New Member
 
ZhuangLi
Join Date: Jan 2022
Posts: 13
Rep Power: 4
zhuangli is on a distinguished road
Quote:
Originally Posted by yzf1215 View Post
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!
zhuangli is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFL condition heat equation 2D/3D pepgma Main CFD Forum 2 February 4, 2012 07:51
Constant velocity of the material Sas CFX 15 July 13, 2010 08:56
Turbulent Heat Transfer Transport Equation Flo.duck Main CFD Forum 0 May 6, 2009 03:37
Concentric tube heat exchanger (Air-Water) Young CFX 5 October 6, 2008 23:17
Env variable not set gruber2 OpenFOAM Installation 5 December 30, 2005 04:27


All times are GMT -4. The time now is 14:01.