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

No shock in airfoil 0012 case despite of Mach number exceeds 1

Register Blogs Community New Posts Updated Threads Search

Like Tree4Likes

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 25, 2011, 09:57
Default
  #41
New Member
 
Join Date: Aug 2011
Posts: 28
Rep Power: 15
schwermetall is on a distinguished road
Hi ndr,
no I didn't resolve the Boundary layer with y+ = 1.The reason is, that it would take ages. I now got the possibility to run my cases on 6 processors and simulating one second of flow takes 3,5 days.

Be careful, if you use wallfunctions I believe your y+ should be well above 30 !

It is very likely that the instability we observe here is a so called checkerboard instability, which is a decoupling of velocity and pressure. Unfortunatelly the best means would be a staggered grid, which is - as far as I know- not possible in OF at the moment. I can give you another possibility to try: use faceLimited instead of cellLimited, depending on the case that changes again a lot.

My results also still suffer from slight oscillations, but the values are are not smeared. The problem I have at the moment is, that the shocks keeps moving backwards with increasing angle of attack.

regards

P.S.: what just comes to mind: we found that using snappyHexMesh can cause problems when you are at high reynoldsnumbers. The reason seem to be little trinagulars (tetraeder) that emerge from the snapping process. So if you have any object in your channel be careful at high reynoldsnumbers. We're using gmesh instead.
schwermetall is offline   Reply With Quote

Old   October 26, 2011, 04:05
Default
  #42
ndr
New Member
 
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17
ndr is on a distinguished road
Hi,

regarding the wall functions for the standard setup y+ should be around 30 or higher, but I found this post quite useful:

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

It seems that OF is able to handle 1 < y+ < 30 as well, because the so-called Spalart-Allmaras wall function despite its name seems to be some kind of Spalding composite wall function.

I'm doing my meshes (which use structured hexaeders) with ICEM, and they have been tested using other CFD codes as well, so I can rule out the mesh as a possible origin of the fluctuations.

As far as I understand faceLimited schemes are more dissipative than cellLimited schemes - please correct my if I'm wrong. So when changing to a more dissipative scheme the fluctuations seem to diminish, but at least for my case also does the accuracy of the solution. Up to now the cellLimited scheme yields the best results.

What really surprised me was the fact that all fluctuations completely vanish when I was using no wall functions, because if this is a kind of checkerboard phenomenon it should occur independent of the grid resolution, shouldn't it? Just out of curiosity I used my grid for y+ = 15 and did two runs with exactly the same numerical schemes and setup, only one with wall functions and one without. I know the resolution in theory is too coarse for this no-WF setup, but it showed exactly the same behaviour as y+ = 1: No fluctuations anymore.

Do you know some more people dealing with this fluctuation phenomenon? Because if it's some kind of numerical checkerboard instability or if it has do with the wall functions this should be quite a common problem for all users of rhoCentralFoam...

Regards

Last edited by ndr; October 26, 2011 at 04:54.
ndr is offline   Reply With Quote

Old   October 26, 2011, 06:57
Default
  #43
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Quote:
Originally Posted by ndr View Post
What really surprised me was the fact that all fluctuations completely vanish when I was using no wall functions, because if this is a kind of checkerboard phenomenon it should occur independent of the grid resolution, shouldn't it? Just out of curiosity I used my grid for y+ = 15 and did two runs with exactly the same numerical schemes and setup, only one with wall functions and one without. I know the resolution in theory is too coarse for this no-WF setup, but it showed exactly the same behaviour as y+ = 1: No fluctuations anymore.

