Fluctuating Pressure Fields (LESpisoFoam)
Hi,
The Case: I am testing on the pitzDaily ("tutorials/incompressible/pisoFoam/les/pitzDaily") case with time varying velocity inlet conditions. I have extruded the grid to a large 3D case. A time varying velocity profile is imposed at the inlet (using the timeVaryingMapped type). When the variations are very small, the case converges and the results time series all look good. The Problem: When the velocity profiles and the inlet have larger changes in time, the pressure fields fluctuate in time: e.g: from t=0 to t=1 the whole domain has negative pressures. From time t=2 to t=3 the whole domain has positive pressures and so on. Note that the velocity fields look normal and have the expected values. Do you have any thoughts on this strange behavior? Thanks. 
What numerical scheme are you using for the convective terms in the momentum equations? Sometimes when I get a fluctuating pressure field in LES simulations I have to use the blended scheme (blend of CD and first order upwind) instead of pure central differencing. This adds additional numerical dissipation and you have to be careful not to add to much. However, I have never had the exact problem that you are having, normally when my pressure field is corrupted, then the velocity field is as well. Maybe you have to decrease the time step when you have larger fluctuations since the CFL number in the cells located at the inlet will be higher.

Quote:
Timestep: i have used extremely small timesteps and also normal timesteps (Courant Number of about 0.5)....but the problem persists... Discretization Scheme: divSchemes { default none; div(phi,U) Gauss linear; div(phi,k) Gauss limitedLinear 1; div(phi,B) Gauss limitedLinear 1; div(phi,nuTilda) Gauss limitedLinear 1; div(B) Gauss linear; div((nuEff*dev(T(grad(U))))) Gauss linear; } I will try them with 0.5 (blended schemes with more weight for the upwind part...). I hope it works this time! I'll post here whether it makes any change or not. Thanks. 
Did you acquire any improvements in the simulation? I'm trying to get an LES simulation running using LES as well. However, I don't know if the blended scheme mixes second order Central Differencing scheme with first or second order Upwind Scheme...

