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

Simulating the pressure change caused by the sudden velocity increase

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By LuckyTran
  • 1 Post By LuckyTran

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 19, 2022, 13:58
Default Simulating the pressure change caused by the sudden velocity increase
  #1
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Hi, I am simulating the pressure change caused by the sudden velocity increase in the pipe with a surge tank as the following picture. I set a transient table at velocity inlet and atmosphere pressure at two pressure outlets. By using transient simulation, the wave was observed, and wave reflections appeared among inlet boundary, surge tank and outlet boundary. But the problem is that wave would reflect again when it reached the inlet and outlet boundaries. Ideally, I want the wave to pass the boundaries without any reflection.



This wave reflection is defined as non-physical wave reflection in Ansys User's Guide. The guide suggests to use NRBC (Non-reflecting boundary condition) to eliminate this reflection. I can only set NRBC at pressure outlet boundary to remove the wave reflection at outlet, but there is no such option for velocity inlet boundary. Does anyone know how to eliminate the wave reflection at velocity inlet boundary? Thanks in advance.
Attached Images
File Type: jpg 1.jpg (7.4 KB, 14 views)
FutureCX is offline   Reply With Quote

Old   April 19, 2022, 14:58
Thumbs up PC Components
  #2
New Member
 
Anjelica Move
Join Date: Apr 2022
Posts: 1
Rep Power: 0
anjelicamove is on a distinguished road
Hello Everyone
Here are some excellent PC components for you gaming PCs. Just click the link and you will get what you will want https://betasimracing.com/processor/
Stay Blessed
anjelicamove is offline   Reply With Quote

Old   April 20, 2022, 00:31
Default
  #3
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
It shouldn't be an isssue as long as you use the NRBC at the outlet. The wave won't reflect at the outlet back towards the inlet anymore and there won't be a wave passsing back towards the inlet (to be reflected) that needs to be transmitted.


An nrbc inlet is non-trivial and afaik is not implemented in Fluent.
LuckyTran is offline   Reply With Quote

Old   April 20, 2022, 00:55
Default
  #4
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
It shouldn't be an isssue as long as you use the NRBC at the outlet. The wave won't reflect at the outlet back towards the inlet anymore and there won't be a wave passsing back towards the inlet (to be reflected) that needs to be transmitted.


An nrbc inlet is non-trivial and afaik is not implemented in Fluent.
Thanks for your reply. Maybe I need to describe the problem in more detail.

When the inlet velocity changes suddenly, a pressure wave can be generated at inlet boundary and propagate to the downstream (outlet boundary). Once the wave arrives at the surge tank, a part of wave will be reflected and go back to upstream (inlet boundary) while the rest continues propagation toward downstream.

When the reflected wave arrives at the inlet boundary, it will be reflected again and go to surge tank. But for the wave propagating to the downstream without reflection, it will disappear at outlet boundary because of the NRBC at pressure outlet boundary.

I'd like to set NRBC at inlet boundary to eliminate the wave reflection, but there isn't such option for velocity inlet boundary. So I wonder how I can figure out the wave reflection at velocity inlet boundary. I hope that my description is understandable
FutureCX is offline   Reply With Quote

Old   April 20, 2022, 01:58
Default
  #5
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Unless there is a nrbc in the latest version of Fluent that I'm not aware of, then you need to find a workaround. A fixed velocity boundary condition, as if you have experienced, is perfectly reflecting.

You could use a freestream inlet to soften up the inlet boundary but it will kind of only get you half way there.

Another workaround is to apply an acoustic sponge via momentum and/or energy sources. Create a region in your domain around the inlet and define a sink that is proportional to the difference in the actual, instantaneous flow velocity and your desired plug velocity. Preferably, you would initialize your case with the wave already having propagated past the sponge if you get what I mean. You might want to extend your inlet upstream if your current setup doesn't have any room for this sponge.

