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

Do not spend your time

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

Like Tree12Likes
  • 1 Post By karam
  • 11 Post By hjasak

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 15, 2010, 13:14
Default Do not spend your time
  #1
New Member
 
trackeras
Join Date: Apr 2009
Posts: 4
Rep Power: 16
karam is on a distinguished road
The subject is somewhat impolite,

but some people who have same problem with me can understand.


First of all, Thanks for developers and sorry for the subject.


I spent almost 2 years to perform combustion simulation by OpenFOAM.

Engine, premixed flame and coal combustion furnace....etc

OpenFOAM combustion library can simulate few cases.

However, almost cases have a same error.

"Janaf thermo error"

Many users report this error for various cases

and try to solve this problem, but nobody can answer the solution for error.




At first, I think that

"It's a user's fault, OpenFOAM maybe OK for a GOOD mesh, small CFL, appropriate BCs and numerical schemes"


HOWEVER, It's NOT a user's fault.

This error always exist even though there are perfect mesh and setup.


JANAF is just a table. It just return specific heat value for a given temperature that comes from enthalpy equation.


I can't think other cause of this error except this.

"OpenFOAM combustion libraries are naturally instable."

OpenFOAM can be the best numerical analysis tool for a future, at present time, it's not.

Please, Do NOT spend your time to perform combustion using OpenFOAM

If you still want to doing, there is alternative chemistry library for OpenFOAM using cantera which is more stable according to original developer.

However, It only support OpenFOAM 1.5.x
Kummi likes this.
karam is offline   Reply With Quote

Old   April 15, 2010, 23:45
Default
  #2
Member
 
roy fokker
Join Date: Mar 2009
Posts: 44
Rep Power: 17
dbxmcf is on a distinguished road
Hi, karam:

I know nothing about combustion in OF, and I feel sorry for difficulties you have met, however every software have bugs/errors, especially OpenFOAM is not MS Word/Excel that is used/maintained by well paid programmers, it could be that if you spend some little time, you can solve that weird bug but it is not guaranteed, it might be a gamble for you if you want to decide whether to spend more time on this, but this is the nature of research, I think you are not using this for a project in your company, correct? Because compared to the population of users of Word/Excel, there are really too few users of OF.

I think you at least gave some information about the error from OF, may it be answered by someone else, and you also provided an alternative chem library.

Thank you!
dbxmcf is offline   Reply With Quote

Old   April 16, 2010, 02:13
Default
  #3
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Hi,

I'm not expert of combustion, as a consequence I cannot comment on the specific topic.

However, you could provide a test case where you meet the problem, so others interested can check it and try to find what the actual cause of the problem is (probably of numerical origin).
I searched the forum and I didn't find any thread opened by you on this topic. You could attach a small example that causes the problem here, so to have a concrete case to discuss.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   April 16, 2010, 05:41
Default
  #4
Senior Member
 
Karl-Johan Nogenmyr
Join Date: Mar 2009
Location: Linköping
Posts: 279
Rep Power: 21
kalle is on a distinguished road
Hi Karam,

I know this Janaf error is really frustrating sometimes and they are unfortunately not that unusual. Most of the times I have experienced them it has been the out-of-range (both high and low) problem. Mostly I have been able to work around by isolating which cell that failed and find out why. Sometimes it's been inadequate BC's and sometimes I have found that using different discretization helps.

The janaf error problem was also one of the motivations behind the canteraChemistry effort. I did not use cantera with openfoam a lot, so I cannot comment on how useful it is in practical use.

If there is a bug it would be good to locate it, but instability does not always equal bugs, it can also be pure sensitivity (for instance to scalar overshooting). As Alberto suggests, it could be useful if you provided a test case which you never managed to solve, and the community could possibly provide some help.

Kalle
kalle is offline   Reply With Quote

Old   April 19, 2010, 05:46
Default
  #5
New Member
 
