|
[Sponsors] |
May 17, 2019, 02:19 |
reactingOneDim21CharOxi - fireFoam-Dev
|
#1 |
New Member
Join Date: Dec 2015
Posts: 20
Rep Power: 10 |
Hi,
My project work is on oxidation reaction of metal with steam. For this purpose, I have modified chtMultiRegionFoam (version 6) by including pyrolysis model. But this pyrolysis model takes care only below reaction solid1 = solid2 + gas. The reaction that I am trying to solve is solid1 + gas1 = solid2 + gas2. For this, I have found reactingOneDim21CharOxi (fireFoam-dev) is suitable. While compiling library function, Below statements are giving troubles. const label charIndex = solidThermo_.composition().species()["char"]; scalar rhoChar = solidThermo_.composition().rho(charIndex, 10000, 298); dimensionedScalar Cp0("Cp0", dimEnergy/dimMass/dimTemperature, solidThermo_.composition().Cp(0, 1.0e05, 300.) ); dimensionedScalar Cp1("Cp1", dimEnergy/dimMass/dimTemperature, solidThermo_.composition().Cp(1, 1.0e05, 300.) ); The error is 'class Foam:: autoPtr<Foam:: solidReactionThermo>' has no member named composition The base class is reactingOneDim instead of reactingOneDim21 which is used in fireFoam-dev. The constructors used in reactingOneDim are different from reactingOneDim21. In reactingOneDim - these statements are used :solidThermo_(solidReactionThermo::New(regionMesh( ))), solidChemistry_(basicSolidChemistryModel:: New(solidThermo_())), while in reactingOneDim21, statements are: solidChemistry_(basicSolidChemistryModel::New(regi onMensh())), solidThermo_(solidChemistry_solidThermo()) Kindly give some insight view about this topic, which will be highly helpful for my research. Thank you |
|
May 17, 2019, 02:44 |
|
#2 |
Senior Member
|
Hello Archana,
For my topic of research, I combined chtMultiRegionFoam and firFoam (Solid model alone). As you stated, only [solid1 = solid 2 + gas] defined by default in the reacting one dimensional solid solver. i.e., one solid on the L.H.S and one solid on R.H.S with only 1 gas can be defined. In addition, no stoichiometric coefficients can be defined in solid model unless and until it is defined and declared in solid chemistry model. I recommend you to refer biomassGasificationFOAM source files below, where you can fit the expected global reaction with coefficients. https://www.researchgate.net/publica...tallPack_10tar Hope it helps. Thank you^^ |
|
May 17, 2019, 03:40 |
|
#3 |
New Member
Join Date: Dec 2015
Posts: 20
Rep Power: 10 |
Thanks. I will look into it.
|
|
May 17, 2019, 05:58 |
|
#4 |
New Member
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9 |
I hope, you are clear with the error? And you know some of C++ already?
|
|
May 17, 2019, 13:58 |
|
#5 |
New Member
Join Date: Dec 2015
Posts: 20
Rep Power: 10 |
||
May 17, 2019, 14:07 |
|
#6 |
New Member
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9 |
Yes. You are actually right. OpenFOAM4 is much stable version than 6. You can go ahead with 4. Moreover, if you want to learn more through debugging, I would suggest you to use OpenFOAM ESI version like OpenFOAM-v1612+ and more. Build that in debug mode which you can change in etc/nashe file. I hope you are not new to OpenFOAM!
|
|
May 17, 2019, 14:08 |
|
#7 |
New Member
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9 |
Etc/bashrc. Sorry it was autocorrect, not me!
__________________
Ankur Garg |
|
May 18, 2019, 02:42 |
|
#8 |
New Member
Join Date: Dec 2015
Posts: 20
Rep Power: 10 |
Thanks Ankur.
|
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Error with the FireFOAM examples | farensheep | OpenFOAM Bugs | 3 | July 25, 2015 16:54 |
fireFoam installation | Roman1 | OpenFOAM Installation | 2 | September 27, 2013 04:05 |
Install/compile fireFoam 1.6-1.0 in Openfoam 2.1.1 | hz283 | OpenFOAM Programming & Development | 19 | April 1, 2013 09:35 |
How to setup a proper "heatFlux" boundary for fireFoam? | Jumping | OpenFOAM Pre-Processing | 0 | March 27, 2013 10:27 |
pyrolysis in fireFoam | windwin | OpenFOAM | 1 | September 26, 2011 09:11 |