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

Equalizing Pressure between Two Tanks

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 7, 2017, 08:27
Default Equalizing Pressure between Two Tanks
  #1
Member
 
CWL
Join Date: Nov 2015
Posts: 58
Rep Power: 11
cwl6750084 is on a distinguished road
I was asked about a supposedly easy problem but Fluent seems to give wrong results. I hope someone can shed some insights for me.

Two interconnected tanks connected with a small pipes (as shown) with no inlet/outlet. The initial pressure and temperature of the two tanks are different.
The black lines are the walls with no-slip conditions.

Wanted to simulate the transient process of mixing. It is obvious that the final velocity should be about 0, pressure and temperature be the averaged value of the initial ones. However, when simulation started, within one or two time-steps, the pressure, temperature and velocity all becomes zeroes. I somehow suspect one cannot put wall all around the boundary - somewhere must have an inlet/outlet condition for the simulation to work. Can anyone shed some light on the problem?

Thanks.
Attached Images
File Type: jpg Equalizer.jpg (18.8 KB, 10 views)
cwl6750084 is offline   Reply With Quote

Old   April 7, 2020, 22:02
Default
  #2
New Member
 
navid toussi
Join Date: Nov 2015
Posts: 20
Rep Power: 11
navidmt is on a distinguished road
Quote:
Originally Posted by cwl6750084 View Post
I was asked about a supposedly easy problem but Fluent seems to give wrong results. I hope someone can shed some insights for me.

Two interconnected tanks connected with a small pipes (as shown) with no inlet/outlet. The initial pressure and temperature of the two tanks are different.
The black lines are the walls with no-slip conditions.

Wanted to simulate the transient process of mixing. It is obvious that the final velocity should be about 0, pressure and temperature be the averaged value of the initial ones. However, when simulation started, within one or two time-steps, the pressure, temperature and velocity all becomes zeroes. I somehow suspect one cannot put wall all around the boundary - somewhere must have an inlet/outlet condition for the simulation to work. Can anyone shed some light on the problem?

Thanks.
Hi,
I was wondering if you have managed to solve your problem at the end?
navidmt is offline   Reply With Quote

Old   April 8, 2020, 05:34
Default Case Setup
  #3
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
Wall boundary condition is not the problem. That is alright. However, you need to look at it from the perspective of reality. Why would these two fluids mix? And which model is being used. If both are same fluids but at different temperature, then mixing would depend upon whether the natural convection is enabled or not. If not, then there won't be any fluid convection and thermal energy will get distributed purely because of thermal distribution. If these are two different fluids, then they should either be gases or miscible liquids, such as, water and alcohol. This would require species transport model to be enabled. Gravity can also play a role if density ratio is substantially far from unity. If the fluids are immiscible, then it would require multiphase model and gravity is must.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 13, 2020, 19:19
Default
  #4
New Member
 
navid toussi
Join Date: Nov 2015
Posts: 20
Rep Power: 11
navidmt is on a distinguished road
Quote:
Originally Posted by vinerm View Post
Wall boundary condition is not the problem. That is alright. However, you need to look at it from the perspective of reality. Why would these two fluids mix? And which model is being used. If both are same fluids but at different temperature, then mixing would depend upon whether the natural convection is enabled or not. If not, then there won't be any fluid convection and thermal energy will get distributed purely because of thermal distribution. If these are two different fluids, then they should either be gases or miscible liquids, such as, water and alcohol. This would require species transport model to be enabled. Gravity can also play a role if density ratio is substantially far from unity. If the fluids are immiscible, then it would require multiphase model and gravity is must.

Hi,
what if the fluid is only air with different pressures in each tank, in one of them 10 bar and the other on 1 bar. The Temperature at the beginning is room Temperature. There is no heat transfer through the walls.
I have such a case and the system is closed, there is no inlet/outlet boundary conditions except walls. How do you suggest me to set such a case?
Thank you in advance
navidmt is offline   Reply With Quote

Old   April 14, 2020, 04:39
Default Air
  #5
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
If the fluid is gas and at different pressure values, then it must be modeled using ideal gas as density.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Old   April 14, 2020, 07:35
Default
  #6
New Member
 
navid toussi
Join Date: Nov 2015
Posts: 20
Rep Power: 11
navidmt is on a distinguished road
Quote:
Originally Posted by vinerm View Post
If the fluid is gas and at different pressure values, then it must be modeled using ideal gas as density.
which solver of openfoam do you suggest me to use? the speed in the connection pipe have the possibility to reach near the speen of sound!! (Ma=1)
I am using rhoPimpleFoam with k and epsilon turbulent model, but simulation after some iterations blows up.
navidmt is offline   Reply With Quote

Old   April 14, 2020, 07:39
Default OpenFOAM!
  #7
Senior Member
 
vinerm's Avatar
 
Vinerm
Join Date: Jun 2009
Location: Nederland
Posts: 2,946
Blog Entries: 1
Rep Power: 36
vinerm will become famous soon enough
I am afraid that you are in the wrong Forum; this is Fluent Forum. You should pose the question in OpenFOAM forum.

rhoPimpleFoam should work as long as rho is driven by ideal gas law. k-\varepsilon will work alright.
__________________
Regards,
Vinerm

PM to be used if and only if you do not want something to be shared publicly. PM is considered to be of the least priority.
vinerm is offline   Reply With Quote

Reply


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
Periodic flow using Cyclic - comparison with Fluent nusivares OpenFOAM Running, Solving & CFD 30 December 12, 2017 06:35
Pressure loss Velocity coupling CFXMUFFIN CFX 1 February 6, 2016 05:43
Discharge of Pressure Vessel into Pipe with Regulator gajowni2 System Analysis 0 October 31, 2015 19:57
Calculation of the Governing Equations Mihail CFX 7 September 7, 2014 07:27
Unsteady pressure differential between inlet and outlet of the pipe for single phase joshi20h FLUENT 0 September 26, 2012 13:41


All times are GMT -4. The time now is 21:57.