CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > ANSYS > FLUENT

Reversed flow when switching inlet boundary conditions

Register Blogs Community New Posts Updated Threads Search

Like Tree3Likes
  • 1 Post By MKuhn
  • 1 Post By MKuhn
  • 1 Post By shbn

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   October 14, 2024, 12:19
Default Reversed flow when switching inlet boundary conditions
  #1
New Member
 
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3
shbn is on a distinguished road
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.
shbn is offline   Reply With Quote

Old   October 17, 2024, 09:16
Default
  #2
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17
MKuhn is on a distinguished road
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.
shbn likes this.
MKuhn is offline   Reply With Quote

Old   October 17, 2024, 11:43
Default
  #3
New Member
 
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3
shbn is on a distinguished road
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.
shbn is offline   Reply With Quote

Old   October 17, 2024, 11:54
Default
  #4
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17
MKuhn is on a distinguished road
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.
shbn likes this.
MKuhn is offline   Reply With Quote

Old   October 18, 2024, 12:04
Default
  #5
New Member
 
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3
shbn is on a distinguished road
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?
MKuhn likes this.
shbn is offline   Reply With Quote

Old   October 21, 2024, 03:08
Default
  #6
Senior Member
 
Moritz Kuhn
Join Date: Apr 2010
Location: Germany, Dresden
Posts: 218
Rep Power: 17
MKuhn is on a distinguished road
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?
MKuhn is offline   Reply With Quote

Old   October 21, 2024, 11:37
Default
  #7
New Member
 
Join Date: Nov 2023
Location: United States
Posts: 4
Rep Power: 3
shbn is on a distinguished road
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.
shbn is offline   Reply With Quote

Reply

Tags
reversed flow


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


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


All times are GMT -4. The time now is 16:12.