Do you know some more people dealing with this fluctuation phenomenon? Because if it's some kind of numerical checkerboard instability or if it has do with the wall functions this should be quite a common problem for all users of rhoCentralFoam...
These are all interesting considerations. It seems like the wall functions are the source of pressure fluctuations in your case, but for me it's quite hard to give a sound-logical explanation for this...At the moment I'm doing some 2D computations with rhoCentralFoam (1.7.1 version of the solver, modified to account for turbulence) for an internal transonic flow case, represented by a throttle valve in a nearly closed position: sampling the pressure distribution around the valve, I didn't see any fluctuations as the one reported by you and schwermetall. For computational time reduction I also use wall functions, with a max y+ value of about 100 for the channel walls and around 50 for the valve. I've tried different turbulence models (Spalart-Allmaras, k-omega SST, standard k-epsilon) as well as the SpalartAllmaras (actually Spalding's) wall function, but no pressure oscillations in any case...For more completeness, I have to underline that my case has an hybrid quad-tria mesh (graded quads near the solid surfaces, trias elsewhere) and that, also, the turbulent kinetic energy and turbulent viscosity generation in the valve wake are very strong, thus my runs are quite diffusive in nature. Finally, as interpolant functions for rho, U and T I'm using the Gamma scheme instead of the vanLeer default one (but results with the vanLeer scheme are very similar).

Best

V.
vkrastev is offline   Reply With Quote

Old   October 27, 2011, 11:31
Default
  #44
New Member
 
Join Date: Aug 2011
Posts: 28
Rep Power: 15
schwermetall is on a distinguished road
Quote:
As far as I understand faceLimited schemes are more dissipative than cellLimited schemes - please correct my if I'm wrong
Thats what I heared too.

I'm now trying to run rhoCentralFoam in inviscid mode. The fluctuations are not too big in my case, but the main problem I have is that, the shock on my airfoil is too far downsstream. Has anyone a suggestion how to get a better shock position?

regards
schwermetall is offline   Reply With Quote

Old   October 27, 2011, 11:47
Default
  #45
ndr
New Member
 
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17
ndr is on a distinguished road
Hi schwermetall,

when I did the test runs with different grids the results showed that the positions of the reflected shock waves in the channel varied depending on the grid resolution. For example compared to a commercial code the positions of the shocks were too far downstream when I used a coarse grid, but with a finer grid also the reflected shocks moved upstream.

I don't know if the same holds true for a single shock on your profile, but it may be worth a try to change the grid resolution a bit and see what happens. You don't even have to go down to y+ = 1, I observed this kind of shock shifting already when changing from y+ = 60 to y+ = 30 without any other changes in the setup. The numerical setup, i.e. the schemes, had no influence on the shock positions at least for my case.

Regards
ndr is offline   Reply With Quote

Old   October 27, 2011, 11:57
Default
  #46
New Member
 
Join Date: Aug 2011
Posts: 28
Rep Power: 15
schwermetall is on a distinguished road
Quote:
the schemes, had no influence on the shock positions at least for my case
I would support that. The Schemes only influenced the fluctuations.

When it comes to cell size of the mesh, I'm trying a very coarse mesh in inviscid mode at the moment and the shock is off 10%. That's the same for a the fine grid. The coarse grid has 40 000 cells whereas the fine has 140 000 cells.

So I could probably conclude that the shock position is at least not wrong due to the wall model.

Maybe I also try to make the wall nearest cells smaller as you suggested, just to rule that out for sure.

Any other suggestions?
schwermetall is offline   Reply With Quote

Old   October 28, 2011, 05:02
Default
  #47
ndr
New Member
 
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17
ndr is on a distinguished road
Hi,

I'm still testing different combinations of settings and grids, but up to now the only thing shifting the shock positions was the wall resolution. I attached a picture of my wall pressure distribution for three different grids and as you can see the positions of the reflected shock downstream of about x = 0.6 change quite a lot.

Compared to other codes the results for y+ = 15 are the most accurate, but they still show the pressure fluctuations in the first part of the channel.

Another possibility could be to change the time discretization to a higher order scheme, for example Crank-Nicolson, but for my case this configuration is not running stable at all.
Attached Images
File Type: png Wallpressure.png (13.3 KB, 56 views)
ndr is offline   Reply With Quote

Old   November 2, 2011, 06:53
Default Have you checked the stagnation parameters?
  #48
New Member
 
Min Thaw Tun
Join Date: Mar 2011
Location: Kaluga, Russia
Posts: 19
Rep Power: 15
Technoyoungman is on a distinguished road
Send a message via Yahoo to Technoyoungman
Dear Schwermetall,
After the simultion, did you happen to check the total pressure and total temperature? I think u should check. I would like to know the result. When I run supersonic flow, OpenFoam cannot give the correct stagnation pressure drop, instead rise in stagnation pressure after shock wave.
Technoyoungman is offline   Reply With Quote

Old   November 2, 2011, 09:48
Default
  #49
ndr
New Member
 
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17
ndr is on a distinguished road
Hi,

I had a look at my total pressure within the channel and I could not observe any strange behaviour when calculating p_{tot} using the isentropic formulation:

p_{tot}=p\cdot(1+\frac{\gamma-1}{2}Ma^{2})^{\frac{\gamma}{(\gamma-1)}}

However, when using Bernoulli's equation I get a pressure rise behind the shock waves. But in my opinion Bernoulli can not be applied here as the total pressure has to be evaluated for each cell and the original equation is only valid along a 1D-streamline.

@schwermetall:

Did you have any success with your shock positions? I kept testing some more cases with another solver and it showed a similar behaviour: Depending on the near wall resolution the positions shifted considerably. However, I still don't have an explanation why this happens...

Regards
ndr is offline   Reply With Quote

Old   November 2, 2011, 13:30
Smile
  #50
New Member
 
Min Thaw Tun
Join Date: Mar 2011
Location: Kaluga, Russia
Posts: 19
Rep Power: 15
Technoyoungman is on a distinguished road
Send a message via Yahoo to Technoyoungman
Hi Nils Droeske
Quote:
Originally Posted by ndr View Post
Hi,

I had a look at my total pressure within the channel and I could not observe any strange behaviour when calculating p_{tot} using the isentropic formulation:

p_{tot}=p\cdot(1+\frac{\gamma-1}{2}Ma^{2})^{\frac{\gamma}{(\gamma-1)}}

However, when using Bernoulli's equation I get a pressure rise behind the shock waves. But in my opinion Bernoulli can not be applied here as the total pressure has to be evaluated for each cell and the original equation is only valid along a 1D-streamline.

@schwermetall:

Did you have any success with your shock positions? I kept testing some more cases with another solver and it showed a similar behaviour: Depending on the near wall resolution the positions shifted considerably. However, I still don't have an explanation why this happens...

Regards
On Youtube you can see my simulation of intake system of aircraft with 500m/c velocity, 100kPa pressure and 300K temperature. Velocity at compressor inlet is 120m/c. Solver is rhoCentralFoam. The other solvers rhopSonicFoam and rhoSonicFoam didn't work. I don't know why. Floting point error!! Only velocity distribution is shown in video. Static pressure raises after shock but more than it should be. So I checked the total pressure and total pressure also rises. So I checked the tutorial of openFoam "Wedge15M5". The same result occurs. So I assume that it is the bug of openFoam in supersonic flow.There is my post about Wedge15M5 http://www.cfd-online.com/Forums/ope...le-urgent.html

About the grid? Actually using the fine gird should get better results. But When I run the intake with dense mesh, I found that the last one cell at the compressor inlet was calculated wrongly and total pressure has risen to maximum impossible value. I really don't get it.

You can't use Bernoulli's equation on compressible flow.

Last edited by Technoyoungman; November 2, 2011 at 14:22.
Technoyoungman is offline   Reply With Quote

Old   November 8, 2011, 14:11
Default
  #51
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Hi all,
if some of you have encountered accuracy problems with rhoCentralFoam, take a look at the following tread (especially post #11)


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

Regards

V.

Last edited by vkrastev; November 8, 2011 at 17:03.
vkrastev is offline   Reply With Quote

Old   November 9, 2011, 07:07
Default
  #52
New Member
 
Join Date: Aug 2011
Posts: 28
Rep Power: 15
schwermetall is on a distinguished road
Hi all,
sorry for not responding for while.

@Technoyoungman:
Yes I did check the total pressure, but as I didn't made a picture back then, I can't tell you anything at the moment. I have to wait until I have access to good hardware again --> my computer crashed and I'm not at the company at the moment. But I'll post it asap
The static pressure overshooted the experimental results, no matter what I tried.

@ndr:
Unfortunatelly I didn't have success with the shock position. It alway remained 15% too far downstream
I even tried to run rhoCentral Foam in inviscid mode and the result was nearly the same.

Had any of you sucess with vkrastev's hint on the bug ?

regards
schwermetall is offline   Reply With Quote

Old   November 11, 2011, 03:15
Default
  #53
ndr
New Member
 
Join Date: Aug 2009
Location: Stuttgart, Germany
Posts: 20
Rep Power: 17
ndr is on a distinguished road
Hi schwermetall,

I implemented the changes into my rhoCentralFoam version and it improved the restart behaviour considerably. However, it had absolutely no influence on shock positions and flow profiles. As far as I understand in the old version there was simply a redefinition of phi within the rhoCentralFoam.C file while the variable phi had already been defined in createFields.H. So now this is corrected, but it seems this really only affects restarting.

I did some more work on the wall function issue and found another strange phenomenon: When comparing the rhoCentralFoam solution to other solvers it seems that the boundary layer thickness is not correctly predicted for every mesh resolution. Only if no wall functions are used (k-\omega-SST and y^{+}\leq 2) the thickness is more or less correct, but when coarsening the mesh (with wall functions) the boundary layer gets thinner the coarser the mesh is. So for y^{+}=15 and the Spalding WF setup it is about 2/3 the normal size, for y^{+}>30 and normal WF setup it is only about 20% of the normal thickness. I think because of this difference in boundary layer thickness also the shock reflections at the wall are shifting for my case when changing the grid resolution.

Does any of you have any idea why this might be? I know there have been considerable changes in the wall functions for OF 2.0 (at the moment I'm still using 1.7.x), but can these changes really that important for rhoCentralFoam?

Regards
ndr is offline   Reply With Quote

Old   November 11, 2011, 06:00
Default
  #54
Senior Member
 
Vesselin Krastev
Join Date: Jan 2010
Location: University of Tor Vergata, Rome
Posts: 368
Rep Power: 20
vkrastev is on a distinguished road
Quote:
Originally Posted by schwermetall View Post
Thats what I heared too.

I'm now trying to run rhoCentralFoam in inviscid mode. The fluctuations are not too big in my case, but the main problem I have is that, the shock on my airfoil is too far downsstream. Has anyone a suggestion how to get a better shock position?

regards
I know that you had problems with the shock position also in the viscous turbulent runs, but I don't think that you should use the inviscid simulation as a comparison with the experimental data. Anyway, what is your experimental database? I know that in some cases the angle of attack should be corrected in the simulations to take into account the blockage effetcs in the experimental wind tunnel facility (see for instance "Recent experience with different turbulence models applied to the calculation of flow over aircraft components", L. D. Kral, Progress in Aerospace Sciences 34, 1998, pp. 481 541)

V.

ps-also in the case of zero angle of attack, the blockage effects could influence the shock position; in addition, you should be careful about the BL condition at the leading edge of your airfoil: if no artificial "tripping" is introduced in the experiments, in the first part of the airfoil surface the BL is more likely laminar, and this has an influence on the shock position too...remember that using wall functions you are assuming a fully-turbulent BL over the whole airfoil (but it would be difficult to capture the laminar-to-turbulent transition also with most of the more commonly used low-Re turbulence models)

Last edited by vkrastev; November 11, 2011 at 06:11. Reason: adding ps
vkrastev 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
mach number and selection of the fluent solver turbinesv FLUENT 4 April 24, 2011 01:14
How to find Mach Number Tobias FLUENT 2 October 18, 2005 10:59
non-dimensional analysis in Fluent Endee FLUENT 8 September 7, 2005 17:16
Inviscid Drag at subsonic, subcritical Mach # Axel Rohde Main CFD Forum 1 November 19, 2001 13:19
Strouhal number of an airfoil Tim Franke Main CFD Forum 0 April 4, 2000 04:10


All times are GMT -4. The time now is 17:28.