Calculating Wave Speeds in Flownex

Categories:

Today, I will be discussing how to use a quick script component to calculate wave speed for a pipe in Flownex. We will be developing a script to determine the wave speed in two elastic tubes in different scenarios. Both networks are dependent on the 1D tube geometry and mechanical properties. Longitudinal pressure waves may be modeled in Flownex within a wide variety of materials or timescales.

First, we will calculate the pulse wave velocity (PWV). This is a non-invasive method of determining arterial stiffness using the blood pressure measured at to different arteries, used as an indicator of cardiovascular health. Next, we will apply the script to a pipe with a sudden valve closure to calculate the wave speed and the reflection time of the pressure wave. For this example, we will be using Flownex version 8.14.1.4845.

Choosing Components and Boundary Conditions

We will be simulating the wave speed of due to an influx of 60cc of blood (I will be creating a custom fluid for this) over a 0.1s interval (throughout our simulation) to produce a pressure wave. This arbitrary pressure wave will allow us to visualize the wave speed of the artery. We can simulate the artery by dragging and dropping a pipe component onto the canvas and placing boundary conditions on the inlet and outlet.

Next, we will specify a zero-mass flow at the inlet, and set the temperature to 35°C.

image 3

We will use a constant pressure for our outlet boundary condition.

image 4

Lastly, we will assign our inlet node to contain a volume of 60cm3.

image 5
image 14

Next, we can define the vessel geometry. We will check “Specify advanced inputs” in the pipe properties, allowing us to access the “Transient and Water Hammer Related Inputs” subset of mechanical properties. We will model a simplified aorta with a diameter of 25mm and a length of 30.48cm. Additional mechanical properties of the pipe are shown below:

image 9

Flownex will use the diameter to thickness ratio to determine if a thin wall model is necessary for the simulation. A diameter to thickness ratio above 40:1 will use a thin-walled pipe model.

Transient Actions Setup

Now that we have defined our boundary conditions, we can setup an action to perform this task by navigating to the configuration tab in the ribbon and clicking on Action Setup. Additional information on setting up transient actions form a table can be found here.

We will create a New Scenario in the actions setup and set the target property to the volume of the inlet node. We can do this by selecting the node and by dragging the volume from the inlet node properties (left) window into the actions setup (right).

image 8

Setting the value type to table will allow us to create a constant volume flow rate at the inlet after the no flow initial condition, using the input below.

Calculating Wave Speed

We can also easily calculate the wave speed of a component, using a quick script. Quick scripts are easily implemented, and we will specify unit types to allow Flownex to evaluate unit conversions for calculating wave speeds. I won’t cover quick script/data transfer link setup in this post, but you can find a previous example here. After inserting a quick script component, we can double click on it to modify the inputs, outputs, and calculation.

image 10

Rather than recomputing the speed of sound of our fluid, we will take it directly from the properties of the pipe. Additionally, we can calculate the time when the wave will reach our boundary. The PWV along multiple pipe components (such as carotid-femoral PWV or examining a pipe main in a complex network) can be also calculated with direct referencing to avoid using data transfer links to pipe components in a quick script.

Simulation Setup

We have defined the time constant (the time which the wave will reach the end of the pipe). We will use this to determine the duration of our simulation. We can specify our end time as our time constant (0.055435s).

image 11

Next, if we right click on the inlet node, we can hover over “Plot a Flow Path” and select Total Pressure. This can be plotted for any pathway specified through a network by explicitly specifying a flow path, covered in a previous post. Plotting the flow path will allow us to visualize the pressure profile across the length of the artery. We can solve steady state for our initial conditions and run the solution our network and run our solution.

Simulation Results

We can see a plot of the longitudinal pressure wave in the vessel below

FNX vessel wave

The pressure wave propagation will depend on the impedance mismatch of the downstream vasculature due to changes in diameter or arterial bifurcations.

Lastly, we can us the same procedure to model the wave reflection in the piping system used for Demo Network 4. This network simulated a sudden valve closure on the righthand side of a steel pipe. Using our script, we can determine that the wave will take 0.07525 seconds to reach the other side of the 101m pipe.

image 13

We can visualize the wave reflection in our steel pipe back to the valve by doubling our time constant and running a transient simulation.

FNX pipe wave

A flow path graph may also be used to visualize the placement of an accumulator along the pipe to dampen wave reflection to the valve.

We have seen that Flownex can easily model a wide variety of systems from pulse wave velocity to water hammer effects in piping systems. The pressure wave in the steel pipe(1329m/s) close to the speed of sound in open water, whereas the artery has a pulse wave velocity of 5.4983m/s, far below the speed of sound. Now, we can easily write a quick scripts to determine the speed which pressure waves will pass through a network pathway.

Categories

Get Your Ansys Products & Support from the Engineers who Contribute to this Blog.

Technical Expertise to Enable your Additive Manufacturing Success.

PADT’s Pulse Newsletter

Keep up to date on what is going on at PADT by subscribing to our newsletter.


By submitting this form, you are consenting to receive marketing emails from: . You can revoke your consent to receive emails at any time by using the SafeUnsubscribe® link, found at the bottom of every email. Emails are serviced by Constant Contact

Share this post:

Upcoming Events

04/24/2024

Experience Stratasys Truck Tour: Houston, TX

05/07/2024

Experience Stratasys Truck Tour: Albuquerque, NM

05/07/2024

Dynamic Simulation for Rocket Propellant Systems! - Webinar

05/08/2024

Fluent Materials Processing Updates in Ansys 2024 R1 - Webinar

05/13/2024

Experience Stratasys Truck Tour: Tempe, AZ

05/14/2024

Simulation World 2024

05/15/2024

Simulation World 2024

05/16/2024

Simulation World 2024

05/22/2024

Optics Updates in Ansys 2024 R1 - Webinar

06/12/2024

Connect Updates in Ansys 2024 R1 - Webinar

06/26/2024

Structures Updates in Ansys 2024 R1 (3) - Webinar

06/27/2024

E-Mobility and Clean Energy Summit

07/10/2024

Fluids Updates in Ansys 2024 R1 - Webinar

08/05/2024

2024 CEO Leadership Retreat

10/23/2024

PADT30 | Nerdtoberfest 2024

Search in PADT site

Contact Us

Most of our customers receive their support over the phone or via email. Customers who are close by can also set up a face-to-face appointment with one of our engineers.

For most locations, simply contact us: