|
[Sponsors] |
January 31, 2013, 10:09 |
rhoSimpleFoam div(phi,k/K) 2.1.x 2.0.x
|
#1 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 15 |
Dear Foamers,
I am having trouble with a rhoSimpleFoam case which is running under 2.0.x without a problem. If I try to run this case under 2.1.x I am gettin the Fatal Error: Code:
--> FOAM FATAL IO ERROR: keyword div(phi,K) is undefined in dictionary thx martin |
|
January 31, 2013, 10:24 |
|
#2 |
Senior Member
Join Date: Nov 2009
Location: Michigan
Posts: 135
Rep Power: 17 |
something is missing in fvSchemes
It might also be a missing comma or a { Try giving a default scheme for div |
|
January 31, 2013, 10:42 |
|
#3 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 15 |
my fvSchemes::divSchemes looks like that:
Code:
divSchemes { default none; div(phi,U) Gauss upwind; div(phi,h) Gauss upwind; div(phi,k) Gauss upwind; div(phi,epsilon) Gauss upwind; div(phi,omega) Gauss upwind; div(U,p) Gauss linear; dic(phi) Gauss linear; div((muEff*dev2(T(grad(U))))) Gauss linear; } |
|
January 31, 2013, 11:06 |
|
#4 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
The formulation of the energy equation has changed from 2.0.x to 2.1x. In the later one, the divergence on the kinetic energy K is part of it. That's why you need div(phi,K) in your fvSchemes. See line 8 of the hEqn.H file:
Code:
- fvc::div(phi, 0.5*magSqr(U), "div(phi,K)") |
|
February 4, 2013, 03:43 |
|
#5 |
Member
Martin
Join Date: Nov 2011
Posts: 35
Rep Power: 15 |
Thank You very much "maHein"!
|
|
February 20, 2015, 10:12 |
|
#6 | ||
New Member
Eugen
Join Date: Sep 2014
Posts: 18
Rep Power: 12 |
Quote:
Code:
div(phi,k) bounded Gauss upwind; I get the following errormessage: Quote:
|
|||
February 20, 2015, 11:01 |
|
#7 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
It is a capital "k" in your warning: div(phi, K).
|
|
February 23, 2015, 02:20 |
|
#8 |
New Member
Eugen
Join Date: Sep 2014
Posts: 18
Rep Power: 12 |
That's why i'm asking here in this thread. I copied the fvSchemes without any edit from the tutorial. I can run the tutorial but when i try to run my own case with the same fvSchemes the solver complains. Shouldn't the same message appear with running the tutorial case?
|
|
February 24, 2015, 04:32 |
|
#9 |
Member
Join Date: Jun 2012
Posts: 76
Rep Power: 14 |
You have to check whether you use sensibleEnthalpy or sensibleInternalEnergy in your thermodynamicProperties. This changes the form of the energy equation and thus introduces different terms such as div(phi,K).
|
|
February 24, 2015, 04:52 |
|
#10 |
New Member
Eugen
Join Date: Sep 2014
Posts: 18
Rep Power: 12 |
Thank you very much.
Bad that i didn't see the difference in my thermophysical Properties before. I should have a look to the different formulations. |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
transsonic nozzle with rhoSimpleFoam | Unseen | OpenFOAM Running, Solving & CFD | 8 | July 1, 2022 07:54 |
Pressure instability with rhoSimpleFoam | philipp. | OpenFOAM | 13 | October 30, 2016 04:39 |
Installation on Ubuntu 12.04 LTS | samiam1000 | OpenFOAM Installation | 11 | May 26, 2012 06:54 |
Transonic rhoSimpleFoam Equations | eric.m.tridas | OpenFOAM | 3 | January 25, 2012 11:52 |
Problem with rhoSimpleFoam | mecbe2002 | OpenFOAM | 3 | April 11, 2010 01:54 |