|
[Sponsors] |
March 16, 2016, 14:44 |
Very strange rhoCentralFoam behavior
|
#1 |
Member
Oleg Sutyrin
Join Date: Feb 2016
Location: Russia
Posts: 41
Rep Power: 10 |
Hi, guys!
I aim to simulate inviscid compressible supersonic (M=5) flow over some complex solid axisymmetric body with rhoCentralFoam v2.3.1. I have some problems with it, so now I test some simpler cases instead: <1> cylindrical analogue of forwardStep (see "stepCyl.jpg") and <2> the same with equal backwardStep behind it ("step2Cyl.jpg"). Meshes are made with gmsh. The grid is 1-layered wedge of 5 degrees wide, the bottom edge is the symmetry axis (not exactly, r=0.001 there). The air flows from left to right in the left part of the flow (U=745 m/s, see rough image of it on "initial.jpg") and is at rest everywhere else. Pressure (~850 Pa) and temperature (~75 K) is uniform. Inlet (left) is fixedValue patch; top and outlet (right) are zeroGradient patches; all others are walls with zeroGrad for P, T and slip for U. The problem is that first case works perfectly well (shockwave generated by velocity gap passes to the right and flow eventually becomes stationary in 2-3 milliseconds), but the second suddenly one breaks down shortly after 0.05 milliseconds (everything becomes "nan"). The only difference (apart from extremely slight mesh differences) is the backward step added in the second case, and it is situated in the area that is completely at rest! At 0.05-0.06msec shockwave is still far to the left of it. I'm completely lost, what may be the problem here? The only thing I know that pressure suddenly becomes negative at a single cell or face, but I don't know which one - can't see it in the paraView or Tecplot. If you want to test it, cases and meshes may be downloaded here: tests.zip. "1.lay" files are layouts for Tecplot 360, in case you prefer it. |
|
March 20, 2016, 03:26 |
|
#2 |
Member
Oleg Sutyrin
Join Date: Feb 2016
Location: Russia
Posts: 41
Rep Power: 10 |
Update:
I've redone the mesh with blockMeshDisct as follows: PHP Code:
|
|
March 20, 2016, 07:36 |
|
#3 |
Member
Oleg Sutyrin
Join Date: Feb 2016
Location: Russia
Posts: 41
Rep Power: 10 |
Another update:
Exactly the same mesh as in blockMeshDict, but generated in gmsh using transfinite lines (no surface at r=0.001 now) = solving OK. Nearly the same gmsh mesh (but without transfinite lines) with almost uniform cell size = solving OK. New non-uniform gmsh mesh = solving OK. In conclusion, I think there are two possible answers here: 1. Problem may have been in my naive cutting out of the symmetry axis (i. e. using r=0.001 as bottom edge). It generates very thin wall-boundary faces that successfully pass checkMesh utility, but still lead to some instabilities. 2. Or the problem was in some mesh irregularity near the outlet (see the bottom right corner of step2Cyl.jpg) - new non-uniform mesh was generated slightly different and hadn't this irregularity. To my intuition, such irregularity shouldn't play any role in the area that is at rest (U =(0 0 0)), but who knows... After this testing I have some ideas on how to approach mesh generating and initial conditions for my more complex simulations. So posting this here wasn't useless after all, thank you guys |
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
strange pressure behavior using interFoam for 3D micro-channel | red.yxg | OpenFOAM Running, Solving & CFD | 4 | January 31, 2020 15:18 |
strange processor boundary behavior with linearUpwindV | akimbrell | OpenFOAM Bugs | 19 | April 2, 2018 07:42 |
[surface handling] surfaceFeatureExtract strange behavior | wc34071209 | OpenFOAM Meshing & Mesh Conversion | 0 | March 11, 2014 09:22 |
Strange rhoCentralFoam behavior after restart... | vkrastev | OpenFOAM Bugs | 27 | November 19, 2013 12:04 |
mpirun strange behavior | Djub | OpenFOAM Running, Solving & CFD | 11 | November 20, 2012 02:55 |