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

What are h_0 and h_0_0 in chtMultiRegionFoam solver?

Register Blogs Community New Posts Updated Threads Search

Like Tree1Likes
  • 1 Post By ykanani

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   August 29, 2017, 15:02
Smile What are h_0 and h_0_0 in chtMultiRegionFoam solver?
  #1
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Hi foamers,

It's been quite a while since my last post here, so I know everyone has been missing me a lot since then... But don't worry, here I am again!

I am not foaming hard as I used to during my Master's Thesis but lately I have been doing some very simple tests with chtMultiRegion*Foam and swak4foam. I was trying to use some function objects in order to compute heats and energies in a very simple case and, just out of curiosity, I tried to visualize all the fields and stuff the solver uses by means of the following function object:

Code:
    listFields 
    { 
        type listRegisteredObjects; 
        region base;
        outputControlMode timeStep; //startup;
        outputInterval 1; 
    }
Firstly I was using startup mode, but suddenly I tried timeStep mode and something blew my mind. In the following output you will see what shocked me:

Code:
Content of object registry base
                                                              Name             Type Autowrite
================================================================== ================ =========
(vol*(-thermo:alpha_copyBySwak4Foam*laplacian(h_copyBySwak4Foam)))         IOobject No
         (vol*(thermo:rho_copyBySwak4Foam*ddt(h_copyBySwak4Foam)))         IOobject No
                                                                 T   volScalarField Yes
                                                        betavSolid         IOobject No
                                                          boundary polyBoundaryMesh No
                                                         cellZones      regIOobject No
                                                              data         IOobject No
                                                         faceZones      regIOobject No
                                                             faces         faceList No
                                                         fvOptions         IOobject No
                                                         fvSchemes       dictionary No
                                                        fvSolution       dictionary No
                                                                 h         IOobject No
                                                               h_0         IOobject No
                                                             h_0_0         IOobject No
                                                         neighbour        labelList No
                                                             owner        labelList No
                                                                 p   volScalarField Yes
                                                        pointZones      regIOobject No
                                                            points      vectorField No
                                               radiationProperties         IOobject No
                                                      thermo:alpha         IOobject No
                                                        thermo:rho         IOobject No
                                          thermophysicalProperties       dictionary No
What on earth are h_0 and h_0_0? These parameters don't show up in the first timestep so I deduce it is something created after the first calculation is done... Is anything related to enthalpy?

I would appreciate any hint you can give me since maybe I can use these parameters as a variable in a function object or something...

Many thanks in advance!

PD: BTW, I'm using OF2.3.x. I'm a little outdated, I know...
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Old   August 30, 2017, 17:07
Default
  #2
Member
 
Yousef
Join Date: Feb 2015
Posts: 40
Rep Power: 11
ykanani is on a distinguished road
Hi,
I don't know about that specific solver, but "_0" at the end of field names typically correspond to the old time steps. Openfoam stores those when you are using second order time scheme which requires knowledge of the previous timestep(s). That is why you don't have it in the 0 timestep.

see the following code and look for "_0":
OpenFOAM-5.x/src/OpenFOAM/fields/GeometricFields/GeometricField/GeometricField.C


Regards,
Yousef
zfaraday likes this.
ykanani is offline   Reply With Quote

Old   September 1, 2017, 14:00
Default
  #3
Senior Member
 
Alex
Join Date: Oct 2013
Posts: 337
Rep Power: 22
zfaraday will become famous soon enough
Thanks Yousef for your valuable words. I guessed it was exactly what you said but I was unsure.
__________________
Web site where I present my Master's Thesis: foamingtime.wordpress.com

The case I talk about in this site was solved with chtMultiRegionSimpleFoam solver and involves radiation. Some basic tutorials are also resolved step by step in the web. If you are interested in these matters, you are invited to come in!
zfaraday is offline   Reply With Quote

Reply

Tags
chtmulitregionfoam, enthalpy, function object, h_0


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



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