Eric.wang
Join Date: Jun 2009
Location: beijing china
Posts: 11
Rep Power: 16
wang.zhy is on a distinguished road
Hi
I'm not an expert of combustion too ,but I think I was very familiar with the OpenFOAM lagrangian library ,thermoDynamicModel library ,and some other OpenFOAM library.
Firstly,according to my experience ,I beleve the lagrangian and thermodynamic library is not as good as other OpenFOAM libraries :the lagrangian library is overused of C++ ,the thermoDynamicModel library is overcomplexed 。In thermoDynamicModel ,there are so many *thermo ,such as hPsiMixtureThermo hPsiThermo ,why didnt the writer just write hPsiMixtureThermo and treat hPsiThermo as a one component hPsiMixtureThermo ?

secondly ,I think OpenFOAM is good at incompressible , ico thermo ,and dynamicMesh . snappyHexMesh has great parallel efficient .
thirdly ,I think OpenFOAM have more advantage than its lack .It is free, open source ,and have acceptable accuaracy,good paralle efficency ... and so on .
my english is bad ,sorry for that .
Eric
wang.zhy is offline   Reply With Quote

Old   August 10, 2010, 07:34
Default
  #6
Member
 
Francois Gallard
Join Date: Mar 2010
Location: Toulouse, France
Posts: 43
Rep Power: 16
fgal is on a distinguished road
Hi,

I am experiencing the same problems with janaf, using FireFoam. Even the tutorial originally provided by FM Global crashes because of the validity range of Janaf. Well, the mesh is simple and the case 2D which does not make sense in LES, but after spending months launching simulations, I get this error most of the time. Yes, tuning schemes and the mesh sometimes makes the computation converge but the sensibility to the parameters is very very high.

I must say OpenFoam is a fantastic code, I learnt so much about CFD thanks to its structure, but I lost hundreds hours because of this instability which sometimes made me nervous and desapointed so I understand karam's reaction. That would be really nice to do something for solving it. Unfortunately, I am changing of research topic but some people here will continue on it and I will try to underline the problem and hopefully something could be done in the future.

Anyway, thanks again to the developers for this work.

Cheers

Francois.
fgal is offline   Reply With Quote

Old   August 11, 2010, 07:51
Default
  #7
Senior Member
 
Hrvoje Jasak
Join Date: Mar 2009
Location: London, England
Posts: 1,905
Rep Power: 33
hjasak will become famous soon enough
I really get annoyed with this kind of thing - did you guys ever wonder if you are doing the case setup right and WHY your temperature drops below 200K (this is minus 100 Celsius, which is pretty cold for combustion).

In ALL cases of this kind that I have ever seen, there has always been a problem either with the boundary conditions or discretisation settings. Further to that, why don't you ever consider dozens of publicly related cases which show excellent combustion results with OpenFOAM - see for example the IC engine work in Milan and dozens of other LES-combustion simulations. There is absolutely nothing wrong with the thermodynamics setup in OpenFOAM, but combustion is a difficult subject and the user needs to be sensible and careful in setting up a case.

If you are so desperate, why don't you apply to the Summer School next year and spend 2 weeks in Zagreb working through the cases you consider problematic - I am sure we will resolve every single issue in about 3 days.

Hrv
nisha, kmpang, Azanulbizar and 8 others like this.
__________________
Hrvoje Jasak
Providing commercial FOAM/OpenFOAM and CFD Consulting: http://wikki.co.uk
hjasak is offline   Reply With Quote

Old   August 12, 2010, 06:53
Default I guess its diffusion.
  #8
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Quote:
Originally Posted by hjasak View Post
I really get annoyed with this kind of thing - did you guys ever wonder if you are doing the case setup right and WHY your temperature drops below 200K (this is minus 100 Celsius, which is pretty cold for combustion).

