Fill out the form to download

Required field
Required field
Not a valid email address
Required field

Documentation

How to Prepare the CAD for Simulating Rotating Zones?

When performing a simulation with rotating parts, such as pumps and turbines, we need to use rotating zones. This requires some additional steps to prepare the CAD before importing the model into the SimScale Workbench.

In short, a CAD model for simulations with rotating zones needs to contain one flow volume region, and one additional volume per rotating zone. This article outlines the best practices that users should follow to prepare their CAD models.

Important

The workflows shown in this article can be followed in any CAD tool. For demonstration purposes, we are going to use Onshape.

Please note that, as far as CAD preparation goes, multiple workflows will lead you to the same result. This article does not intend to be exhaustive: it only shows one of the possible workflows.

Approach

The most important requirement when you prepare the CAD for a simulation involving rotating motion is the rotating zone: a cylindrical volume surrounding all rotating parts. For information regarding the setup of a rotating zone in SimScale, please visit this documentation page.

Below, you will find two examples showing the workflow to prepare the CAD model for a simulation with rotating zones. The first one will be for a water pump, the second for a wind turbine.

Example 1: Water Pump

This example features the geometry from the water pump tutorial. The initial pump model contains the rotor blade, housing, and a back cover. Water enters the pump through the front inlet and leaves through the top outlet.

prepare cad for simulating rotating zones simscale geometry before preparation
Figure 1: Initial geometry for a water pump simulation, highlighting the rotor blades (1), housing (2) and back cover (3)

In the CAD tool, before importing the model to SimScale, we need to create a rotating zone around the rotor blades. Note that the rotor blades volume is centralized at the origin. This will make the next steps much easier to follow.

The first operation consists of creating a Sketch, using one of the planes at the origin. In this case, we will use the Front plane:

creating a sketch on onshape rotating zone
Figure 2: To make the operation easier to perform, you can only keep the rotor blades volume visible

Now, we can use sketch tools to draw a profile for the rotating zone, which will be revolved afterward. Note that the profile should be slightly larger than the rotor in all directions. As a rule of thumb, you can make the rotating zone extend further than the blades in all directions by a distance of \(0.05D\), where \(D\) is the diameter of the blades.

sketch cad rotating part
Figure 3: Since we will revolve the sketched profile, we need to capture only half of the rotor blades in the sketch.

After accepting the sketch, we are ready to use the Revolve operation to create the rotating zone volume, with the following steps:

revolve operation mrf rotating zone
Figure 4: The revolve operation allows you to revolve a profile around an axis.
  1. Create a ‘Revolve’ operation
  2. Select the faces of the sketch as the profile to revolve
  3. The revolve axis will be the baseline of the sketch, which goes through the point (0, 0, 0)
  4. Make sure that you are creating a ‘New’ volume in this operation

At this point, the geometry consists of 4 parts: the back cover, the housing, the rotor blades, and the rotating zone. This geometry can be imported to SimScale for further CAD preparation. To see all CAD import options, please refer to this documentation page.

Note

If you are interested in seeing a different workflow in CAD to create the rotating zone, then consider checking this article.

CAD Mode

The geometry is not yet ready to run a CFD simulation. We need to create a flow region, and also delete the solid parts of the domain.

Both of these operations can be performed in SimScale’s CAD Mode:

cad mode environment simscale
Figure 5: Entering the CAD Mode environment in SimScale

Within CAD Mode, we have two main objectives:

  1. Create an internal flow region
  2. Delete all solid parts from the geometry

Therefore, the first step is to select an ‘Internal flow volume’ operation, and follow the steps below:

internal flow volume extraction cad mode
Figure 6: By excluding the rotating zone from the operation, its volume will be ignored for the flow volume extraction operation.
  1. Create an ‘Internal’ flow volume extraction operation
  2. As Seed face, assign one internal face that will be in contact with the flow region
  3. Under Boundary faces, assign the boundary faces around the openings. Make sure to check this article if you are unsure about the boundary faces of your geometry
  4. Assign the rotating zone volume in the Excluded parts tab
  5. Press ‘Apply’ to run the operation

At this point, one volume named Flow region is created in the scene tree on the top right. We are now ready to delete the unnecessary parts of the geometry.

