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

Laminar Flame Speed Models with hCombustionThermo

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   September 9, 2010, 17:34
Default Laminar Flame Speed Models with hCombustionThermo
  #1
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
I am attempting to use the included laminar flame speed models to return a reference field (I need the Gulder laminar flame speed for methane at the pressures and temperatures of the current field).

My code uses hCombustionThermo instead of hhuCombustion thermo. I've copied over the Gulders directory in src/thermophysicalModels/laminarFlameSpeed and renamed it myGulders. Besides modification of makefiles and changes in names, what other parts would require changing to work with hCombustionThermo?

Thanks in advance
mturcios777 is offline   Reply With Quote

Old   September 10, 2010, 16:58
Default A little update
  #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
Its going to be a little bit more involved than that, so I've made some progress. Just in case I want to use other flame speed models, I've taken the following steps:

1. Copied over the entire laminarFlameSpeedModels directory and renamed (myLams lets say).
2. Replace all instances of hhuCombustionThermo with hCombustionThermo
3. Change any references to member variables of hhuCombustionThermo to member variables of hCombustionThermo (this is more an implementation thing, and I'll likely need to change this later to get answers that make sense to my application)
4. Change Make/files to compile the library with a new name (libMyLams.so)
5. Execute ./Allwmake from the thermophysicalModels directory

That works, and now I can call

autoPtr<laminarFlameSpeed> uSl
(
laminarFlameSpeed::New(thermo)
);

And it works. What I'd like to know now is how to create a volScalarField with the laminar flame speed written in every time directory (won't need it all the time, but for initial diagnosis it would be important to be able to see this).

Anyone worked with laminarFlameSpeedModels before? Thanks.

Last edited by mturcios777; September 13, 2010 at 17:46. Reason: Extraneous extra lines
mturcios777 is offline   Reply With Quote

Old   September 15, 2010, 19:19
Default
  #3
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
Well, at least this may give people some help. Since the hhuCombustionThermo version returns the laminar flame speed with the member function

uSL()()

[using nomenclature from last post]. Since I want to supply the equivalence ratio field (which I calculate somehow) as a const volScalarField&, I needed to change all the definitions and declarations of the ()() function to be ()(const volScalarField & phi). This is the only way for the code to compile, but on the plus side I am free to use all the flame speed models at runtime, so long as they are modified properly.
mturcios777 is offline   Reply With Quote

Reply


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
Gulderbs Coefficients for laminar flame speed correlation ali OpenFOAM Running, Solving & CFD 4 August 20, 2024 04:21
Laminar premixed flame with the same species speed Gruesome Marc Main CFD Forum 0 October 16, 2008 08:30
Laminar Flame Speed Mahbub Siemens 0 March 22, 2004 19:38
Laminar Flame Speed Mahbub Siemens 0 February 23, 2004 13:34
correlation for laminar flame speed cfd-user Main CFD Forum 0 November 28, 2003 08:27


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