Ryan Dark
Ryan has been in the GoEngineer technical support team since February 2008 where he most notably provides support for all FEA and CFD software offered by SOLIDWORKS. His most recent accolade is the title of Elite Application Engineer awarded by SOLIDWORKS Corp.

## Flow Simulation – How to Handle a Vortex Across a Pressure Boundary

April 19th, 2017 by Ryan Dark

### What is a “Vortex Across a Pressure Boundary?”

In Flow Simulation, a vortex is a region in the fluid domain which causes a swirl in a region where there is asymmetric drag in the flow field.  The vortex itself is an expected phenomenon which itself is not problematic.  When that vortex is allowed to generate across a theoretical boundary within a CFD analysis that can cause the results to deviate from reality in the immediate vicinity of the boundary or also cause the solver to fail to produce results at all.  For that reason, it is important to note where this is happening in an analysis and take steps to avoid it.

### How can this be fixed?

The vortex itself is generating because of the local solid geometry near the pressure boundary of a CFD setup.  If the flow through the boundary is not symmetric, a low-pressure region can generate in front of the boundary allowing fluid to pass the wrong direction through the boundary as intended.  The fix for this is to “build out” the model geometry.  What does this mean? The solid model needs to have more real life geometry added to the setup so the flow field can be allowed to have the vortex and then transition into a unidirectional flow.

An example of a vortex across a boundary would be directly from the first Flow Simulation tutorial in SOLIDWORKS.

(The tutorials can be found under ‘Help’, ‘SOLIDWORKS Simulation’, ‘Flow Simulation Online Tutorial’ once the Flow Simulation add-in is turned on).  The ball valve, as it is setup in the tutorial, has two lids that are positioned closely to the ball of the valve.  In situations where the ball valve is not set completely open the flow through the valve is forced to be asymmetric as it passes through the pressure outlet.

The asymmetric flow out the pressure boundary allows fluid to backflow through the theoretical pressure boundary and creates the vortex that is seen below.

Figure 2: Asymmetric flow through a ball valve shows a vortex occurring on the pressure outlet boundary.

Since the issue only exists on the outlet side of the model, this is the only side that needs to be “built out”.  In this example, a straight pipe is placed off the end of the valve extending the fluid region and moving the pressure boundary further away.  This way, the flow can have a vortex and then be allowed to transition into unidirectional flow as it might in real life.

Figure 3: A straight pipe added to the end of the ball valve shows how the pressure boundary can be moved away from the vortex that is being formed.

### Solution 2: Release to Pseudo-External Environment

Solution 1 is possible when it is reasonable to assume that there is more piping after the valve that can be put into place.  This is not always true.  Solution 2 examines how to handle the valve’s behavior when releasing into a larger reservoir.  An entire tank could be modeled to resolve this vortex across boundary warning or this could be modeled as an external analysis. That would make the Flow Project prohibitively long to solve; if the valve is the only thing being analyzed.  In this case, it may be best to model only a portion of the tank where fluid plume flows into.  This setup is shown below.

Figure 4: A small modeled enclosure attached to the ball valve.

Only part of the tank is modeled so on 5 of the 6 internal surfaces, a pressure boundary is defined and represents the undefined fluid volume in the rest of the tank.  The face immediately adjacent to the valve is not applied with pressure to represent the tank wall. The result is that the fluid plume generates in the now open region beyond the valve allowing, again, for the vortex as the valve to generate and then dissipate as shown in Figure 5.  In this case, however, a warning for vortex crossing the pressure boundary will likely generate but will impact the results at locations away from the valve exit and the fluid plume.

Figure 5: The fluid plume generates in the pseudo-external environment created attached to the valve

### In conclusion

When possible, create a solid model where a vortex will not cross a pressure boundary or move the pressure boundary away from the region of interest in the fluid domain.

### Related posts:

Category: SOLIDWORKS