Hrv
Previously, I was trying to simulate a diffusion Bunsen burner with reactingFoam, and I got the same error, when I checked the domain in paraview, I could see the low temperature where the diffusion started.

Recently I set up a case that was a box, with half of it, full of N2 and half of it full of Ch4, and defined no reaction in the case. all the boundaries are wall, and the starting temperature is 300K. So only mass diffusion happens in this case ( and enthalpy diffusion due to mass diffusion), but when the case is started, I get the same error. Checking the results, shows that when the diffusion happens, the temperature is raised or dropped ( based on ch4 or N2 part). I want to know what causes this. Optimistically the code is right, so this diffusion could be the problem in my cases. Did anyone have the same problem before?
Can anybody tell me how to solve this?
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 12, 2010, 14:19
Default
  #9
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by sahm View Post
Previously, I was trying to simulate a diffusion Bunsen burner with reactingFoam, and I got the same error, when I checked the domain in paraview, I could see the low temperature where the diffusion started.

Recently I set up a case that was a box, with half of it, full of N2 and half of it full of Ch4, and defined no reaction in the case. all the boundaries are wall, and the starting temperature is 300K. So only mass diffusion happens in this case ( and enthalpy diffusion due to mass diffusion), but when the case is started, I get the same error. Checking the results, shows that when the diffusion happens, the temperature is raised or dropped ( based on ch4 or N2 part). I want to know what causes this. Optimistically the code is right, so this diffusion could be the problem in my cases. Did anyone have the same problem before?
Can anybody tell me how to solve this?
Hi, just my two cents.

Usually you encounter instabilities in thermo models at the beginning of the simulations or time step, or when some sudden change happens in the solution, which means when the solution is not converged yet.

A better setup of the case helps a lot, and probably the code could be improved adding some automated check to prevent this kind of instability (something has actually been done in compressible codes for example).

However, to understand what is going on in your case, you should publish an example that can reproduce the problem, so someone can look into it.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   August 12, 2010, 14:38
Default Test Case
  #10
Senior Member
 
sahm's Avatar
 
Seyyed Ali H.M.
Join Date: Nov 2009
Location: Utah
Posts: 107
Rep Power: 16
sahm is on a distinguished road
Alberto
Could you describe this more, Because I`m still thinking in terms of discretization. I did the same thing in Fluent, and there was no problem with any of those two cases.
I did that cube test, because my bunsen burner case has diffusion and this temperature drop still appears even if I have a steady flow. To check the diffusion mechanism in solver, I created that cube with pure diffusion. the problem appears when Its between N2 and a fuel like Ch4, but it did not appear with N2 and O2 or N2 and H2.
So either the formulations in code is wrong -Optimistically it's not- or the discretization methods creates this instability.
I`m still checking the source code to find out how this discretization should be and I`m looking for the enthalpy formulations in books, too see if the code is missing something.
Any Idea with my case setup? If you need to see my case, send an email to me, 'cause I cannot upload it here.
__________________
SAHM
sahm is offline   Reply With Quote

Old   August 12, 2010, 15:21
Default
  #11
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Well, there is a third option :-)

Either the code and the discretization are correct, but you encounter some problem due to the solution being far from convergence. For example, is the code binding variables while iterating? Does the solution process become more robust reducing the time step? Additionally, what does your checkMesh say? :-)

P.S. You should have my email address in your mailbox.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   August 15, 2010, 04:39
Default
  #12
Senior Member
 
Holger Marschall
Join Date: Mar 2009
Location: Darmstadt, Germany
Posts: 125
Rep Power: 19
holger_marschall is on a distinguished road
Send a message via Skype™ to holger_marschall
Heya,

I agree. A minimal working example (showing the problems) would be a good start! Remote diagnosis are mostly too hard otherwise.

EDIT: P.S.: I really dislike the title of this thread, also because its creator needed 4 threads to come to this quite ultimate conclusion

best regards,
__________________
Holger Marschall
web: http://www.holger-marschall.info
mail: holgermarschall@yahoo.de
holger_marschall is offline   Reply With Quote

Old   August 20, 2010, 13:24
Default
  #13
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Short update: the problem was a too large Courant number for the kinetics in the Bunsen case, and the fact reaction was not actually completely off in the cube case.

We talked about this by email with Sahm, and hopefully now his case should run.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   December 5, 2010, 22:15
Default
  #14
New Member
 
Sunny Karnani
Join Date: Apr 2010
Posts: 22
Rep Power: 16
skarnani is on a distinguished road
Hello.
I've been running in to a similar problem as well and I still have not been able to isolate the issue. Out of curiosity Alberto, could you please explain what it means that the reaction was not completely off?

Thank you.
Sunny
skarnani is offline   Reply With Quote

Old   December 5, 2010, 22:24
Default
  #15
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
The reaction model was not disabled in the dictionary, for the case without reaction.

Best,
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 8, 2015, 05:16
Default
  #16
New Member
 
Join Date: Aug 2015
Posts: 17
Rep Power: 10
user10600 is on a distinguished road
Hi guys !


what about now, after 5 years, did OpenFoam become more reliable regarding to Combustion simulation ?

It`s just out of curiosity, I never had to simulate combustion in any of my cases.
user10600 is offline   Reply With Quote

