|
[Sponsors] |
Simulating the pressure change caused by the sudden velocity increase |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
April 19, 2022, 13:58 |
Simulating the pressure change caused by the sudden velocity increase
|
#1 |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
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. |
|
April 19, 2022, 14:58 |
PC Components
|
#2 |
New Member
Anjelica Move
Join Date: Apr 2022
Posts: 1
Rep Power: 0 |
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 |
|
April 20, 2022, 00:31 |
|
#3 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
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. |
|
April 20, 2022, 00:55 |
|
#4 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
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 |
||
April 20, 2022, 01:58 |
|
#5 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
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. |
|
April 20, 2022, 02:15 |
|
#6 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
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. |
||
April 20, 2022, 05:07 |
|
#7 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
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.
|
|
April 20, 2022, 11:48 |
|
#8 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
|
||
April 20, 2022, 12:43 |
|
#9 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
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.
|
|
April 20, 2022, 14:55 |
|
#10 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
Kind regards. |
||
April 20, 2022, 15:11 |
|
#11 |
Senior Member
Lucky
Join Date: Apr 2011
Location: Orlando, FL USA
Posts: 5,674
Rep Power: 65 |
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. |
|
April 20, 2022, 15:47 |
|
#12 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
|
||
December 15, 2022, 18:04 |
|
#13 | |
New Member
Chenxi
Join Date: Apr 2022
Posts: 11
Rep Power: 4 |
Quote:
(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. |
||
|
|
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 |