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

No reactions in reactingFoam 2.1

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

Like Tree2Likes
  • 2 Post By mturcios777

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2012, 10:25
Default No reactions in reactingFoam 2.1
  #1
OMN
New Member
 
Olivier Macchion
Join Date: Jun 2010
Posts: 12
Rep Power: 15
OMN is on a distinguished road
Hi

In OpenFoam 2.0.1 it was easy to get rid of the reactions in reactingFoam to model the dispersion of a gas in air: the reactions keyword needed to be followed by an empty dictionary.

I am trying to do the same thing with OpenFoam 2.1, but it always complains that there is a reaction missing. Is there a simple way of turning off the reactions in reactingFoam 2.1?

Kind regards

Olivier
OMN is offline   Reply With Quote

Old   January 22, 2013, 17:30
Default
  #2
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 13
hz283 is on a distinguished road
Quote:
Originally Posted by OMN View Post
Hi

In OpenFoam 2.0.1 it was easy to get rid of the reactions in reactingFoam to model the dispersion of a gas in air: the reactions keyword needed to be followed by an empty dictionary.

I am trying to do the same thing with OpenFoam 2.1, but it always complains that there is a reaction missing. Is there a simple way of turning off the reactions in reactingFoam 2.1?

Kind regards

Olivier
Hi OMN,

I am also using reactingFoam to model the dispersion of a gas in air. I switch off the reactions. Should I change the thermo in thermophysicsmodel

hsPsiMixtureThermo<reactingMixture<gasThermoPhysic s>>

Is it still suitable for simulating cold flows? Thank you very much!

best
H
hz283 is offline   Reply With Quote

Old   January 22, 2013, 18:57
Default
  #3
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
The easiest way of turning off reactions in 2.1.x is to turn off chemistry. In chemistryProperties, turn the chemistry off, and in combustion properties turn the combustion off as well.
mturcios777 is offline   Reply With Quote

Old   January 22, 2013, 19:20
Default
  #4
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 13
hz283 is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
The easiest way of turning off reactions in 2.1.x is to turn off chemistry. In chemistryProperties, turn the chemistry off, and in combustion properties turn the combustion off as well.
Hi Macro,

Thank you so much. If I turn off the combustion term, are these laminar transport parameters like mu, alpha... still calculated based on the composition of the local cell center?

Thank you very much!

H
hz283 is offline   Reply With Quote

Old   January 22, 2013, 19:25
Default
  #5
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Actually, wait I think I lied . Keep combustion on, but chemistry off. Its weird I know, but the combustion model handles the turbulent mixing outside of the chemistry. The chemistry model is part of the combustion model, so it can be turned off by itself just to turn of reactions.

Laminar transport parameters are calculated based on the thermophysical model. hsPsiMixtureThermo<reactingMixture<gasThermoPhysic s>>
supports mixtures (which is what I imagine you are after since you are using reactingFoam) so it will work. Anything that supports inhomogenous mixtures should work. Have a look at the FOAM documentation for thermophysical models to be sure.
mturcios777 is offline   Reply With Quote

Old   January 22, 2013, 19:33
Default
  #6
Senior Member
 
Join Date: Nov 2012
Posts: 171
Rep Power: 13
hz283 is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
Actually, wait I think I lied . Keep combustion on, but chemistry off. Its weird I know, but the combustion model handles the turbulent mixing outside of the chemistry. The chemistry model is part of the combustion model, so it can be turned off by itself just to turn of reactions.

Laminar transport parameters are calculated based on the thermophysical model. hsPsiMixtureThermo<reactingMixture<gasThermoPhysic s>>
supports mixtures (which is what I imagine you are after since you are using reactingFoam) so it will work. Anything that supports inhomogenous mixtures should work. Have a look at the FOAM documentation for thermophysical models to be sure.
Thank you, Macro!

Today, I switch off both, reaction and combustion, and the openfoam can give me some results, but the results are not correct. I am not sure if this caused by turning off combustion.

Besides, in isothermal mixing, about how to calculate the density, I think I have two ways:

1), the default in reactingFoam, therm.rho()

2), user hard-coded Equation of State:

rho=1/(Y_fuel/rho_fuel+Y_N2/rho_N2+...+Y_speciesN/rho_speciesN)

Are they equivalent in reactingFoam when isothermal flow is simulated?

Thank you in advance!

best
H
hz283 is offline   Reply With Quote

Old   January 22, 2013, 21:15
Default
  #7
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Quote:
Originally Posted by hz283 View Post
Besides, in isothermal mixing, about how to calculate the density, I think I have two ways:

1), the default in reactingFoam, therm.rho()

2), user hard-coded Equation of State:

