CFD Online Logo CFD Online URL
Home > Forums > OpenFOAM Programming & Development

Accessing reaction information from PaSR.C

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

LinkBack Thread Tools Display Modes
Old   November 28, 2012, 12:10
Default Accessing reaction information from PaSR.C
New Member
Tatu Pinomaa
Join Date: Oct 2012
Location: Finland
Posts: 16
Rep Power: 7
tatu is on a distinguished road

I want to modify the standard PaSR to calculate reaction rates based solely on turbulent mixing, without using Arrhenius data (Eddy-dissipation model). The current PaSR+ODEChemistryModel has no "direct dependency" on turbulent mixing time scale, in that the turbulent time scale appears only in the reactive volume scaling factor, kappa. The actual reaction rates are calculated based on Arrhenius data in ODEChemistryModel.

I figured out that probably the easiest way to proceed would be to modify the PaSR files, by copy-pasting the original PaSR folder to and by giving it a different name.

I would like to have an access to the reaction data (list of reactions, stoichiometric coefficients, etc.), as is done in the standard ODEChemistryModel.

What is the easiest way to access this reaction data?

I thought I could simply use a pointer to the ODEChemistryModel (this->pChemistry_ in PaSR). ODEChemistryModel.H has the following line in the list of public member functions:
inline const PtrList<Reaction<ThermoType> >& reactions() const;
Therefore, I thought, I could get the list of reactions simply with the following line:
However, as a result the compiler prints the following errors:
error: ‘const class Foam::psiChemistryModel’ has no member named ‘reactions’
error: ‘const class Foam::rhoChemistryModel’ has no member named ‘reactions’
Any ideas how to access the reaction information from PaSR?



Last edited by tatu; November 28, 2012 at 12:28.
tatu 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
PaSR + infinite reaction rate in reactingFoam --> no reactions occurring tatu OpenFOAM Running, Solving & CFD 2 November 24, 2016 19:34
Segmentation fault in running alternateSteadyReactingFoam,why? NewKid OpenFOAM 18 January 20, 2011 17:55
reaction in UDF(DEFINE_VR_RATE) louiza FLUENT 3 October 13, 2010 23:59
chemical reaction - decompostition La S. Hyuck CFX 1 May 23, 2001 00:07
chemical reaction - howto Dan Sorensen Siemens 1 February 21, 2000 10:20

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