Quote:
Have you solved the problem? I've got the same unphysical pressure functuation. I'm using turbulentInlet BC combined with a velocity profile at the inflow boundary. The velocity field looks normal but the pressure... 
Quote:
But I will post an update when I make it right! 
Even the original pitzDaily case has the same problem. I have tried more number of PISO corrections, and also limitedLinear, filteredLinear schemes.
Still no lock :( As soon as you remove velocity fluctuations at the inlet, the case runs smooth! Does not matter if you implement the velocity by the "turbulentinlet" or just map them directly...... Any ideas? You can test it your self and run the pitzDaily tutorial in incompressible/pisoFoam/les/pitzDaily >check the pressure field instead of U and you will see the fluctuations! 
2 Attachment(s)
Hi, i've also a pressure issue when using pisoFoam. Although its a completely different case. Im simulating flow around airfoil and using turbulence model komegaSST. I've checked all my numerical schemes, tried more loops in fvSolution, set up the Co<0.5. Mesh is good. What i got from Residuals plot is partially not acceptable. Following you can see that all other parameters convergence beside pressure. In addition the pressure run more than the Iterations that i was setting (20000).
what will/are this pressure going to tell us? is anyone actually encounter non fluctuated pressure when using pisoFoam? Thank You 
Hi All,
Well I am stuck with the same problem. I am simulating an externet cylinder flow. Please bear with me I will go through it thorougly to describe what I have done. 1 My grid is not bad quality. The extents of the domain are 15 times dia meter in x and y direction. I have 1 outlet, 1 inlet, cylinder wall and cylic BC in the normal direction to flow (no highfi science). 2 I successfully ran the RANS simulation without wall functions (I prepared a grid for LES, with aim to have y+<1). Drag and Strouhal number looked fine. Residuals didn't converge properly. But I thought may be that's because of the unsteadiness in the flow. As we can observe that residuals don't converge very well for PitzDaily as well. 3 I decided to do an LES simulation on the same grid (from previous RANS run) with the same boundary conditions (no turbulentInlet BC, just a fixedValue BC for velocity) and I failed to get the expected behavior of pressure. 4 I created a new grid with more grid points (just to be sure that my grid resolution is not causing problems). But I failed again. 5 I changed the upper and lower Bc of my domain slip wall, (as my boundaries are far enough I thought may be adding slip walls would add to the stability of the case) but this didn't help either. 6 I was using freeStream boundary condition at the outlet which was working very well for me at the outlet, and now I thought about doing what has been done in pitzDaily for outlet and this didn't help either. I don't know what to do, but I am trying. If something works then the question will arise why did it work?. :p Anyways I am a bit relieved to know that I am not the only one stuck with this problem. Again I would request everybody to share their experience and the solution if they reach any proper results. Regards, Awais 
Another info which I forgot is that I am using rhoPimpleFOAM.
Even thought my flow doesn't come under the category of being called compressible flow. But the I will need to study heat transfer in flow as well. That is why I am considering a compressible flow. Regards, Awais 
The one question is that why the pitzdaily case (pressure field) behave this way. Something is not right. Why OpenFOAM Ltd. is not addressing this issue? People has been facing this for a long time.
Jubayer 
Hi Jubayer,
This is not the problem with oneEqEddy SGS model. In fact its the problem with the turbulent inlet BC in the pitzDaily tutorial. Somehow the turbulent inlet BC adds random fluctuations which is not correct. I have used oneEqEddy model with other cases and it works fine. Regards, Awais 
Hi Awais,
I don't think its the turbulent inlet BC itself. I have tried to use real time history data from the wind tunnel into the simulation. I am getting the same pressure fluctuations. Seems like anything other than steady inlet is creating pressure fluctuations. Jubayer 
Hi Jubayer,
May be your are right. But I didn't observe any problem with oneEqEddy and Smagorinsky for a simulation of flower over a cylinder. That is why I thought there is nothing wrong with the oneEqEddy model. One other thing I could think off is that the pitzDaily is 2D tutorial, may be you should try to extend the same case to 3D. With some perriodic BC in spanwise direction. That might remove your doubts. LES should be strictly a 3 dimensional simulation. 2D you can't really capture all the flow phenomena associated with large eddies. Whenever you run a 2D LES, openFOAM always generates a warning that case is 2D. Regards, Awais 
Hi Awais,
Actually the case that I mentioned is a 3D simulation (Flow inside an empty 3d box, like a wind tunnel) Jubayer 
I have submitted a ticket to OpenFOAM. Let's see what they reply. Issue ID number 0000729
Jubayer 
Quote:
Hi Ali, glad to hear similar voice on the forum. I am wondering whether you have solved that problem. If yes, can you give me some tipes? That would be helpful. I am trying to do similar simulation but it is a DNS turbulent pipe flow, as I described in the other post: I am doing DNS of heated pipe flow (one phase) with OF 2.2.2. The solver is buoyantpimplefoam. The pipe diameter is 2mm and length of 30D. I use Inflow Generator as inlet U BC (zeroGradient for p_rgh), convective BC (fixedValue for p_rgh) as outlet U BC. On the wall is fixedValue for U and fixedFluxPressure for p_rgh. Mesh for pipe is O type. Total mesh number is 16 Mio. (y1 plus 0.15 (y1 under 1e6m)), time step is about 2.5e5. The simulations is running but I observed that solving implicit pressure equation p_rgh withg PCG solver costs extremly high iterations (about 3000). Even with GAMG, the number of iteration reduce, but the simulation time is not shorter. Can anyone tell me the reason? Thanks. Code:

Hi everybody,
Tanzil said that: Quote:
I suggest you all to check that which pressure residuals (initial/final) did you plot? Regards, Mostafa 
Quote:
thank you for your reply. I do not know about his situation. But what I mean is the number of iteration of solving pressure equation every time, as I show in the pasted code. Even in my simple DNS pipe flow (D=2mm, L=5D, Re5400, cyclic BC) using pimpleFoma without heating, the number of iteration of solving pressure equation is still high, between 200 to 500. Code:

Quote:
that's a part of solution. you should plot the last initial pressure, I think. Code:
cat log  grep 'Solving for p'  cut d' ' f9  sed n 'p;N;N;N;N'  tr d ','" title 'p' with lines GAMG: Solving for p, Initial residual = 0.193462, Final residual = 1.37372e05, No Iterations 8 The 9th field in this example would be the number 1.37e05. (Fields are seperated by a spare field, this is defined by: "by cut d' '") Therefore you have to check your logfile and decide which field you want to plot. In the normal case this would be the 9th (> f9). The number of "N" you have to write is determined by the number of iterations for p per timestep. In my case GAMG iterated p three times, so I have to ignore two iterations and write two Ns. In your case, p is iterated four times, so you should writes three Ns. hope this can help you p.s: 2 are you solving the channel flow using LES? can you share your results with me? I have some problems when I'm using a finer mesh! Regards, Mostafa 
All times are GMT 4. The time now is 19:18. 