websights

Fill out the form to download

Required field
Required field
Not a valid email address
Required field
Required field
  • Set up your own cloud-native simulation in minutes.

  • Documentation

    How To Create Flow Volume Extraction?

    The simulation domain for a fluid dynamics simulation is the region occupied by the fluid (gas or liquid). However, in many cases, the original CAD model will initially not contain the fluid volume.

    In such cases you can extract the fluid region, using the Flow volume extraction feature within SimScale’s CAD Edit tool. We call this process Fluid Volume Extraction.

    entering the cad editing tool in simscale
    Figure 1: Select a geometry of interest and click on the Edit a copy button to enter the CAD editing environment

    To illustrate the objective further, see the basic use case of a flow simulation through a pipe below.

    example of how flow volume extraction works
    Figure 2: Left: Pipe geometry. The goal is to simulate the fluid flow through this pipe intersection. The model only contains the walls of the pipe. Right: The extracted flow volume through the pipe. This is the region that the fluid occupies and is required as input geometry for the simulation.

    The two main flow volume extraction modes available within SimScale are:

    1. Internal Flow Volume
    2. External Flow Volume
    flow volume creation options in the cad editing tool
    Figure 3: When hovering over the Flow volume operation, options for internal and external flow volumes will appear

    Depending on your geometry, you may use one of two modes to extract the fluid volume. Below are examples for each type.

    Did you know?

    The third flow volume operation, Internal caps, is specific to conjugate heat transfer IBM simulations. Visit this page for more details.

    1. Internal Flow Volume

    This operation generates an internal flow volume. For instance, the example below shows how to generate the internal flow volume of the heat exchanger from this tutorial. The heat exchanger has two openings for each fluid. Extract one of the flow volumes as follows:

    1. Select an ‘Internal‘ flow volume operation
    2. Select one internal Seed face (blue)
    3. Select the Boundary faces that lie between the external environment and the internal (highlighted in pink)
    4. If your geometry contains cell zones, such as porous media and momentum sources, assign them to Excluded parts. If not, leave this definition empty
    5. Hit ‘Apply’ to run the operation
    internal flow volume creation
    Figure 4: Creating an internal flow volume in a heat exchanger that has two openings

    This will result in a geometry that contains both the fluid volume and the outer wall geometry as two separate parts. However, for a simple fluid flow simulation, you need only a single fluid volume. Keep the outer wall geometry (solid body) only in case of a conjugate heat transfer simulation, in which heat transfer between the solid parts and the fluid domain is simulated.

    If you are going to perform a single region analysis like incompressible, compressible, or convective heat transfer, you need to delete the solid body as follows:

    deleting parts of a geometry in simscale
    Figure 5: If you are going to run single region simulations, such as incompressible and compressible simulations, you have to delete the solid parts of the geometry
    1. Choose the ‘Delete’ operation under BODY
    2. Pick the solid volume that needs to be removed. In this example, it is the Shell of the heat exchanger
    3. Hit ‘Apply’

    After all the operations are concluded exit CAD mode by clicking on ‘Save’. This will save the new version of the geometry in the Workbench for you to use.

    exporting a new cad model from the cad editing tool
    Figure 6: Click on the save button in the upper right corner to use the new version of the CAD model for simulations

    Note that the definition of boundary faces is optional for internal flow volume operations. This is because some CAD models do not have any openings, leading to no boundary faces.

    In the following image, you see the walls and ducting system of the theatre model highlighted in this tutorial. This theater room does not have any openings on the walls or duct system.

    theater room geometry without flow volume
    Figure 7: Original theater geometry without a flow volume

    If this is the case, the only mandatory definition for an internal flow volume creation is a seed face. By hiding some of the external faces of the theater you will be able to select a seed face on the inside of the model.

    1. Create an ‘Internal‘ flow volume operation
    2. Hide some external faces of the geometry and select one internal Seed face (blue)
    3. Leave the Boundary faces empty
    4. In case there are cell zones in your model, assign them to Excluded parts. If not, leave it empty.
    5. Hit ‘Apply’ to run the operation
    flow volume creation no boundary faces
    Figure 8: Any face that will be in contact with the flow region, such as a chair in the example above, can be assigned as a seed face

    After the flow volume extraction, you can delete the solid bodies to perform a convective heat transfer analysis. Finally, export the model to the Workbench by clicking on the ‘Save’ button in the upper right corner.

    theater room resulting flow region
    Figure 9: Result of the flow volume extraction operation for the theater room

    2. External Flow Volume

    Above all, this option is often suitable for external flow problems. First, you need to size the external flow volume, and then run the operation. For instance, the example below shows how to generate a half-symmetrical air domain for the car geometry from this tutorial.

    1. After entering the CAD editing tool, select an ‘External‘ flow volume operation
    2. Define the External flow volume size by adjusting the minimum and maximum coordinates of the flow domain box
    3. The seed face definition is optional. If you leave this field blank, SimScale assumes that you are interested in creating a flow region external to the CAD model
    4. In case there are cell zones in your model, assign them to Excluded parts. If not, leave it empty
    5. Hit ‘Apply’ to run the operation
    external flow volume creation simscale
    Figure 10: In this example, the external flow volume will act as a virtual wind tunnel

    In addition, delete the solid parts to be able to use the model in an analysis type that requires a single fluid region:

    1. Pick the ‘Delete’ operation under BODY
    2. Select the solid parts
    3. Hit ‘Apply’
    4. Click ‘Save’ to export the new CAD version to your Workbench
    exporting external flow domain to workbench
    Figure 11: Deleting the solid parts of the CAD model is necessary for single-region analysis types, such as incompressible simulations.

    When creating the external flow domain, pay attention to the box size. The size of the flow domain box should be large enough that the turbulent wake behind the model as well as the pressure region in front of the model does not reach the boundaries of the box. On the other hand, a large domain will likely increase the simulation expenses. Therefore, use your engineering judgment and/or best practices to size the flow domain.

    Running into errors

    If the above steps are not followed properly you may run into errors. The possible reasons for these errors are elaborated here.

    Note

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

    Last updated: January 1st, 2025

    Contents