|
[Sponsors] |
Mass Conservation and Convergence in Transient CFD Simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
May 1, 2023, 13:41 |
|
#41 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
This is because the Rhie and Chow term is something like (pf1 - pf0) * df . Where pf1 and pf0 are interpolated pressure at face from right and left cells. When the solution is smooth the pf1 matches pf0 and this term vanishes. If it does not vanish it becomes part of the flux. The convergence then only depends on finding some pressure profile that even though produces non zero rhie and chow term , satisfies Sum(fluxes) = 0. Pressure gradient is then just another source term to momentum equation. In theory rhie and chow term should converge to zero. This in practice does not happen specially in unstructured meshes. |
||
May 1, 2023, 13:45 |
|
#42 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
Actually, the RC term should result like O(dt*h^2), isn't that? However, I agree, the meaning of a "convergent" solution with a mass imbalance has only added confusion. |
||
May 1, 2023, 13:47 |
|
#43 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
That does not answer to the fact that an increasing in div V must be balanced to an increasing (opposite sign) of the RC term. The two terms should indefinitely increase in time ... |
||
May 1, 2023, 13:51 |
|
#44 |
Senior Member
|
Another update after another small test.
Took the base converged case and switched the inlet bc to mass flow inlet using the value reported from the monitors as value for the bc. Residuals suddenly jumped to a constant value slightly below 1e-3 with no further evolution in anything else. The solution stayed exactly the same. Then, I repeated the test starting from scratch and using mass flow inlet as inlet bc. Now, everything correctly blows up. Sounds like a bug in velocity inlet bc to me If now OP could, at least, tell us what Fluent version he is using... |
|
May 1, 2023, 13:54 |
|
#45 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
Is the grid cartesian and structured ? |
||
May 1, 2023, 13:56 |
|
#46 |
Senior Member
|
||
May 1, 2023, 16:29 |
|
#48 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
If there is an increase in velocity then it would be corrected by pressure correction to minimise sum of fluxes. |
||
May 1, 2023, 16:31 |
|
#49 |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
||
May 1, 2023, 16:38 |
|
#50 | |
New Member
Join Date: Jan 2023
Posts: 7
Rep Power: 3 |
Quote:
These are the specifics to my case: 1. Fluent 2022 R2 2. The fluid density and viscosity is set to be constant 3. I'm using a pressure-based solver, SIMPLE sheme with Rhie-Chow distance based flux type, first order implicit transient formulation, Least squared cell for gradient, second order for pressure, and second order upwind for momentum. 4. I performed 40 time steps with dt=5e-5, with 100 iterations per time step. 5. The residuals for continuity, x-velocity and y-velocity are all set to default (0.001) |
||
May 1, 2023, 16:40 |
|
#51 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
But with a velocity inlet and no outlet, it must be an increasing in velocity gradient, not in the velocity... That is, we know that, div V must increase, therefore the correction is always in. |
||
May 1, 2023, 16:42 |
|
#52 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
Balanced by pressure ie rhie and chow. Thats only way there is stable solution. |
||
May 1, 2023, 17:10 |
|
#53 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
Ok, let us assume such a mechanism is working. During the time integration each term will increase to ensure to balance the residual. This happens while having a mass imbalance. But I expect that these terms will become so large in magnitude that at a certain point the run crashes ... |
||
May 1, 2023, 17:12 |
|
#54 |
Senior Member
|
Hahahha... guilty as charged. Apologies as well from me for showing frustration
However, my suggestion is to try the mass flow inlet bc and see if you have similar results. My guess is that you won't. Also, in my opinion, this is a clear bug of the velocity inlet bc. I haven't tried every other combination of solver settings but, most of your options haven't shown any significant effect on the results of my base case. |
|
May 1, 2023, 17:21 |
|
#55 |
Senior Member
|
||
May 1, 2023, 17:22 |
|
#56 | ||
New Member
Join Date: Jan 2023
Posts: 7
Rep Power: 3 |
Quote:
Quote:
Now just tried to change the inlet to mass flow inlet, where the solution again convergences without trouble |
|||
May 1, 2023, 17:33 |
|
#57 | |
Senior Member
|
Quote:
I don't know what else to say... just don't do that |
||
May 1, 2023, 17:40 |
|
#58 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
My final opinion: any kind of numerical solution that does not crash for such problem is rubbish.
In no way a CFD developer should accept that from his code. |
|
May 1, 2023, 19:10 |
|
#59 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66 |
I didn't doubt that someone managed to run a Fluent case that "converged" without blowing up in finite time. But it should eventually blow up. And in my personal opinion this isn't a fault of poorly coded Fluent as I'm fairly confident you could repeat it in many other software as well. I don't think any CFD developer expects anyone to use their code to simulation a problem with no solution (known a priori).
In general, just don't do simulations like this. Benchmark against things that actually make sense. And if you must do it anyway, be prepared that it requires a more-than-surface-level understanding to interpret the results. The benefit of discussing it here in this particular user group is that we've experienced and encountered so many crazy things that it isn't crazy talk. |
|
May 2, 2023, 02:05 |
|
#60 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
This is very true. As a person who writes CFD solvers, my aim is to provide a robust and stable solver but accuracy takes first place. That means stability NOT at the cost of accuracy. Having said this, user shall be careful and should have good understanding of what he is solving and what is expected solution. He should know how to judge the solution. |
||
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
axial compressor mass flow convergence issue | jyotir | SU2 | 5 | July 5, 2024 10:06 |
SU2 NACA0012 Transitional flow simulation Convergence Issues | morgJ | SU2 | 0 | July 21, 2022 08:42 |
mass flow conservation in transient simulations | egonalter | CFX | 20 | July 27, 2017 08:18 |
Problem with an old Simulation | FrankW | CFX | 3 | February 8, 2016 05:28 |
Mass conservation problem in mixing tank multiphase simulation | rockewan | FLUENT | 0 | April 6, 2010 13:34 |