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

Newer Janaf Model

Register Blogs Community New Posts Updated Threads Search

Like Tree14Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 14, 2010, 14:50
Post Newer Janaf Model
  #1
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
The older janaf thermodynamic model is implemented in OpenFOAM. For my use i have implemented the newer Janaf model, which models Cp0 H0 S0 for most species from 200K to 20000K.

The current code is for OpenFOAM-1.5 ( ) but must not be too difficult to port to 1.6.x. (I will do that if i get some time for it). However if someone wants to use it, i am attaching the patch for thermophysicalModels.

I would like to know if people find it useful.

NOTE This code is hardly tested! I coded it just yesterday, and it seemed to work fine. Please test it for your purpose, and kindly let me know of any bugs.

NOTE 2: use bzip2 to unzip the patch file
Attached Files
File Type: patch janaf2.patch (11.0 KB, 416 views)
febriyan91 and casseer15 like this.
iyer.arvind is offline   Reply With Quote

Old   May 18, 2010, 02:03
Default any problems?
  #2
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
If people are finding any difficulty in applying the patch, I would be glad to mention the procedure to do that. 70 views and no replies is slightly discouraging !
yiwang25, febriyan91 and Lynn009 like this.
iyer.arvind is offline   Reply With Quote

Old   May 18, 2010, 05:33
Default
  #3
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi,

Thank you for posting your work.

I tried to run the script but it didn't work. I'm using OpenFoam1.6.x.
Would it be possible to post the main files of the new Janaf Tables?

Regards
Christian
Chris Lucas is offline   Reply With Quote

Old   May 18, 2010, 08:00
Default Arvind Iyer
  #4
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
Thanks for reponding. The patch is for OpenFOAM-1.5 (sorry to say) but I guess if i could give you the files you should ot find it difficult in implementing in OpenFOAM-1.6. Also i will try to spare some time this weekend and try and get it up for 1.6. However, I am unable to upload all the files here because they are beyond 100kb. Could you please let me know a mode of transfer? I would be glad to share it with you.
iyer.arvind is offline   Reply With Quote

Old   May 19, 2010, 08:04
Default Openfoam Wiki
  #5
Senior Member
 
Christian Lucas
Join Date: Aug 2009
Location: Braunschweig, Germany
Posts: 202
Rep Power: 18
Chris Lucas is on a distinguished road
Hi,

you could upload the new Janaf Tables onto the Openfoam Wiki homepage. That way, everybody who wants to use them can download them.

Regards,
Christian
Chris Lucas is offline   Reply With Quote

Old   May 19, 2010, 08:19
Default
  #6
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
I think it would be better if i could get the 1.6.x version, and push to the OpenFOAM-extend project. However i will see if i can put the files in the wiki for now.
iyer.arvind is offline   Reply With Quote

Old   May 19, 2010, 11:44
Default
  #7
Member
 
Cedric Van Holsbeke
Join Date: Dec 2009
Location: Belgium
Posts: 81
Rep Power: 17
CedricVH is on a distinguished road
Thanks for your efforts Iyer! I have never used any Janaf model, but I have read on the forums that there are some problems with the current Janaf model in OpenFOAM so your contribution is appreciated!
CedricVH is offline   Reply With Quote

Old   May 19, 2010, 12:09
Default
  #8
Member
 
MSR CHANDRA MURTHY
Join Date: Mar 2009
Posts: 33
Rep Power: 17
chandramurthy is on a distinguished road
good work arvind...when i go through this file, i found some things,
1) I guess it is trying to replace existing Janaf, can both(janaf-I and janf-II) simultaneously work?
2) any validation being done?
chandramurthy is offline   Reply With Quote

Old   May 20, 2010, 01:14
Default
  #9
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
The problem is that janaf (reader especially) is quite deeply coded. the reader appears in the same file which reads the chemkin data.

_____/thermophysicalModels/combustion/chemistryReaders/chemkinReader/chemkinLexer.L

Also,

_____/thermophysicalModels/specie/reaction/reactions/makeReactionJanaf.H:
typedef sutherlandTransport<specieThermo<janafThermo<perfe ctGas> > > reactionThermo;

As you can see janaf is quite deep embedded in the code. If it were abstracted to a generic thermophysical model interface (abstract class), and janaf being a child class with its own reader, it would have been much better, and easily we could have either models to work with.
iyer.arvind is offline   Reply With Quote

Old   May 28, 2010, 20:05
Thumbs up Great work.
  #10
New Member
 
yu
Join Date: Nov 2009
Posts: 26
Rep Power: 17
universez is on a distinguished road
Good work !

Last edited by universez; May 28, 2010 at 21:58.
universez is offline   Reply With Quote

Old   May 29, 2010, 12:56
Default
  #11
Member
 
