- **Main CFD Forum**
(*https://www.cfd-online.com/Forums/main/*)

- - **how to deal with sharp corner points for compressible simulations?**
(*https://www.cfd-online.com/Forums/main/111333-how-deal-sharp-corner-points-compressible-simulations.html*)

how to deal with sharp corner points for compressible simulations?Dear friends,
Happy new year! I am doing a viscous compressible simulation with simple (square block) geometry. The boundary temperature is fixed. The headache now is for the pressure (or density) at the corner points. I have tried several different ones, like use the continuity equation to update density, to use the mean of two adjacent surface points' pressure etc. But after about 6000 steps, the code always diverges at the corner points (with very large velocity and negative density). Many thanks for your good ideas! |

Hi
I am assuming you have a grid point at the corner , right ? Usually people just update density, update velocity, update energy Now you can calculate the new pressure. Then set the velocity to zero. Are you using a compressible, finite volume approach ? If yes, what is your numerical flux function ? I have a scheme in which I implement boundary conditions in a weak manner even for boundary grid points. I would be interested to see how it performs on your problem. Can you describe your geometry and flow conditions ? |

Quote:
Thanks. The question I raised is how to update the pressure (or density) at the corner points. For boundary points on flat surface, I can use, for instance the continuity equation to update density. But if goes to the corner point, we may see multiple choices (such as the average of two adjacent surface points etc). But different methods have been tried and no one can work well. The simulation I am doing has quite simple geometry: a 2D channel with a square block inside. The flow conditions are: compressible, subsonic inlet, if the outlet is supersonic or not depends on the size of the block. Temperature on the channel surface and block surface are constant. Many thanks if you can provide good ideas. |

Hello,
do you have a node-centred or cell-centred scheme? Usually, if the Mach number is moderate, you should be able to get decent results by updating the equations with the proper fluxes across the boundary -- without any explicitly enforced values (e.g. zero velocity). The problem is that the values (assuming a finite volume scheme) are in the centre of the control volume. Even if you have a node-centred solver, the values are not really on the nodes but in the centres of the corresponding control volumes (sort of a half cell on the boundary). If you enforce no-slip here, you might run into problems. You can still have a no-slip condition, but you need to assume zero velocity on the actual domain border and use a corresponding shear flux for your momentum equations. Having said this, in the past I have used the approach that Praveen sketched in his post and it worked -- problems only appeared when wall functions needed to be implemented. If you have a structured code, however, I would strongly recommend to use cell-centred variables. For an unstructured code, node-centred might be better -- depending on your cell types. Cheers, Oliver |

Quote:
Thanks for your continuous help. For the problem I mentioned I used the node-centered MacCormack scheme. The boundary points are located on the solid surface and thus I must specify the values, especially the density (or pressure). The case is still laminar (no wall function). I found very bad zig-zag profiles. Then try to cure such problem by decreasing time step. But the problem is still there, especially at the corner points. After about 5000 step the density around the corner points (few points away from the corner) became negative. Do you have any good suggestion? Or if you can provide me some simple codes for reference (just the Cartesian grid case) for the viscous compressible flows, that will be really appreciated. Best, Lipo |

Hi Lipo,
I might have an idea what causes your problems: If you use the MacCormack scheme in the standard finite difference formulation, you might have a somewhat degenerated stencil (see picture below). http://dl.dropbox.com/u/10046114/Exc...nerStencil.jpg The red nodes illustrate the stencil for your corner node. The nodes on the boundary (blue circles) will give wrong first derivatives due to the enforced no-slip condition. As a result your viscous flux will be too small and might lead to some weird expansion around the corner... A finite volume scheme would use the green control volume and differentiate between two different boundary contributions for this node. Maybe you could only use differences with the healthy nodes -- this means do not switch between forward and backward difference, but only use the differences into the field. Of course this can lead to stability issues, but it might still work if it is done for those corners only. If I had to write a code for this problem it would be a cell centred finite volume scheme with some kind of upwind flux (Roe, AUSM, van Leer, ...) and Runge Kutta for time integration. 'hope this helps a little. Cheers, Oliver |

I don't think a central difference method can converge without artificial dissipation.
That being said, if your flow is super-critical you probably need to solve the Euler equations coupled rather than uncoupled. Also, if your input subsonic flow's Mach number is high enough, your 2D channel may choke, which requires the correct input and output boundary conditions. Since the flow is viscous, I'm skeptical it really matters how you compute the pressure at the corner since the corner point is imbedded in a boundary layer, (and therefor subsonic). Of course this requires that you throw enough grid points at it. |

All times are GMT -4. The time now is 09:50. |