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

About the thermo.rho()

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

Reply
 
LinkBack Thread Tools 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: 5
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: 725
Rep Power: 18
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: 5
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
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
error: no match for ´operator+=´ megacrout OpenFOAM 14 February 2, 2012 04:51


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