|
[Sponsors] |
February 3, 2010, 15:41 |
SimpleFoam : LowRe vs Wall Functions
|
#1 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Hello,
I'm currently trying to run a simpleFoam case with & without the use of wall functions. The problem is : I fix the pressure drop to match a certain mass flow. Here I fix it to 30 so : p_inlet = fixedvalue 30, p_outlet= fixedvalue 0 The simulation seems to run fine on one geometry but not on the other and I don't understand why... The two geometries are : One with "short legs" (see pictures below) and one with "long legs" to have a developed flow. The geometry with short legs give the same results with the LowRe model (without wallfunction) and the HighRe model (with wallfunctions) : Pfield without wallfunction (LowRe) http://yfrog.com/iypressurefieldp Ufield without wallfunction (LowRe) http://yfrog.com/i3velocityfieldp Pfield with wallfunction http://yfrog.com/jvpressurefieldp Ufield with wallfunction http://yfrog.com/i3velocityfieldcp Whereas the geometry with long leg gives weird results (numerical values & flow geometry) for the pressure with the two models : Pfield (LowRe) http://yfrog.com/3mpressurefieldp Ufield (LoweRe) http://yfrog.com/58velocityfieldp Pfield(HighRe) http://yfrog.com/58pressurefieldp Ufield(HighRe) Can someone give me a hint where I could go wrong with my simulation and why do I get such changes from just changing the geometry? Thank you very much. |
|
February 4, 2010, 06:02 |
|
#2 |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi GearB0x,
could you upload your boundary conditions? Espacially what are your velocity bc's at the inlet and outlet. Regards Thomas |
|
February 4, 2010, 09:55 |
|
#3 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Here are my Boundary Conditions for the LowRe model (without wall functions) :
For p : Code:
dimensions [0 2 -2 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type fixedValue; value uniform 30; } outlet { type fixedValue; value uniform 0; } fixedWalls { type zeroGradient; } frontAndBack { type empty; } } Code:
dimensions [0 1 -1 0 0 0 0]; internalField uniform (0 0 0); boundaryField { inlet { type zeroGradient; } outlet { type zeroGradient; } fixedWalls { type fixedValue; value uniform (0 0 0); } frontAndBack { type empty; } } Code:
dimensions [0 2 -1 0 0 0 0]; internalField uniform 0; boundaryField { inlet { type calculated; value uniform 0; } outlet { type calculated; value uniform 0; } fixedWalls { type zeroGradient; } frontAndBack { type empty; } } Code:
dimensions [0 2 -2 0 0 0 0]; internalField uniform 0.3328; boundaryField { inlet { type fixedValue; value uniform 0.3328; } outlet { type zeroGradient; } fixedWalls { type fixedValue; value 0.00000001; } frontAndBack { type empty; } } Code:
dimensions [0 2 -3 0 0 0 0]; internalField uniform 0.3676; boundaryField { inlet { type fixedValue; value uniform 0.3676; } outlet { type zeroGradient; } fixedWalls { type fixedValue; value 0.00000001; } frontAndBack { type empty; } } |
|
February 5, 2010, 11:57 |
|
#4 |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi Gearb0x,
I think for the nut at the wall you should use calculated, too. But that shouldn't be the problem. How good are the residuals? |
|
February 6, 2010, 03:56 |
|
#5 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Hello,
I'll try with calculated and see if that changes anything, I'll let you know. Residuals were around 10^-5 if I remember. How can I check/plot them? I tried to run the simulation for 3000, 6000, 10000 and it doesn't seem to reach a steady state for the Low-Re model. The High Re achieve steady state. |
|
February 6, 2010, 05:05 |
|
#6 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
I've tried with nut = calculated @wall
it still gives weird results, even wost because now my pressure field is totally symmetrical ... :s Is it possible that the mesh is too/not enough fine? Could that give wrong results? |
|
February 10, 2010, 11:58 |
|
#7 |
Senior Member
Join Date: Apr 2009
Location: Karlsruhe, Germany
Posts: 104
Rep Power: 17 |
Hi Gearbox,
start a simulation with standard bc's for turbulent incompressible flow. Inlet: U,k,epsilon field fixedValues, p zeroGradient Outlet: U,k,epsilon zeroGradient, p fixedValue nut everywhere calculated for low-reynolds-models and look if everything works here fine...to be sure your mesh is okay. best regards |
|
February 10, 2010, 19:03 |
|
#8 |
Senior Member
Join Date: Nov 2009
Posts: 111
Rep Power: 17 |
Thanks for the hint!
Apparently the mesh was the problem since now I get "nice" results In fact, the grading was wrong : it switched between "fine" and "coarse" part too abruptly. Best regards |
|
June 15, 2018, 17:33 |
|
#9 |
Senior Member
Reviewer #2
Join Date: Jul 2015
Location: Knoxville, TN
Posts: 141
Rep Power: 11 |
Hey,
Just curious which low Re k epsilon formula does this setting enable? Thanks! |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
help with wall functions | Nick Georgiadis | Main CFD Forum | 10 | January 17, 2017 11:03 |
Errors running allwmake in OpenFOAM141dev with WM_COMPILE_OPTION%3ddebug | unoder | OpenFOAM Installation | 11 | January 30, 2008 21:30 |
Wall functions | tutlhino | OpenFOAM Pre-Processing | 0 | July 2, 2007 06:04 |
Multicomponent fluid | Andrea | CFX | 2 | October 11, 2004 06:12 |
When I use the wall functions....! | maximus | Main CFD Forum | 7 | January 20, 2003 10:35 |