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

Implement FGM combustion model into OpenFoam

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

Like Tree6Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 12, 2022, 10:14
Question Implement FGM combustion model into OpenFoam
  #1
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 5
wangqiuxiao is on a distinguished road
hi, I need to use FGM combustion model to simulate swirl combustion in gas turbine burner, but openfoam does not have this model.
does anyone have implemented FGMFoam combustion model in openfoam? could you give me some suggestions , or share your code? thank you ver much.
wangqiuxiao is offline   Reply With Quote

Old   October 12, 2022, 20:32
Default
  #2
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 5
wangqiuxiao is on a distinguished road
does anyone have experience with implementation of FGMfoam combustion model in openfoam
wangqiuxiao is offline   Reply With Quote

Old   October 12, 2022, 22:47
Default
  #3
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 5
wangqiuxiao is on a distinguished road
Quote:
Originally Posted by wangqiuxiao View Post
hi, I need to use FGM combustion model to simulate swirl combustion in gas turbine burner, but openfoam does not have this model.
does anyone have implemented FGMFoam combustion model in openfoam? could you give me some suggestions , or share your code? thank you ver much.
Please Some body help! thanks
wangqiuxiao is offline   Reply With Quote

Old   October 14, 2022, 01:29
Default
  #4
New Member
 
Qiuxiao Wang
Join Date: Mar 2022
Posts: 11
Rep Power: 5
wangqiuxiao is on a distinguished road
does anyone have experience with implementation of FGMfoam combustion model in openfoam
wangqiuxiao is offline   Reply With Quote

Old   October 14, 2022, 04:01
Default
  #5
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
- flamelet based solver; https://openfoamwiki.net/index.php/E...n/flameletFoam

- tutorial by students of Hakan Nillson: FGM Foam by Chalmers University: http://www.tfd.chalmers.se/~hani/kur...rt_FGMFoam.pdf

- beta-PDF is defined in term of the Gamma function
boost library: #include <boost/math/special_functions/gamma.hpp> see https://www.boost.org/doc/libs/1_73_...ma/tgamma.html

- beta-PDF integration: https://github.com/flameletFoam/flam...anteraReader.C
dlahaye is offline   Reply With Quote

Old   March 31, 2023, 11:48
Default
  #6
New Member
 
serg
Join Date: Dec 2015
Posts: 29
Rep Power: 11
kont87 is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
- flamelet based solver; https://openfoamwiki.net/index.php/E...n/flameletFoam

- tutorial by students of Hakan Nillson: FGM Foam by Chalmers University: http://www.tfd.chalmers.se/~hani/kur...rt_FGMFoam.pdf

- beta-PDF is defined in term of the Gamma function
boost library: #include <boost/math/special_functions/gamma.hpp> see https://www.boost.org/doc/libs/1_73_...ma/tgamma.html

- beta-PDF integration: https://github.com/flameletFoam/flam...anteraReader.C
I’m afraid the first link is not working? Has anybody tried and made it work?
Thanks!
kont87 is offline   Reply With Quote

Old   April 2, 2023, 16:46
Default
  #7
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
The first link works fine for me. What is your issue exactly?

FGM in OpenFoam is used various groups. Given the nature of the code and the research, the code is possibly still considered in stage of development.
dlahaye is offline   Reply With Quote

Old   April 3, 2023, 01:54
Default
  #8
New Member
 
serg
Join Date: Dec 2015
Posts: 29
Rep Power: 11
kont87 is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
The first link works fine for me. What is your issue exactly?

FGM in OpenFoam is used various groups. Given the nature of the code and the research, the code is possibly still considered in stage of development.
I’m sorry, I meant the second link from Chalmers university. As I downloaded the files and put them in correct folders, while running Allwmake script, It throws an error saying that the file ‘reactionThermo’ does not exist. And couple of other compilation errors follow after.
kont87 is offline   Reply With Quote

Old   April 3, 2023, 02:37
Default
  #9
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
This confirms that a public domain variant of an FGM in OpenFOAM is still in development.

It might be valuable to distinguish between compilation and runtime error.

The file constant/reactionThermo can probably copied from another tutorial.
dlahaye is offline   Reply With Quote

Old   June 23, 2023, 11:48
Default
  #10
New Member
 
serg
Join Date: Dec 2015
Posts: 29
Rep Power: 11
kont87 is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
This confirms that a public domain variant of an FGM in OpenFOAM is still in development.

It might be valuable to distinguish between compilation and runtime error.

The file constant/reactionThermo can probably copied from another tutorial.
I made it work, however, as I was going over the code, realized that (If not mistaken) It does not solve for variances of the progress variable/mixture fraction, although it says otherwise...
kont87 is offline   Reply With Quote

Old   November 23, 2023, 08:23
Default
  #11
New Member
 
Han Yu
Join Date: Nov 2023
Posts: 8
Rep Power: 3
Han Yu is on a distinguished road
Quote:
Originally Posted by dlahaye View Post
- flamelet based solver; https://openfoamwiki.net/index.php/E...n/flameletFoam

- tutorial by students of Hakan Nillson: FGM Foam by Chalmers University: http://www.tfd.chalmers.se/~hani/kur...rt_FGMFoam.pdf

- beta-PDF is defined in term of the Gamma function
boost library: #include <boost/math/special_functions/gamma.hpp> see https://www.boost.org/doc/libs/1_73_...ma/tgamma.html

- beta-PDF integration: https://github.com/flameletFoam/flam...anteraReader.C
Hello, sir!
Sorry for the interruption. It is mentioned on page 12 of the Chalmers University documentation that FGMModel needs to be downloaded from the course homepage. Could you please provide a download link? Thank you so much.
Best regards,
Han Yu
Han Yu is offline   Reply With Quote

Old   November 25, 2023, 02:10
Default
  #12
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
1/ We would need to ask Prof. Hakan Nilsson at Chalmers University for the code.

2/ Alternatively, there is flameletFoam at https://openfoamwiki.net/index.php/E...n/flameletFoam with discussion in this forum on how to bring it to more recent OpenFoam versions.
dlahaye is offline   Reply With Quote

Old   January 1, 2024, 13:51
Default
  #13
New Member
 
Sandeep
Join Date: Apr 2017
Location: IIT Delhi, New Delhi, India
Posts: 13
Rep Power: 10
Sandeep lamba is on a distinguished road
https://www.tfd.chalmers.se/~hani/ku...chael_Bertsch/


Here is the link for FGM solver.
ruloz likes this.
Sandeep lamba is offline   Reply With Quote

Old   October 20, 2024, 05:34
Default
  #14
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Thx for the input.

The beta-PDF in boost might not required in case processing of flamelets is performed outside of the OpenFoam environment.

More importantly, I find a good documentation on how to implement an FGM method in OpenFoam to be missing. I made a start in Section 20 of https://github.com/ziolai/software I am happy to extend it with input provided.
dlahaye is offline   Reply With Quote

Old   January 30, 2025, 11:29
Default Error while compiling FGMFoam
  #15
New Member
 
Killua Zoldyck
Join Date: Apr 2023
Posts: 17
Rep Power: 4
killua1915 is on a distinguished road
Don't know if this is a correct a place to ask this and if this is not then please redirect me to correct forum.


I am trying to compile FGMFoam on my machine but I am getting errors. Any idea on how to resolve this.


The log file when I am following direction given in report is attached with name log_Allwmake_tutorial and the log file when I try to compile case files which comes with tutorial is attached with name log_Allwmake_base.
log_Allwmake_tutorial.txt

log_Allwmake_base.txt


I am running OpenFOAMv2406 on WSL.
killua1915 is offline   Reply With Quote

Old   February 12, 2025, 16:23
Default
  #16
New Member
 
Colin Bissonnette-Campeau
Join Date: Feb 2023
Posts: 1
Rep Power: 0
Colin_BC is on a distinguished road
Hi,

I recently worked on getting FGMFoam to work on v2312 and managed to make it run. The compiling issues come from FGMFoam being made for an older version on a different branch (v7). I still had one error in FGMFoamPost.C where it reads if useProgressVariableVariance is true (around line 120). Since the current model doesn't seem to solve for the variances anyway, as mentioned in a previous post, I commented the problematic section and it's working fine for the test case. If you want to solve the variances as intended in Likun Ma's thesis, you'll need to add the equations to the solver and uncomment/solve the problematic section in FGMFoamPost.C. Before compiling, it is necessary to source bashrc in /src.

Also, after running FGMFoam and FGMFoamPost, I get the following message :
"[stack trace]
=============
#1 Foam::sigSegv::sigHandler(int)malloc_consolidate() : unaligned fastbin chunk detected
Abandon "
It doesn't stop the simulation and the results of the test case look fine, so I am not sure what this message is about. Please let me know if you have an idea.

Link to repository : https://github.com/ColinBCampeau/FGMFoam-v2312.git
dlahaye likes this.
Colin_BC is offline   Reply With Quote

Old   March 12, 2025, 11:45
Default
  #17
New Member
 
Killua Zoldyck
Join Date: Apr 2023
Posts: 17
Rep Power: 4
killua1915 is on a distinguished road
Hi Collin,


I have recently compiled FGMFoam solver. The way I resolved this issue by modifying library name in src folder. I will advise you to run valgrind command to check if there are any classes which have same name as original classes.
dlahaye likes this.
killua1915 is offline   Reply With Quote

Old   March 13, 2025, 06:18
Default
  #18
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Congrats for the successful compilation.

I wonder: do you manage to make the solver run? If so, what input file do you employ.
killua1915 likes this.
dlahaye is offline   Reply With Quote

Old   March 13, 2025, 06:51
Default
  #19
New Member
 
Killua Zoldyck
Join Date: Apr 2023
Posts: 17
Rep Power: 4
killua1915 is on a distinguished road
Yes, I can run the solver for SandiaD Flame tutorial. Right now, I am using FGM table provided in tutorial by Michael Bertsch. I am looking into how can I create FGM table for my own reactions.
dlahaye likes this.
killua1915 is offline   Reply With Quote

Old   March 13, 2025, 07:02
Default
  #20
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 836
Blog Entries: 1
Rep Power: 19
dlahaye is on a distinguished road
Congrats! Well done!
dlahaye is offline   Reply With Quote

Reply

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
[swak4Foam] swakExpression not writing to log alexfells OpenFOAM Community Contributions 3 March 16, 2020 18:19
OpenFOAM 5.0 Released CFDFoundation OpenFOAM Announcements from OpenFOAM Foundation 11 June 5, 2018 23:48
Which Combustion Model should be used? ahmadijaz FLUENT 0 August 23, 2017 15:16
OpenFoam combustion model yaqb OpenFOAM Running, Solving & CFD 1 November 19, 2014 12:19
New OpenFOAM Forum Structure jola OpenFOAM 2 October 19, 2011 06:55


All times are GMT -4. The time now is 04:47.