delete body operation cad mode simscale
Figure 7: With this operation, we are only maintaining in the geometry the flow region and the rotating zone volumes.
  1. Pick the ‘Delete’ operation under BODY
  2. Select the rotor blades, the housing, and the back-cover volumes. Note that two volumes remain unselected: the flow region and the rotating zone
  3. Hit ‘Apply’

Before exporting this model to the Workbench, we can also extend the inlet and outlet faces, which is a good practice for simulations with pumps. The Extrude face operation can be used for this purpose:

exporting a cad model from cad mode
Figure 8: Once you hit Finish, the current state of the geometry in the CAD Mode is exported to the Workbench.
  1. Select the ‘Extrude’ operation under FACE
  2. Select inlet and outlet faces
  3. Define the Distance for the extrusion
  4. Hit ‘Apply’ to run the operation
  5. Click on ‘Finish’ to export the model to your Workbench

This geometry is correctly constructed for simulations with rotating zones in SimScale.

geometry ready for simulations with rotating zones water pump
Figure 9: Correctly constructed geometry for simulations with rotating zones, containing a flow region and a rotating zone volume

Example 2: Wind Turbine

In this external aerodynamics example, the initial model consists of the rotor blades, a nacelle (turbine housing), and the turbine tower:

wind turbine geometry rotating zone
Figure 10: Initial CAD Model for the wind turbine, showing the rotor (1), nacelle (2), and tower (3).

This model is almost ready to bring to SimScale. Before doing that, it’s necessary to create the rotating zone volume in the CAD software.

The easiest way to prepare the CAD model is by sketching a cylinder, which will be used to construct the rotating zone:

wind turbine mrf creation
Figure 11: Note that the sketched circle is slightly larger than the diameter of the blades.

After creating the initial sketch, we are ready to extrude the MRF rotating zone as a new part. In this step, it’s important that the rotating zone fully envelops the rotating parts:

mrf creation external aerodynamics
Figure 12: Notice that the rotating zone volume is always created as a New volume.

At this point, you can rename the rotating zone volume appropriately, and the model is ready to import to SimScale.

CAD Mode

Once in SimScale, it’s necessary to perform a couple of operations before using the geometry for a simulation. The objectives from this stage are:

  • Generating the flow domain for the simulation
  • Deleting the unnecessary solid parts from the model

Both of these operations can be performed within the CAD Mode environment, which can be accessed from the Geometries tab:

accessing cad mode in simscale
Figure 13: To access the CAD Mode, click on the highlighted icon from the image

The CAD Mode environment contains a series of useful CAD operations. In our case, we are first interested in creating an external virtual wind tunnel. The image below shows the steps:

enclosure wind tunnel cad mode
Figure 14: Creating an external wind tunnel within the CAD Mode environment
  1. Select an ‘External’ flow volume operation, which will construct an enclosure
  2. Define the enclosure dimensions according to your geometry and wind direction
  3. Exclude the Rotating zone volume that was created in your CAD tool from the operation. This will ensure that the rotating zone is correctly constructed for the simulation
  4. Hit ‘Apply’ to run the operation

At this point, the geometry is almost ready to run a simulation. To avoid multi-region mesh errors, it’s necessary to delete the solid parts from the geometry. In CAD Mode, we can proceed as follows:

deleting parts rotating zone cad preparation
Figure 15: All solid parts should be deleted from the geometry. The only parts that should remain are the flow region and the rotating zone.
  1. Pick the ‘Delete’ operation under BODY
  2. Select the rotor blades, the nacelle, and the tower. Note that two volumes remain unselected: the flow region and the rotating zone
  3. Hit ‘Apply’
  4. Click ‘Finish’ to export the new CAD version to your Workbench

Now that we have only the two necessary volumes to run simulations with rotating zones, we can proceed to creating a simulation.

Did you know?

In a CAD model that is correctly prepared for simulations with rotating zones, the flow region will contain the negative of the solid parts. Note that the solid parts (e.g. the rotor blades) should not be part of the final geometry.

correct cad preparation rotating zone simscale
Figure 16: A CAD model for a simulation with a single rotating zone should consist of a flow region and a rotating zone volume.

Note

If none of the above suggestions solved your problem, then please post the issue on our forum or contact us.

Last updated: April 1st, 2021

Contents
Data Privacy