|
[Sponsors] |
Combustion Modeling-Using chemFoam in reactive flow |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 24, 2012, 11:41 |
Combustion Modeling-Using chemFoam in reactive flow
|
#1 |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Dear Foamers,
I like to model premixed combustion in a narrow channel using detailed chemistry. I know that chemFoam is a solver that can implement detailed reaction mechanisms; however, it is only for one cell Does anyone know how I can use the capability of this solver in other combustion solvers, for instance in XiFoam? Any help would be appreciated! Thanks |
|
October 31, 2012, 04:18 |
|
#2 |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Hi mhsn,
I think chemFoam is just a validation solver for the chemistry provided in OpenFoam. One can use it to analyse reactions and compare with other solvers like chemkin etc: http://www.openfoam.org/version2.0.0/chemistry.php I think, the detailed chemistry can be used by the other solvers as well (e.g. you can set up a reactingFoam case using the same chemistry functionality like in the chemFoam case). Or is there some functionality I am not considering? |
|
October 31, 2012, 13:11 |
|
#3 | |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Quote:
Thanks |
||
October 31, 2012, 23:30 |
|
#4 | |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Quote:
http://www.tfd.chalmers.se/~hani/kur...actingFoam.pdf It's a tutorial written by Andreas Lundstrom and he introduces two own reactions, shows how to write that down in chemkin files and also explains how to set up the 7 high-low coeffs for this simple case. Later, you could use the chemkinToFoam tool to convert the input into the nativeOpenFoam chemistry format, because, I think, this format is much more flexible and easier to read. Last but not least: there are some minor typos in the tutorial when it comes to compute some values, so don't get confused by this Also, the Tutorial in the OpenFoam Wiki: http://openfoamwiki.net/index.php/Tu..._firstTutorial however, here the reactions are already quite complex |
||
November 1, 2012, 16:21 |
|
#5 |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Thanks for the information
I will take a look at these tutorials to see how it works. |
|
November 2, 2012, 02:00 |
|
#6 |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
You are welcome!
I forgot, here is the link to the case files for the Lundstrom tutorial. http://www.tfd.chalmers.se/~hani/kur...utorial.tar.gz |
|
November 9, 2012, 17:47 |
|
#7 |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Hanzo,
the tutorial you sent to me helped a lot. Now I can run my test case using chemkin mechanisms. But, I have another issue now. What if I want to use transport properties from chemkin files? Do you know how I can read the transport properties like I do for them file in chemkin format? Thanks |
|
November 13, 2012, 05:40 |
|
#8 | |
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Quote:
you only have the reaction parameters and the thermal properties stored in the chemkin files. |
||
November 13, 2012, 11:20 |
|
#9 |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Basically, there are three different chemkin files for each mechanism: 1) for reactions 2) for thermal properties and 3) for transport properties such as diffusion coefficients, thermal conductivity, viscosity and such other properties.
OF has readers for reactions and thermal properties, and I'm not sure if there is any way that I can use chemkin transport file! Do you have any idea how these properties can be implemented for reactingFoam? |
|
November 13, 2012, 22:27 |
|
#10 | ||
Member
Join Date: Nov 2010
Location: Tokyo / Japan
Posts: 40
Rep Power: 16 |
Quote:
Quote:
http://foam.sourceforge.net/docs/cpp/a02406_source.html Code:
00024 fvScalarMatrix YiEqn 00025 ( 00026 fvm::ddt(rho, Yi) 00027 + mvConvection->fvmDiv(phi, Yi) 00028 - fvm::laplacian(turbulence->muEff(), Yi) 00029 == 00030 combustion->R(Yi) 00031 ); To input your own diffusion coefficients you should do something similar like here http://www.cfd-online.com/Forums/ope...efficient.html By the way, you are working a lot with the chemistry in openFoam. Maybe you can have a small look on my problem -> http://www.cfd-online.com/Forums/ope...-solution.html I still have some conversion issues there |
|||
November 15, 2012, 17:38 |
|
#11 |
New Member
Mhsn
Join Date: Oct 2012
Posts: 24
Rep Power: 14 |
Hi Hanzo, thanks for your reply. Actually, because for the work I'm going to do there are plenty of species (around 50) with different mechanisms, that should not be the very right way to follow that. I really like a way like how thermal properties files are read in chemkin format.
About your question, I checked that post. It is really weird that you have discrepancy by factor 7! I think you may have to double check all units that you've used to see if they are consistent with other units used in the solver! That may be the reason! Thanks |
|
June 2, 2016, 12:35 |
|
#12 | |
New Member
Mr.liu
Join Date: Sep 2012
Posts: 27
Rep Power: 14 |
Quote:
First i added this code in the CreatField.H, volScalarField Rrate ( IOobject ( "Rrate", runTime.timeName(), mesh, IOobject::NO_READ, IOobject::AUTO_WRITE ), mesh, dimensionedScalar("Rrate", dimMass/dimVolume/dimTime, 0.0) ); Then, i added this code in YEqn, forAll(Y, i) { if (Y[i].name() != "CH4") RR = reaction->R(Yi); } After wmake, it shows YEqn.H:26:14: error: no match for ‘operator=’ (operand types are ‘Foam::volScalarField {aka Foam::GeometricField<double, Foam::fvPatchField, Foam::volMesh>}’ and ‘Foam::tmp<Foam::fvMatrix<double> >’) Rrate = reaction->R(Yi); Can you tell me how to do that? Thank you very much. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
mass flow in is not equal to mass flow out | saii | CFX | 12 | March 19, 2018 06:21 |
Modeling Turbulent Reactive Flow | sanjibdsharma | OpenFOAM | 45 | May 16, 2016 02:42 |
Modeling the mixing of air and kerosene in a flow channel | StefanG | CFX | 3 | June 11, 2012 21:21 |
Modeling liquid-phase reactive flow | sanjibdsharma | OpenFOAM | 0 | October 22, 2009 06:42 |
What is the difference between liquid reactive flow and gas reactive flow? | James | Main CFD Forum | 6 | May 15, 2009 13:14 |