|
[Sponsors] |
Mass Conservation and Convergence in Transient CFD Simulation |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 28, 2023, 05:51 |
Mass Conservation and Convergence in Transient CFD Simulation
|
#1 |
New Member
Join Date: Jan 2023
Posts: 7
Rep Power: 3 |
Hello all,
I'm running a transient CFD simulation using ANSYS Fluent, and I have a question about mass conservation. In my simulation, I have a velocity inlet and a static wall with no outlet. I understand that in this configuration, mass cannot be conserved because the flow is entering the volume without any way to exit. However, I have noticed that the solution still converges even when mass conservation is not satisfied. The residuals are continuity, x-velocity, and y-velocity. I'm curious if anyone can provide some insights into why the solution would converge even when mass conservation is not satisfied in a transient simulation. Additionally, I'm wondering if this means that the simulation results may not be physically meaningful. Any thoughts or suggestions would be greatly appreciated. Thank you! |
|
April 28, 2023, 09:53 |
|
#2 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
|
||
April 28, 2023, 10:07 |
|
#3 |
New Member
Join Date: Jan 2023
Posts: 7
Rep Power: 3 |
Indeed, I understand that that would be the case with a compressible solver. In my case I'm using an incompressible fluid. My question above is more, why is it possible that the solution converges even when mass conservation is not satisfied when using an incompressible fluid?
|
|
April 28, 2023, 11:09 |
|
#4 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
|
||
April 28, 2023, 15:31 |
|
#5 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66 |
Mass conservation means mass cannot be spontaneously created or destroyed. You have an inlet and no outlet, you are supplying mass. This is not a case of mass conservation being violated. The total mass increases with time. If you drink a cup of orange juice, mass conservation laws are not being violated. It is poor wording of the issue.
With regards to when mass conservation issues are encountered with incompressible scenarios... This can occur when you have a closed volume and do a transient simulation since mass can be created/destroyed at each timestep in the incompressible formulation. You have an inlet, it is not a closed volume so this scenario would apply. And even if you were simulating a closed volume, the solution would still converge, you would just violate the mass conservation property. The solution cannot impose the global mass conservation property due to finite precision. |
|
April 28, 2023, 15:38 |
|
#6 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
But for incompressible flows you have to satisfy div V = 0. That means a reverse flow should appear in inlet to balance the mass entrance. |
||
April 28, 2023, 16:52 |
|
#7 | |
Senior Member
|
Quote:
|
||
April 28, 2023, 17:46 |
|
#8 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
Kind of. Fluent solvers for Sum(fluxes) = 0. Flux is vel dot area plus rhie and chow dissipation flux. So not exactly same as div( vel) = 0. |
||
April 28, 2023, 17:52 |
|
#9 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
But that is just a trick to avoid spurious modes in the pressur for non-staggered grid. And yes, that means the div V = 0 is not satisfied at machine precision but only up to the local truncation error. But I doubt this is the case when a mass flow enters without any way to let it go out, that would be possible in a density-based solver when it get raise of an increasing in the mass in time. It would be useful to see the velocity field. |
||
April 28, 2023, 19:38 |
|
#10 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,750
Rep Power: 66 |
Fluent isn't a true incompressible M=0 solver even when you use the pressure-based approach. Simply using the pressure-based solver also does not mean you are in an incompressible flow regime. Only when you use constant density fluid is the calculation actually incompressible.
A velocity inlet isn't a mass flow inlet either. The density drops at the inlet and permits an inward velocity up until all the reflections catch up inside the domain. That being said, if it is known that the fluid is incompressible, why even are we doing this simulation in the first place? There is no physically realizable solution, why are we even discussing whether any results might not be physically meaningful, when we know they are not from the get go? It is as if we are rolling dice and trying to explain why the dice are biased because they never roll heads. |
|
April 29, 2023, 04:17 |
|
#11 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
Well in theory yes but in practice the Rhie and Chow term is quite significant in most cases. In this case though this might be the reason fluent "converges". |
||
April 29, 2023, 04:18 |
|
#12 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
It again shows that solver's convergence is meaningless if the solution it produces is not accurate or does not meet physical meaning. |
||
April 29, 2023, 05:06 |
|
#13 |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Well, even if you permit density to change that does not ensure to fulfill the steady mass conservation with a velocity inlet. You should have that the velocity changes sign at the inlet. There is no way to get the mass balance to be satisfied. Otherwise the total mass must increase in time.
In general, only Exact projection methods fulfill div V =0 at machine precision, but this constraint is not satisfied in general, for example in the Approximate projection method. And Fluent has the NITA where the fractional method used with the PRESTO option should produce an Exact projection method (at least theoretically) if the residual is driven to machine accuracy. The issue is still open in my opinion... |
|
April 29, 2023, 08:14 |
|
#14 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
I understand what you are saying but for Fluent this does not have to be true. As mentioned it does not enforce div(vel) = 0,, where this would be true. In fact, if you use inlet condition fluent will be forcing velocities. (so if you plot you will see all velocities pointing in). Whether it adds Rhie and Chow terms at inlet or not I CAN NOT tell because this is software based. (For example in wildkatze we do not add ). |
||
April 29, 2023, 14:09 |
|
#15 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
And why using NITA with the staggered pressure Fluent would not be able to drive to Div V = 0 at machine precision without using the Rhie and Chow interpolation ? |
||
April 30, 2023, 00:50 |
|
#16 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
from what i understand from fluent, in this case fluxes from walls might be non zero. Also from OP it is not clear what level of convergence is achieved. If it is to the machine precision then it would be very strange. |
||
April 30, 2023, 20:17 |
|
#17 |
Senior Member
|
I think we need to know exactly from OP which level of convergence he reached before attempting an answer. Because, honestly, I think it is impossibile to have the continuity converged with an unsteady incompressible solver in this case, no matter what form of pressure equation and mass flux is used, as long as it is consistent with the continuous continuity equation.
|
|
May 1, 2023, 03:57 |
|
#18 | ||
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
Yes. Quote:
I think here by convergence you mean continuity residuals dropping very low (or to machine precision). This i say this because i think the solver might reduce the residuals and then converge to some pressure values. That means continuity residuals become stable but non zero (or significantly high). PS: I did one experiment and this is what i observed from wildkatze. (non zero but stable continuity residual) |
|||
May 1, 2023, 04:41 |
|
#19 | |
Senior Member
Filippo Maria Denaro
Join Date: Jul 2010
Posts: 6,865
Rep Power: 73 |
Quote:
|
||
May 1, 2023, 08:07 |
|
#20 | |
Senior Member
Arjun
Join Date: Mar 2009
Location: Nurenberg, Germany
Posts: 1,285
Rep Power: 34 |
Quote:
For this case yes. (Don't claim that this shall always happen). Pipe case run with setting outlet as Wall. |
||
|
|
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 |