For proprietary reasons, I cannot tell you how to implement a non-reflecting velocity condition except to tell you to go look it up in the literature and do it yourself. I've been begging the Fluent (and other CFD software) developers to implement this boundary condition for well over a decade.
LuckyTran is offline   Reply With Quote

Old   April 20, 2022, 02:15
Default
  #6
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Unless there is a nrbc in the latest version of Fluent that I'm not aware of, then you need to find a workaround. A fixed velocity boundary condition, as if you have experienced, is perfectly reflecting.

You could use a freestream inlet to soften up the inlet boundary but it will kind of only get you half way there.

Another workaround is to apply an acoustic sponge via momentum and/or energy sources. Create a region in your domain around the inlet and define a sink that is proportional to the difference in the actual, instantaneous flow velocity and your desired plug velocity. Preferably, you would initialize your case with the wave already having propagated past the sponge if you get what I mean. You might want to extend your inlet upstream if your current setup doesn't have any room for this sponge.

For proprietary reasons, I cannot tell you how to implement a non-reflecting velocity condition except to tell you to go look it up in the literature and do it yourself. I've been begging the Fluent (and other CFD software) developers to implement this boundary condition for well over a decade.
I really appreciate for your instruction. In the latest Fluent, I can add a sponge layer at velocity inlet boundary. For this sponge layer, I need to define the far-field density, ramping distance and total thickness. But the User's Guide only gives a rough definition about the ramping distance and the total thickness.

I have tried this function in my simulation, it did work. But the solution could be different. Also, the continuity equation couldn't get converged. Do you know how to set this sponge layer properly? Thanks.
FutureCX is offline   Reply With Quote

Old   April 20, 2022, 05:07
Default
  #7
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
The sponge layer must be tuned for each individual case because it depends on the frequencies and wavelengths of the acoustic wave. The ramping distance smooths the sponge so that it isn't a hard cutoff, making the numerics play a bit nicer. The sponge distance controls the strength of the absorption. The thicker the sponge the more your bonudary is non-reflecting, but the more the sponge the more the solution can drift from your desired set constraint. You have to figure it out by doing several trials. Without knowing the details of the geometry, I cannot make any recommendations on what the appropriate thickness ought to except that it is proportional to the wavelength of the wave you need to absorb.
FutureCX likes this.
LuckyTran is offline   Reply With Quote

Old   April 20, 2022, 11:48
Default
  #8
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
The sponge layer must be tuned for each individual case because it depends on the frequencies and wavelengths of the acoustic wave. The ramping distance smooths the sponge so that it isn't a hard cutoff, making the numerics play a bit nicer. The sponge distance controls the strength of the absorption. The thicker the sponge the more your bonudary is non-reflecting, but the more the sponge the more the solution can drift from your desired set constraint. You have to figure it out by doing several trials. Without knowing the details of the geometry, I cannot make any recommendations on what the appropriate thickness ought to except that it is proportional to the wavelength of the wave you need to absorb.
Thank you for such a detailed answer. I think I can start from tuning the sponger layer. Besides, I have the last question about the sponge layer. Can sponge layer at velocity inlet affect the initial generated pressure wave? In my simulation, I noticed that the pressure value of the generated wave showed a distinct linear drop once the sponge layer was added. I am not sure if this pressure drop was caused by the sponge layer.
FutureCX is offline   Reply With Quote

Old   April 20, 2022, 12:43
Default
  #9
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
Yes. Consider a stationary step function (your initial condition effectively) is a combination of a rightward traveling impulse and a leftward traveling expansion wave. This expansion wave is now non-reflecting due to your new treatment.
FutureCX likes this.
LuckyTran is offline   Reply With Quote

Old   April 20, 2022, 14:55
Default
  #10
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
Yes. Consider a stationary step function (your initial condition effectively) is a combination of a rightward traveling impulse and a leftward traveling expansion wave. This expansion wave is now non-reflecting due to your new treatment.
That makes sense. Anyway, I really appreciate for your kind help. And I will start from the setting of sponge layer first.

Kind regards.
FutureCX is offline   Reply With Quote

Old   April 20, 2022, 15:11
Default
  #11
Senior Member
 
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65
LuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura aboutLuckyTran has a spectacular aura about
I briefly mentioned but just to explain it a little bit better. The sponge layer has a damping curve which is generally strongly damping at high frequencies (and short wavelengths) and less effective at low frequencies (and long wavelengths). The damping curve is rather smooth and very broadband.

You just need the damping to be effective for your particular wave, which means you just need to be in the right ballpark for the sponge length with respect to the wavelength of the reflected wave(s). The tuning can be very coarse and does not need to be very fine. For example if my wave has wavelength of 2 m, I would try 1 m, 5 m, and 10 m. You don't need to test small deltas like 1.1, 1.2, 1.3 m. Think orders of magnitude or scales proportional to quarter-wavelengths.
LuckyTran is offline   Reply With Quote

Old   April 20, 2022, 15:47
Default
  #12
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I briefly mentioned but just to explain it a little bit better. The sponge layer has a damping curve which is generally strongly damping at high frequencies (and short wavelengths) and less effective at low frequencies (and long wavelengths). The damping curve is rather smooth and very broadband.

You just need the damping to be effective for your particular wave, which means you just need to be in the right ballpark for the sponge length with respect to the wavelength of the reflected wave(s). The tuning can be very coarse and does not need to be very fine. For example if my wave has wavelength of 2 m, I would try 1 m, 5 m, and 10 m. You don't need to test small deltas like 1.1, 1.2, 1.3 m. Think orders of magnitude or scales proportional to quarter-wavelengths.
Got it. That's why the User's Guide suggests the total thickness should be the twice length of the wavelength at least. And the coarse test should be enough to ensure the proper setting.
FutureCX is offline   Reply With Quote

Old   December 15, 2022, 18:04
Default
  #13
New Member
 
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4
FutureCX is on a distinguished road
Quote:
Originally Posted by LuckyTran View Post
I briefly mentioned but just to explain it a little bit better. The sponge layer has a damping curve which is generally strongly damping at high frequencies (and short wavelengths) and less effective at low frequencies (and long wavelengths). The damping curve is rather smooth and very broadband.

You just need the damping to be effective for your particular wave, which means you just need to be in the right ballpark for the sponge length with respect to the wavelength of the reflected wave(s). The tuning can be very coarse and does not need to be very fine. For example if my wave has wavelength of 2 m, I would try 1 m, 5 m, and 10 m. You don't need to test small deltas like 1.1, 1.2, 1.3 m. Think orders of magnitude or scales proportional to quarter-wavelengths.
Hi LuckyTran, thanks for your previous help on my case. I am using VOF model with the same geometry to simulate the air hammer caused by a sudden velocity increase of water flow at the inlet boundary. Right now, I am facing two problems.
(1). For air phase, should I use compressible liquid or idea gas law considering an isothermal condition?
(2). As the speed of pressure wave is much faster than the local velocity, how can I ensure the courant number below 1 as tiny time step can slow down simulation too much?
Any suggestions could be appreciated.
FutureCX 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
kindly help me .. i have and error at line number 147.. m zubair Fluent UDF and Scheme Programming 0 February 10, 2019 11:25
UDF: Change boundary condition. Velocity inlet to pressure inlet at time "t" jpina FLUENT 10 April 11, 2015 14:19
changing velocity (outlet) BC to pressure outlet majid_kamyab FLUENT 7 October 22, 2014 11:50
pressure change and angular velocity Mangnan CFX 2 June 25, 2004 19:26
Hydrostatic pressure in 2-phase flow modeling (CFX4.2) HB &DS CFX 0 January 9, 2000 13:19


All times are GMT -4. The time now is 02:20.