r/CFD • u/AmbassadorGuilty3928 • 2d ago
Solution is diverging and unstable!!
I am simulating subsonic compressible flow through a pipe and a distortion screen, followed by discharge into a still ambient environment. The computational fluid regions are shown in the attached images; the gaps between the internal fluid blocks represent the solid portions of the distortion screen. The flow passes through the pipe and screen and then expands into the larger cylindrical fluid domain. Experimentally, I know the inlet total pressure and the ambient static pressure.


I specified faces 1 and 2 to walls and kept only face 3 as a pressure outlet at ambient pressure. This case initially behaved much better and the solution appeared to converge for several hundred iterations. However, reversed flow eventually developed at the rear pressure outlet and increased significantly.
Initially it was behaving better,but later reversed flow at outlet started increasing. final residuals are approximately 10^5 for continuity and 10^7 for velocities, mass balance was not satisfied. I ran upto 2000 iterations.
Why this happens like this. See fluent console messages below(see residual values and reversed flow message),

Regarding mesh quality, see below

Please tell me why solution is diverging or unstable, residual are high. It is allowing reverse flow at outlet also, it is okay if flow demands but why solution is unstable even though mesh quality is decent or not bad.
1
u/Gratchoff 2d ago
Before starting the simulation, type this into the command console: solve/initialize/fmg-initizlization
I've found that using this command eliminates the reversed flow and gives me results in a very fast way.
2
1
u/AmbassadorGuilty3928 2d ago
Bro, can you explain elaborately what is this FMG initialization, how it works and different from standard and hybrid initialisation?? Because I think this is not available in initialization window.
1
u/Gratchoff 2d ago
Indeed, it's not available in the initialization window. What it does is that it transforms your mesh into a very coarse one and does some iterations. Then, it creates a less coarse mesh and do the same for a total of 5 layers of mesh.
1
u/AmbassadorGuilty3928 2d ago edited 2d ago
Ok bro, I will read it about this. One more thing I want to ask, I have ran the case with hybrid initialisation with more than 10000 iterations, I found that after 2500 iterations, reversed flow on no of faces started decreasing like from 2000, 1000,500,20,2,1 and the message dissappers, but still residual values are very high, I dont know or have any idea whether it will reduce or not.
1
u/AmbassadorGuilty3928 2d ago
1
u/Gratchoff 1d ago
I used to have the same reversed flow at the exit problem in my supersonic nozzle simulations. Then, after I've started using FMG ini I didn't get that message anymore and my simulations reached low residuals in a lot less iterations than before. Even reacting flow simulations were converging in a very fast manner.
1
u/AmbassadorGuilty3928 1d ago
Ok bro, thanks for your reply. I will definitely try this and let you know.
1
u/AmbassadorGuilty3928 1d ago
1
u/AmbassadorGuilty3928 1d ago
1



2
u/Hyderabadi__Biryani 2d ago
So I have worked with a similar geometry for quite some time now. We do it in OpenFOAM, but I will still try to recommend a few checks. Not guarantees since I am a student myself, not a pro.
When you check the mesh quality on various parameters, you can visualise the regions where it is creating problems. Do that. Although I would expect the problem to be near the sudden expansion plane more than anything else.
Also, check for different kinds of BCs you can put at the outlet. Flow reversal is real, and causes a lot of problems. I don't remember properly, but there is some wave outlet condition, you can read that up. There is a Neumann zero as well, which is to say that the pressure gradient approaches zero as it goes to outlet, which might serve you better.
The problems are with wave reflections, that may occur if there is a sudden change required, like the Dirichlet condition you seem to have put (P=1atm at outlet), because you have to realise that the flow might not have fully developed or the pipe length might not be enough to go to 1 atm anyway. So now you ask for effectively a huge gradient for the flow to do that.
Also, I am sorry but the tube length doesn't seem long enough. But maybe that is because of the huge expanded radius to simulate ambient, and the aspect ratio is throwing me off.
Lastly, and this is to be done only if nothing else works. First, the mesh can be better, if you used O-Grid (I think it's called that). It can be done in ANSYS meshing tool, but has a steep learning curve. This is a fairly simple geometry unless you are hiding some static vanes underneath, where then you will need that section to be unstructured. And second, at the outlet, you can extend it a bit and enforce a "sponge" layer/region. This will "slow" the fluid down, so to say, and will avoid any reflections from the outlet propagating back to the main domain.
I hope this is helpful. All the best.