|
[Sponsors] |
Reversed flow when switching inlet boundary conditions |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
October 14, 2024, 12:19 |
Reversed flow when switching inlet boundary conditions
|
#1 |
New Member
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3 |
Hello everyone,
I am modeling hydrogen storage in a tank with adsorbent materials using Ansys 2023R1. In my setup, the inlet boundary condition is initially a mass flow inlet, which automatically switches to a pressure inlet after 1 minute through a scheme command. However, Fluent crashes (floating point exception) when the set pressure at the inlet is slightly higher than the tank pressure at that time. It only accepts set pressures equal to or lower than the tank pressure. While the simulation continues to run, I observe severe reversed flow (40%-80%) at the pressure inlet boundary right after the switch. I have tried reducing the time step size from 0.1s to 0.01s and lowering relaxation factors, but the issue persists. I suspect the pressure gradient caused by the heat of adsorption is affecting the solver’s ability to handle the new boundary conditions. I appreciate your advice and insights on this. Thank you. Last edited by shbn; October 15, 2024 at 00:43. |
|
October 17, 2024, 09:16 |
|
#2 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17 |
The change in the boundary conditions probably causes a strong change in pressure. Check the pressure at the mass fow inlet shortly before the change, in this way you can check whether your reality is represented correctly at all. Reverse flow is not an error and can occur when the pressure at the outlet face is not homogeneous. Maybe the the "target mass flow" function of the pressure inlet helps to avoid the switching between the two boundary types.
|
|
October 17, 2024, 11:43 |
|
#3 |
New Member
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3 |
Thank you, MKuhn, for insightful comments.
I created a report file to monitor inlet pressure so that the set pressure is as accurate as I needed. Probably, I need to avoid switching boundary conditions by adjusting the mass flow inlet stepwise to meet the capped pressure. |
|
October 17, 2024, 11:54 |
|
#4 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17 |
I believe that the mass flow inlet distributes the mass flow evenly over the inlet surface. Maybe also the pressure is constant over the inlet surface in case of the mass flow inlet. This is not the case with the pressure inlet, where pressure differences can occur over the surface, which can then lead to a reverse flow.
|
|
October 18, 2024, 12:04 |
|
#5 |
New Member
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3 |
You are absolutely right about the pressure inlet as I observed the reversed flows fluctuating significantly between 40% and 80% of the faces on the inlet boundary over time.
Do you think adjusting the mass flow rate to control the inlet pressure through a scheme command is a viable approach, or is there a better way to handle this? |
|
October 21, 2024, 03:08 |
|
#6 |
Senior Member
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17 |
I don't know your case in detail, but modeling the entrance a little further away (with an additional pipe for example) would be a solution. The problem should also disappear with higher mass flows. How high are the flow velocities at your inlet?
|
|
October 21, 2024, 11:37 |
|
#7 |
New Member
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3 |
My case involves only hydrogen flow into a tank with no outlet. I fully agree that using a higher mass flow rate could help create stronger momentum to overcome the pressure differences in the flow direction.
Since the issue seems to be related to numerical instabilities and slow convergence, I'll try using the low-Mach number flow setting to see if it helps. |
|
Tags |
reversed flow |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
reverse flow in centrifugal fan blades | kalm | CFX | 20 | December 2, 2023 07:25 |
3D Windturbine simulation in SU2 | k.vimalakanthan | SU2 | 15 | October 12, 2023 06:53 |
sliding mesh problem in CFX | Saima | CFX | 46 | September 11, 2021 08:38 |
Centrifugal fan | j0hnny | CFX | 13 | October 1, 2019 14:55 |
RPM in Wind Turbine | Pankaj | CFX | 9 | November 23, 2009 05:05 |