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

Access thermo package in a new reactionRate class

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 11, 2014, 06:58
Default Access thermo package in a new reactionRate class
  #1
New Member
 
Ehsan
Join Date: May 2013
Location: Hong Kong
Posts: 5
Rep Power: 12
Essy is on a distinguished road
Hi

I created a new reactionRate class like LangmuirHinshelwoodReactionRate and it works very well. In the next step I need to access specie data using a pointer to reactingMixture class. But unfortunately reactionRate classes do not have direct access to mesh or object registry. So I am wondering how it is possible to give this class access to thermo package without mesh and object registry like following:
Code:
    const PtrList<gasHThermoPhysics> & specieThermo =
             dynamic_cast<const reactingMixture<gasHThermoPhysics>&>  (thermo).speciesData();
I appreciate any help.

Essy
Essy is offline   Reply With Quote

Reply

Tags
reactionrate, thermo

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
Problems installing OpenFOAM 2.3.0, 1.6-ext and foam-extend 3.0 sam.ho OpenFOAM Installation 35 April 5, 2014 15:31
Install OF 1.6.ext on Arch based distribution miro2000 OpenFOAM Installation 4 October 9, 2013 14:39
OF 1.6 ext on Ubuntu 12.10 (64 bit) compilation errors dreamilam OpenFOAM Installation 7 April 21, 2013 05:43
Problem? with Installation of OpenFOAM 2.1.0 on to Ubuntu 10.4.4 VirtualBox Stubby OpenFOAM Installation 8 March 5, 2012 15:12
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug unoder OpenFOAM Installation 11 January 30, 2008 20:30


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