Costas K
Join Date: Nov 2009
Location: UK
Posts: 51
Rep Power: 17
thekay is on a distinguished road
Send a message via ICQ to thekay Send a message via MSN to thekay
Thank you Iyer, good piece of work. I will probably need to test it in a couple of weeks. Will let you know of my results.
thekay is offline   Reply With Quote

Old   July 16, 2010, 02:09
Default
  #12
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16
skarnani is on a distinguished road
Hello All.
I was curious about this new Janaf model. I'm currently running OpenFOAM 1.6.x. It would be an interesting exercise to try and port it over but, in all honesty, I wouldn't really be sure where to begin. To start, how would I go about applying a patch?

Thanks.
Sunny
skarnani is offline   Reply With Quote

Old   July 16, 2010, 08:34
Default Patch is for 1.5
  #13
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
Sorry to say but the patch is only for 1.5. I am not getting the breathing space to implement for 1.7. I cannot comment on how easy it will be with 1.6x. If you are unlucky, you can at best take inspiration from it ;
iyer.arvind is offline   Reply With Quote

Old   October 6, 2010, 08:12
Default
  #14
Member
 
Christof Benz
Join Date: Mar 2009
Posts: 52
Rep Power: 17
chbenz is on a distinguished road
Can you give us the source code files for the new janaf model. I'm not able to extract them from the patch-file.

regards,
christof
chbenz is offline   Reply With Quote

Old   April 2, 2011, 07:10
Default
  #15
New Member
 
T. Hoffmann
Join Date: Mar 2011
Posts: 6
Rep Power: 15
bfisch90 is on a distinguished road
Thank you for your work. How does the thermo.dat file look like? I tried to implement your new janaf model to OF-1.7.1 an would like to test it. Maybe you can post it. If it works I would post the updated files here.

Thomas
bfisch90 is offline   Reply With Quote

Old   April 2, 2011, 07:42
Default Link
  #16
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
http://www.galcit.caltech.edu/EDL/pu...rmo/thermo.inp
iyer.arvind is offline   Reply With Quote

Old   April 2, 2011, 07:43
Default
  #17
New Member
 
Iyer Arvind Sundaram
Join Date: May 2009
Posts: 13
Rep Power: 17
iyer.arvind is on a distinguished road
If you require the source code, please mail me, i will send you the source code too
iyer.arvind is offline   Reply With Quote

Old   April 14, 2011, 22:36
Default Updated new janaf model
  #18
New Member
 
T. Hoffmann
Join Date: Mar 2011
Posts: 6
Rep Power: 15
bfisch90 is on a distinguished road
Hallo,

I have implemented Iyers newer janaf model to OpenFOAM 1.7.1. You can find and download it in the OpenFOAM wiki:
http://openfoamwiki.net/index.php/Janaf.
There you can also find a modificated test case, which should run if the installation was correct.

Thomas
bfisch90 is offline   Reply With Quote

Old   June 24, 2011, 05:32
Default
  #19
Member
 
桂莹
Join Date: Apr 2011
Posts: 36
Rep Power: 15
yingkun is on a distinguished road
Hi,Thomas
I try as you say,then Allwmake,and run my case,it seems doesn't work, it shows on the terminal:
--> FOAM FATAL ERROR:
attempt to use janafThermo<equationOfState> out of temperature range 0 -> 5000; T = 5014.46
why the temperature range doesn't change?
may be there're something I missing?
yingkun is offline   Reply With Quote

Old   June 24, 2011, 11:47
Default
  #20
New Member
 
T. Hoffmann
Join Date: Mar 2011
Posts: 6
Rep Power: 15
bfisch90 is on a distinguished road
Quote:
Originally Posted by yingkun View Post
Hi,Thomas
I try as you say,then Allwmake,and run my case,it seems doesn't work, it shows on the terminal:
--> FOAM FATAL ERROR:
attempt to use janafThermo<equationOfState> out of temperature range 0 -> 5000; T = 5014.46
why the temperature range doesn't change?
may be there're something I missing?
Hallo Yingkun,

there must be at least one species in the janaf table, which has only a temperature range between 0 and 5000 K. A quick and dirty solution would be to find these species in the table and set the temperature limit from 5000 K to 6000 K and look what happens. Maybe (or better hopefully) these species have such a low concentration, that it does not have a negative effect on your calculation.

Hope this helps!
Thomas
bfisch90 is offline   Reply With Quote

Reply

Tags
development, janaf, openfoam-1.5, thermophysicalproperties


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
Centrifugal Pump and Turbulence Model Michiel CFX 12 January 25, 2010 04:20
Problems bout CFD model of biomass gasification, Downdraft gasifier wanglong FLUENT 2 November 26, 2009 00:27
Reynolds Stress model in CFX vs Fluent Tim CFX 1 October 7, 2009 07:19
help for different between les model (subgrid-scale model) liuyuxuan FLUENT 1 October 2, 2009 16:25
Grid resolution for full-scale and down scaled model gravis Main CFD Forum 0 October 2, 2009 11:27


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