CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM

How to set h as initial condition

Register Blogs Members List Search Today's Posts Mark Forums Read

LinkBack Thread Tools Display Modes
Old   July 7, 2012, 00:49
Default How to set h as initial condition
Haomin Yuan
Join Date: Jan 2012
Location: Madison, Wisconsin, USA
Posts: 54
Rep Power: 5
yhaomin2007 is on a distinguished road
Hi, everyone,

I have a small problem. As we know, when we give OF initial condition, we usually give temperature and pressure as initial condition, but this is not ok for two phase condition. Is there a way to give pressure and enthalpy as initial condition??

In hPsiThermo.C, the constructor function construct the h_ field, and calculate h at each cell and surface from pressure and temperature. My first thought is make the h_ field must_read and auto_wirte, and do not calculate h at the constructor function. but it doesn't work.

Does anyone have any idea about this problem??

thank you in advance.
yhaomin2007 is offline   Reply With Quote


Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On

Similar Threads
Thread Thread Starter Forum Replies Last Post
How to write k and epsilon before the abnormal end xiuying OpenFOAM Running, Solving & CFD 8 August 27, 2013 15:33
SLTS+rhoPisoFoam: what is rDeltaT??? nileshjrane OpenFOAM Running, Solving & CFD 4 February 25, 2013 05:13
problem with Min/max rho tH3f0rC3 OpenFOAM 7 February 23, 2013 06:37
MRFSimpleFoam wind turbine case continuity error ysh1227 OpenFOAM Running, Solving & CFD 0 May 23, 2012 05:26
Modeling in micron scale using icoFoam m9819348 OpenFOAM Running, Solving & CFD 7 October 27, 2007 00:36

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