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

reactingOneDim21CharOxi - fireFoam-Dev

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   May 17, 2019, 02:19
Default reactingOneDim21CharOxi - fireFoam-Dev
  #1
New Member
 
Join Date: Dec 2015
Posts: 20
Rep Power: 10
Archana V is on a distinguished road
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
Archana V is offline   Reply With Quote

Old   May 17, 2019, 02:44
Default
  #2
Senior Member
 
Kumaresh
Join Date: Oct 2016
Posts: 354
Rep Power: 12
Kummi is on a distinguished road
Send a message via Yahoo to Kummi
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^^
Kummi is offline   Reply With Quote

Old   May 17, 2019, 03:40
Default
  #3
New Member
 
Join Date: Dec 2015
Posts: 20
Rep Power: 10
Archana V is on a distinguished road
Thanks. I will look into it.
Archana V is offline   Reply With Quote

Old   May 17, 2019, 05:58
Default
  #4
New Member
 
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9
ankur_garg is on a distinguished road
I hope, you are clear with the error? And you know some of C++ already?
ankur_garg is offline   Reply With Quote

Old   May 17, 2019, 13:58
Default
  #5
New Member
 
Join Date: Dec 2015
Posts: 20
Rep Power: 10
Archana V is on a distinguished road
Quote:
Originally Posted by ankur_garg View Post
I hope, you are clear with the error? And you know some of C++ already?
I suppose, in solidReactionThermo (version-6), there is no member function of composition. I am able to compile with OpenFOAM-4, but not with OpenFOAM-6. I am new to C++.
Archana V is offline   Reply With Quote

Old   May 17, 2019, 14:07
Default
  #6
New Member
 
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9
ankur_garg is on a distinguished road
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!
ankur_garg is offline   Reply With Quote

Old   May 17, 2019, 14:08
Default
  #7
New Member
 
ANKUR GARG
Join Date: Mar 2017
Posts: 23
Rep Power: 9
ankur_garg is on a distinguished road
Etc/bashrc. Sorry it was autocorrect, not me!
__________________
Ankur Garg
ankur_garg is offline   Reply With Quote

Old   May 18, 2019, 02:42
Default
  #8
New Member
 
Join Date: Dec 2015
Posts: 20
Rep Power: 10
Archana V is on a distinguished road
Thanks Ankur.
Archana V is offline   Reply With Quote

Reply


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
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


All times are GMT -4. The time now is 02:44.