rho=1/(Y_fuel/rho_fuel+Y_N2/rho_N2+...+Y_speciesN/rho_speciesN)

Are they equivalent in reactingFoam when isothermal flow is simulated?

Thank you in advance!

best
H
They should be equivalent. When you select the thermophysical model, you determine how the mixture properties (of which rho is one) by selecting the mixture type. See the documentation:

http://www.openfoam.org/docs/user/thermophysical.php

If you want to know the details of how the mixture properties are calculated, you will need to look at the source code for a particular thermophysical model. For the hsPsiThermo models, I know that thermo.rho() returns p*psi (since its a compressible model), and that psi is calculated in the thermo.calculate() function for the model. I can't remember where psi is calculated to take into account the mixture, but I remember seeing it when I had to develop my own thermo models.
wayne14 and Kummi like this.
mturcios777 is offline   Reply With Quote

Old   April 26, 2014, 20:08
Default
  #8
Member
 
Krishna
Join Date: Jun 2012
Posts: 33
Blog Entries: 1
Rep Power: 13
rkc.cfd is on a distinguished road
Quote:
Originally Posted by hz283 View Post
Thank you, Macro!

Today, I switch off both, reaction and combustion, and the openfoam can give me some results, but the results are not correct. I am not sure if this caused by turning off combustion.

Besides, in isothermal mixing, about how to calculate the density, I think I have two ways:

1), the default in reactingFoam, therm.rho()

2), user hard-coded Equation of State:

rho=1/(Y_fuel/rho_fuel+Y_N2/rho_N2+...+Y_speciesN/rho_speciesN)

Are they equivalent in reactingFoam when isothermal flow is simulated?

Thank you in advance!

best
H
Hello,

I working on the same iso thermal mixing without reaction and using reactingfoam. Could you please elaborate, if you made progress on the the above comment. Since there are few thermo.rho() calling instances, could you just replace with one rho based on specie local mixture fraction (2nd way) after eliminating the EEqn and turning off reactions?

Cheers,

RKC
rkc.cfd is offline   Reply With Quote

Old   June 19, 2014, 13:00
Smile Help with turning off
  #9
New Member
 
Join Date: Dec 2013
Posts: 12
Rep Power: 12
coroi is on a distinguished road
Quote:
Originally Posted by hz283 View Post
Thank you, Macro!

Today, I switch off both, reaction and combustion, and the openfoam can give me some results, but the results are not correct. I am not sure if this caused by turning off combustion.

Besides, in isothermal mixing, about how to calculate the density, I think I have two ways:

1), the default in reactingFoam, therm.rho()

2), user hard-coded Equation of State:

rho=1/(Y_fuel/rho_fuel+Y_N2/rho_N2+...+Y_speciesN/rho_speciesN)

Are they equivalent in reactingFoam when isothermal flow is simulated?

Thank you in advance!

best
H

Hi,
Can I ask you for some help? How you managed to turn off cobustion and run the case without crashing the solver? In fact i use a fireFoam case but the chemistryProperties fand cobustionProperties files are very similar to those of reactingFoam.
Have you changed something in Dict files apart in cobustionProperties file (change active on with active off) ?
Thank you for your attention!
coroi is offline   Reply With Quote

Old   June 20, 2014, 13:48
Default
  #10
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
If the solving is crashing and chemistry/combustion has been turned off, I would seriously look at your case setup. The solver is relatively robust and modelling transport hasn't been a real problem.
mturcios777 is offline   Reply With Quote

Old   June 23, 2014, 10:34
Default
  #11
New Member
 
Join Date: Dec 2013
Posts: 12
Rep Power: 12
coroi is on a distinguished road
Quote:
Originally Posted by mturcios777 View Post
If the solving is crashing and chemistry/combustion has been turned off, I would seriously look at your case setup. The solver is relatively robust and modelling transport hasn't been a real problem.
In fact it worked, there was another problem with a BC.
coroi is offline   Reply With Quote

Old   June 28, 2014, 09:00
Default gas expansion incorrect ?
  #12
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Dear Foamers,
I am using the reactingFoam to simulate cold He ejection into warm air (O2 + N2), so I have mixture of 3 ideal gases.

I turn off combustion and reactions.

But I am sure that results are not correct. There is way to little He in the flow. It seems that He does no expand, as it should. Initially He has 5K, surrounding air has about 300K,
so He should increase its value significantly once its temperature rises. But it seems that it never happens.

Any clues ?

what about the "combustion", should it be on ?

Thanks
ziemowitzima is offline   Reply With Quote

Old   September 23, 2014, 10:02
Default
  #13
New Member
 