Old   October 3, 2016, 11:24
Default
  #17
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
I am using OF 2.3.1 but still I have the same janaf warning of temperature out of range. Could anyone solve this problem to avoid this warning recently??
sahmed is offline   Reply With Quote

Old   October 3, 2016, 11:46
Default
  #18
Senior Member
 
Alberto Passalacqua
Join Date: Mar 2009
Location: Ames, Iowa, United States
Posts: 1,912
Rep Power: 36
alberto will become famous soon enoughalberto will become famous soon enough
Quote:
Originally Posted by sahmed View Post
I am using OF 2.3.1 but still I have the same janaf warning of temperature out of range. Could anyone solve this problem to avoid this warning recently??
Using OpenFOAM 3 or 4 could be a start.

OF 2.x is the Windows XP of OpenFOAM ;-)
__________________
Alberto Passalacqua

GeekoCFD - A free distribution based on openSUSE 64 bit with CFD tools, including OpenFOAM. Available as in both physical and virtual formats (current status: http://albertopassalacqua.com/?p=1541)
OpenQBMM - An open-source implementation of quadrature-based moment methods.

To obtain more accurate answers, please specify the version of OpenFOAM you are using.
alberto is offline   Reply With Quote

Old   October 3, 2016, 11:56
Default
  #19
Member
 
Sheikh Ahmed
Join Date: Dec 2015
Location: South Carolina, USA
Posts: 88
Rep Power: 10
sahmed is on a distinguished road
Quote:
Originally Posted by alberto View Post
Using OpenFOAM 3 or 4 could be a start.
Do you think the newer versions took care of this issue and solved? Please populate us with more info
sahmed is offline   Reply With Quote

Old   October 9, 2016, 10:49
Default
  #20
New Member
 
Karpenko Anton
Join Date: Aug 2009
Location: Saint-Petersburg
Posts: 4
Rep Power: 16
aspera is on a distinguished road
I use only foam-extended https://sourceforge.net/p/foam-exten...e/ReleaseNotes
because official OpenFOAM intend clipped
aspera is offline   Reply With Quote

Reply

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
Time step size and max iterations per time step pUl| FLUENT 33 October 23, 2020 22:50
IcoTopoFoam case is aborted deepblue17 OpenFOAM Running, Solving & CFD 25 December 2, 2010 14:20
PostChannel maka OpenFOAM Post-Processing 5 July 22, 2009 09:15
Computational time sunnysun OpenFOAM Running, Solving & CFD 5 March 16, 2009 03:32
FSI time YY CFX 0 April 25, 2008 12:38


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