|
[Sponsors] |
[flameletFoam] new flameletFoam for OpenFoam-2.3.0 |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
September 3, 2014, 05:34 |
new flameletFoam for OpenFoam-2.3.0
|
#1 |
Member
|
Dear Foamers,
As my first real exercise of code development in OpenFoam, I worked on updating the flameletFoam code (http://openfoamwiki.net/index.php/Ex...n/flameletFoam) developed by Dr. Hagen Mueller from OpenFoam-2.1.0 to OpenFoam-2.3.0. Although I really suffered a lot as a beginner, it was a nice experience anyhow. Now the new version of the flameletFoam code is working in OpenFoam-2.3.0. The code can be downloaded here: https://sourceforge.net/projects/flameletfoam230/. Feel free to check it. Best, Likun |
|
September 8, 2014, 15:18 |
|
#2 |
Member
|
Dear Foamers,
My next step is to implement FGM (Flamelet Generated Manifold) model based on the flameletFoam-2.3. Any suggestion, collaboration are very welcome! Best, Likun |
|
September 9, 2014, 04:43 |
|
#3 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Likun
Nice Try. Have u ever checked the results of new code? I mean The code might be compiled well, however during running a case some errors might occur. Best Bobi Last edited by babakflame; September 9, 2014 at 07:04. |
|
September 9, 2014, 10:52 |
|
#4 |
Member
|
Dear Bobi,
Thank you! Yes, I have run the 'pilotedDiffusionFlame' RANS tutorial case release with the original code, there is no problem, and the results is more or less the same with that given by flameletFoam-2.1. However, for the LES case, it crashes after a few time steps, and gives the following errors: PHP Code:
Best Likun |
|
September 9, 2014, 10:57 |
|
#5 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Likun
I am still trying to validate the LES results of the same code in DOWNSTREAM locations (Upstream good). For your problem, I GUESS maybe the definition of Compressible LES models has changed from O.F. 2.1.0 to O.F. 2.3.0. My proposal is using oneEqEddy LES model and check that whether the same problem happens or not. Best, Bobi |
|
September 9, 2014, 13:20 |
|
#6 |
Member
|
Dear Bobi,
Thank you for your fast reply. Indeed, the definitions of compressible LES models has changed from OF2.1. to OF2.3, for examples, 1) the 'LESModel::correct()' In OF2.1: Code:
void LESModel::correct(const tmp<volTensorField>&) { delta_().correct(); } Code:
void LESModel::correct(const tmp<volTensorField>&) { turbulenceModel::correct(); delta_().correct(); } in OF2.1 is: Code:
//- Return the effective thermal diffusivity virtual tmp<volScalarField> alphaEff() const { return tmp<volScalarField> ( new volScalarField("alphaEff", alphaSgs() + alpha()) ); } Code:
//- Return the effective thermal diffusivity virtual tmp<volScalarField> alphaEff() const { return thermo().alphaEff(alphaSgs()); } in OF2.1 is: Code:
//- Return SGS kinetic energy // calculated from the given velocity gradient tmp<volScalarField> k(const tmp<volTensorField>& gradU) const { return (2.0*ck_/ce_)*sqr(delta())*magSqr(dev(symm(gradU))); } Code:
//- Return SGS kinetic energy // calculated from the given velocity gradient tmp<volScalarField> k(const tmp<volTensorField>& gradU) const { volSymmTensorField D(symm(gradU)); volScalarField a(ce_/delta()); volScalarField b((2.0/3.0)*tr(D)); volScalarField c(2*ck_*delta()*(dev(D) && D)); return sqr((-b + sqrt(sqr(b) + 4*a*c))/(2*a)); } Best, Likun |
|
September 10, 2014, 02:43 |
|
#7 |
Senior Member
Bobby
Join Date: Oct 2012
Location: Michigan
Posts: 454
Rep Power: 16 |
Dear Likun
My suggestion is first check the LES properties file in O.F. 2.3.o to see whether other inputs are needed in your LES properties file or not (for smagorinsky model). nest step, might be check the code for adding headers that might be needed. Best, Bobi |
|
September 13, 2014, 12:57 |
|
#8 | |
Member
|
Quote:
Thank you for your suggestions, I am still working on this problem. Best, Likun |
||
October 16, 2014, 10:01 |
|
#9 |
Member
|
Dear FOAMers,
I have made some more modifications for the flameletFoam-2.3.0 solver, now it works for OpenFoam-2.3.x. The previous problem for LES case running is also solved, but there still no guarantee for free of problem. Feel free to check it: https://sourceforge.net/projects/flameletfoam230/files/. Best, Likun |
|
December 11, 2014, 14:25 |
|
#10 |
Member
|
Dear Foamers,
Hagen has created a repository for the flameletFoam code, both the flameletFoam-2.1 and flameletFoam-2.3 are uploaded there. To avoid possible confusion, I have removed the flameletFoam-2.3 code that I have previously uploaded to the sourceforge. The code can now be found here: https://github.com/flameletFoam. Best, Likun |
|
January 1, 2015, 04:28 |
|
#11 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 13 |
Dear Likun,
Are you using the flameletFoam for further research? Now i am trying this solver but i encounter the following problem:
best regards, wenxu |
|
January 1, 2015, 05:30 |
|
#12 |
Member
|
Dear Wenxu,
I am not using Cantera for generating flamelet library. So I don't know what is the definition of mixture fraction in Cantera. Best, Likun |
|
January 5, 2015, 07:41 |
|
#13 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 16 |
Dear Wenxu,
the mixture fraction is calculated using a small amount of Argon that is added at the Fuel inlet. Hagen |
|
March 19, 2015, 05:06 |
|
#14 | |
Member
Howar
Join Date: Mar 2015
Posts: 53
Rep Power: 11 |
Quote:
|
||
March 19, 2015, 05:33 |
|
#15 |
Member
Hagen Müller
Join Date: Nov 2010
Posts: 34
Rep Power: 16 |
Dear Howard,
there is a small description how the code can be used on the extend bazaar in the OpenFoam wiki: https://openfoamwiki.net/index.php/E...n/flameletFoam For premixed combustion you will probably need to modify the code, adding a reaction progress-variable, basically switching to FGM. The preprocessing (table generation etc) is different for premixed flames. Hagen |
|
March 20, 2015, 04:11 |
|
#16 | |
Member
|
Quote:
I fully agree with what Hagen said. Flamelet model by concept is for modeling of non-premixed combustion. For premixed combustion you need progress variable as the independent variable instead of mixture fraction as in flamelet model. However, for partially-premixed flame you still need mixture fraction. I think the best way for you is to modify this code, add progress variable. This should not be too difficult if you understand the structure of flameletFoam. I have already implemented FGM model based on the flameletFoam, and it is working fine. After adding progress variable, you need generate a lookup table using progress variable (and mixture fraction) as independent variable. This can be done by Cantera, FlameMaster or CHEM1D. I am using CHEM1D flame Eindhoven university. Good Luck! Best, Likun |
||
March 20, 2015, 06:07 |
|
#17 | |
Member
Howar
Join Date: Mar 2015
Posts: 53
Rep Power: 11 |
Quote:
|
||
March 20, 2015, 18:37 |
|
#18 | |
Member
|
Quote:
Best, Likun |
||
July 13, 2015, 12:01 |
Argon and mixture fraction
|
#19 |
Member
Join Date: Feb 2014
Posts: 63
Rep Power: 12 |
Hagen,
Here you have said the mixture fraction is calculated using a small amount of Argon added from the fuel inlet. I just wanted to know if my understanding is correct. Is it added as a tracer element so within the counter-flow flame thickness instead of calculating mixture fraction explicitly by Bilger's formulation, Yar/Yar_fuel is used as the mixture fraction ? |
|
July 13, 2015, 23:00 |
|
#20 |
Senior Member
Freedom
Join Date: May 2014
Posts: 209
Rep Power: 13 |
The definition of mixture fraction based on element can be found here: Masri, A. R., and Bilger, R. W., Comb. Flame 73:261– 285 (1988).
You can also look through this paper, then you will have a clear understanding of mixture fraction: A Consistent Flamelet Formulation for Non-Premixed Combustion Considering Differential Diffusion Effects regards, wen |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Multiple Floating Objects with 6DoF in OF 2.3.0 | tyoung | OpenFOAM Running, Solving & CFD | 23 | June 11, 2024 02:13 |
[OpenFOAM.org] Problem in installing OpenFOAM 2.3.0 !!! | omid20110 | OpenFOAM Installation | 6 | August 1, 2016 12:20 |
Difference in the results between OF 2.3.0 and OF 2.4.0 simpleFoam | Olgierd | OpenFOAM Running, Solving & CFD | 0 | July 27, 2015 12:23 |
Liquid Evaporation Model Error in OF 2.3.0 | brbbhatti | OpenFOAM | 11 | June 16, 2014 10:40 |
Installing Mixing_plane in either OpenFOAM 2.3.0 or 1.6-ext | Jiricbeng | OpenFOAM Installation | 7 | May 18, 2014 16:46 |