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

About the thermo.rho()

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 25, 2012, 12:20
Default About the thermo.rho()
  #1
New Member
 
Qingang Xiong
Join Date: May 2012
Location: Ames, IA, USA
Posts: 20
Rep Power: 13
Qingang Xiong is on a distinguished road
Dear,
Have anyone using reactingFoam? There is a line in the "createFields.H" that load as :
00020 volScalarField rho
00021 (
00022 IOobject
00023 (
00024 "rho",
00025 runTime.timeName(),
00026 mesh
00027 ),
00028 thermo.rho()
00029 );

But I haven't found function rho() in class "hsCombustionThermo". What about this? Thank you for help.
Qingang Xiong is offline   Reply With Quote

Old   May 25, 2012, 13:25
Default
  #2
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
The termo models have several levels of templatization: have a look at
http://www.openfoam.org/docs/user/thermophysical.php

I've been making some modifications to the thermo models. I believe hsCombustion inherits from hsPsiThermo (possibly hsRhoThermo) and you'll find the rho member function there. As always, the online DOxygen documentation is super helpful in cases such as these.
mturcios777 is offline   Reply With Quote

Old   May 29, 2012, 12:38
Default
  #3
New Member
 
Qingang Xiong
Join Date: May 2012
Location: Ames, IA, USA
Posts: 20
Rep Power: 13
Qingang Xiong is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
The termo models have several levels of templatization: have a look at
http://www.openfoam.org/docs/user/thermophysical.php

I've been making some modifications to the thermo models. I believe hsCombustion inherits from hsPsiThermo (possibly hsRhoThermo) and you'll find the rho member function there. As always, the online DOxygen documentation is super helpful in cases such as these.
Dear mturcios777,
Thank you for your help. I understand the structure of this thermo class.
Qingang Xiong is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
error: no match for ´operator+=´ megacrout OpenFOAM 14 February 2, 2012 03:51


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