Join Date: Dec 2013
Posts: 12
Rep Power: 12
coroi is on a distinguished road
Quote:
Originally Posted by ziemowitzima View Post
Dear Foamers,
I am using the reactingFoam to simulate cold He ejection into warm air (O2 + N2), so I have mixture of 3 ideal gases.

I turn off combustion and reactions.

But I am sure that results are not correct. There is way to little He in the flow. It seems that He does no expand, as it should. Initially He has 5K, surrounding air has about 300K,
so He should increase its value significantly once its temperature rises. But it seems that it never happens.

Any clues ?

what about the "combustion", should it be on ?

Thanks
Hi,
Combustion sould be set to off , because you don't need to simulate the combustion of any gas if I understood you well.
coroi is offline   Reply With Quote

Old   September 23, 2014, 10:09
Default
  #14
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Hi,
It does not change too much if combustion is on or off.
But main problem seems to be still there,
there is to little Helium in the tunnel, it seems that it does not expands correctly while it heats up...
any clues ?
thanks
ziemowitzima is offline   Reply With Quote

Old   April 7, 2015, 08:24
Default
  #15
Member
 
Ben Jankauskas
Join Date: Jun 2013
Location: Exeter
Posts: 34
Rep Power: 12
rhythm is on a distinguished road
Hi guys,

I was wondering if there is a way to turn of the combustion in reactingFoam, yet still perform reactions? (I presume OF uses FiniteRateModel, so use that, but without combustion.)

I have been digging through the solvers and libraries and so far I understand that in OpenFOAM the reaction kinetics is entangled within the combustion libraries and any time one wants to use reactions, one has to start by creating/envoke a combustion object/class in the createFields.H file. Which is then used to create instances for thermodynamics, mixture composition and to calculate reaction rates.

I was wondering if there was a particular reason why there is no separate class (not a subclass/method of combustion) that would be used for reaction rate calculation?



I wasn't brave enough to create a new thread but I hope my question is appropriate for this thread.

Ben.
rhythm is offline   Reply With Quote

Old   April 7, 2015, 08:37
Default strange numerical behavior of reactingFoam...
  #16
Senior Member
 
Mieszko Młody
Join Date: Mar 2009
Location: POLAND, USA
Posts: 145
Rep Power: 17
ziemowitzima is on a distinguished road
Dear All,

I encountered very strange behavior while using reactingFoam, without reactions and combustions,
please see the thread:

http://www.cfd-online.com/Forums/ope...tml#post540279

any idea why it behaves like that ?

thx
ZMM
ziemowitzima is offline   Reply With Quote

Old   April 7, 2015, 13:14
Default
  #17
Senior Member
 
mturcios777's Avatar
 
Marco A. Turcios
Join Date: Mar 2009
Location: Vancouver, BC, Canada
Posts: 740
Rep Power: 28
mturcios777 will become famous soon enough
Quote:
Originally Posted by rhythm View Post
Hi guys,

I was wondering if there is a way to turn of the combustion in reactingFoam, yet still perform reactions? (I presume OF uses FiniteRateModel, so use that, but without combustion.)

I have been digging through the solvers and libraries and so far I understand that in OpenFOAM the reaction kinetics is entangled within the combustion libraries and any time one wants to use reactions, one has to start by creating/envoke a combustion object/class in the createFields.H file. Which is then used to create instances for thermodynamics, mixture composition and to calculate reaction rates.

I was wondering if there was a particular reason why there is no separate class (not a subclass/method of combustion) that would be used for reaction rate calculation?



I wasn't brave enough to create a new thread but I hope my question is appropriate for this thread.

Ben.
Hi Ben,

If you look at an older version of OpenFOAM (I think as late as 2.1.x) you can see that it used to be that the chemistry object was created directly in the solver. If you feel like it you can do that same thing in the newest versions; just create a solver that uses chemistry rates directly.

Although I'm not sure what you mean about using reactions and turning off combustion, since combustion is a reacting flow.
mturcios777 is offline   Reply With Quote

Reply

Tags
openfoam 2.1, reactingfoam, reactions

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
ReactingFoam with surface reactions robert_mornhinweg OpenFOAM Running, Solving & CFD 9 April 18, 2018 12:20
inconsistency in the chemical reactions in Reacting Foam? lfgmarc OpenFOAM Running, Solving & CFD 1 October 10, 2011 12:11
reactingFoam wedge handling wrong U dhondupant OpenFOAM Bugs 1 December 9, 2010 08:34
porous medium and reactions Valeria FLUENT 1 July 10, 2009 04:58
ReactingFoam without reactions lasb OpenFOAM Running, Solving & CFD 5 June 10, 2008 09:50


All times are GMT -4. The time now is 01:19.