Defining Virtual Bodies

Virtual bodies are supported for assembly meshing algorithms only. If your model does not contain a “solid” to represent a flow region, a virtual body can be defined so that you can mesh the flow region without having to use the DesignModeler application or another solid modeler to model it. Virtual bodies are extremely beneficial in cases where it is not practical to extract flow volumes in a modeler. They can be defined by material point only, or by material point and a group of fluid surfaces.

As defined by a material point, the virtual body is an object that is defined by a coordinate system representing the origin of a material, and which extends from the origin until it reaches the face of another solid (i.e., as when a ray is traced from the origin to the closest solid).

The two main reasons for using a group of fluid surfaces to help define a virtual body are performance and mesh quality.

For example, consider a case involving a large assembly for which you want to analyze a small flow volume but have no interest in the solid mesh. If you define the virtual body by material point only, assembly meshing refines and resolves every solid in the assembly, and finally, using mesh separation and the material point, identifies the flow volume and discards the solid mesh. However, if you select a group of fluid surfaces to help define the virtual body, assembly meshing resolves only the boundaries of the fluid surfaces in the group; essentially, it ignores all other boundaries. This approach typically speeds up mesh generation by a factor of two or more.

With respect to mesh quality, using a group of fluid surfaces to help define a virtual body is a good idea if you have a fluids-only problem (Keep Solid Mesh is set to No) where within the solids there are 3D details and/or bodies that are smaller than the minimum size and hence would be problematic to resolve.

If fluid surface creation using the Extend to Connection option “leaks” to the outside of the domain, the leak needs to be closed. This approach provides an alternative way of detecting leaks. Extend to Connection is discussed in more detail below.


Note:
  • Virtual bodies and fluid surface objects are not supported when Meshing application capabilities are accessed from within the Mechanical application.

  • A virtual body and the optional group of fluid surfaces that is used to help define it are represented in the Tree Outline by Virtual Body objects and Fluid Surface objects respectively. A material point must be specified when a Fluid Surface object is being used to help define a virtual body. Both the Fluid Surface object and the Virtual Body object will remain underdefined until the material point is specified.

  • The Fluid/Solid material property for a virtual body is always set to Fluid (read-only).


Defining a Virtual Body

The steps for defining a virtual body are presented here.

  1. Select the Geometry object in the Tree Outline.

  2. Insert a Virtual Body object into the Tree using either of these methods:

    • Right-click on the Geometry object and select Insert > Virtual Body from the context menu.

    • Choose Virtual Body on the Geometry context toolbar.


    Note:  If this is the first Virtual Body object to be inserted, a Virtual Body Group object will be inserted into the Tree along with the Virtual Body object as its child object.


  3. In the Details View, specify a value for Visible. The default is Yes. If set to No, the resultant mesh of the virtual body will not appear in the Geometry window.

  4. Specify a value for Suppressed. The default is No. If set to Yes, the virtual body will be suppressed and will not be meshed, nor will it be sent to the solver if it is already meshed.

  5. In the Details View, Used By Fluid Surface specifies whether the virtual body is being used by a group of fluid surfaces. The default is No. If the virtual body will be used by a group of fluid surfaces, insert a Fluid Surface object into the Tree by right-clicking on the Virtual Body object and selecting Insert > Fluid Surface from the context menu.

    • Alternatively, you can change the setting to Yes in the Details View, and a new Fluid Surface object will be inserted under the Virtual Body object.

    • Only one Fluid Surface object can be associated to any one Virtual Body object.

    • If you switch the value of Used By Fluid Surface from Yes to No, the Fluid Surface object will be hidden.

  6. Click the Virtual Body object in the Tree to continue defining it. For Material Point, specify the coordinate system to be used for the virtual body, and the faces will be oriented accordingly. The default is Please Define.

    • The Fluid Surface object and Virtual Body object will remain underdefined until a material point is specified.

    • You can either select the default coordinate system or define a local coordinate system. In either case, the setting will be retained, even if the Used By Fluid Surface setting is changed later.

    The remaining fields for the virtual body are read-only:

    • Fluid/Solid - Always set to Fluid for virtual bodies.

    • Nodes, Elements, Mesh Metric - Data associated with the virtual body when meshed.

  7. If Used By Fluid Surface is No, the definition of the virtual body is now complete. If the virtual body will be used by a group of fluid surfaces (that is, Used By Fluid Surface is Yes), expand the Virtual Body object in the Tree Outline to expose the Fluid Surface object.

  8. To define and make adjustments to the group of fluid surfaces, click the Fluid Surface object and use the following controls. These controls appear in the Details View of the Fluid Surface object.

    • Faces To Group: In the Geometry window, select the faces that should be members of the group. Refer to the example of the aero valve assembly below for information about automating face selection.

    • Master Virtual Body: Read-only name of the master virtual body.

    • Priority: Determines which group will claim cells in cases where groups overlap. The priority is initially based on the rule: the smaller the volume, the higher the priority.

    • Suppressed: Read-only setting that is inherited from the virtual body.

Notes on Virtual Bodies

Remember the following information when defining virtual bodies:

Handling of Interfaces Between Bodies in Assembly Meshing

In cases where fluid extraction is successful in the DesignModeler application (or any other CAD package) but Shared Topology fails, and you plan to solve a conjugate heat transfer problem and hence keep the solid mesh, two problems may occur because you now have two boundaries all along the surface of the fluid domain:

To avoid these problems, you can suppress the fluid volume and use material point-based extraction inside assembly meshing.

For the example shown below, in the case of a Shared Topology failure, you could:

  1. Keep the Boolean subtraction operation but suppress the solid body and use a virtual body instead.

  2. Remove the Boolean subtraction operation in the DesignModeler application or CAD package so that the solid overlaps the same volume as the fluid (the meshing will do the volume extraction).

Alternatively, if the solids/fluids only partially touch as in the case shown below, mesh at the interface between Body 1 and Body 2 may get associated to either Face A or Face B. If you need to define a Named Selection for Face B, it should include both Face A and Face B to ensure proper association.


Note:  You must use a similar approach when applying inflation to shared faces between a solid body and a fluid body in cases involving multiple parts. That is, select both sets of overlapping faces when defining the local inflation control. See Applying Local (Scoped) Inflation Controls and Regenerating the Inflation Mesh for related information.


Because this approach may result in the Named Selection including the larger area (i.e., all of Face A), you may need to split out Face A with imprints to get the proper topology.

Using a Virtual Body to Separate a Fluid Region for Meshing

In cases where a solid spatially divides a fluid into multiple regions and you want to recover the mesh in only one region, you can use a virtual body and material point to define the region to be meshed.

For example, in Figure 186: Solid Bodies Dividing a Fluid Body, the image on the left shows a mesh group that consists of two solid bodies, and which divides a fluid body into multiple regions. The image on the right shows the corresponding mesh that is obtained using the CutCell algorithm.

Figure 186:  Solid Bodies Dividing a Fluid Body

Solid Bodies Dividing a Fluid Body
Solid Bodies Dividing a Fluid Body

Figure 187: Virtual Body Defined to Separate Fluid Region shows the same model, but in this case a virtual body and material point have been defined to further separate the fluid region. The image on the right shows the corresponding mesh that is obtained using the CutCell algorithm.

Figure 187:  Virtual Body Defined to Separate Fluid Region

Virtual Body Defined to Separate Fluid Region
Virtual Body Defined to Separate Fluid Region

Using the Extend to Connection Option with Fluid Surface Grouping

This example illustrates how you can use the Extend to Connection option and fluid surface grouping together to solve assembly meshing problems.

The first figure shows a model of an aero valve, for which a virtual body is being used to represent the flow volume. Notice the Material Point that is inside the virtual body.

Automatic connections were generated for the model and are highlighted in the figure below.

As described in the procedure above, to use a group of fluid surfaces to help define a virtual body, all of the faces that should be members of the group must be selected and assigned as the Faces To Group in the Details View. Using the face picker to select all of the faces manually in the Geometry window may be difficult. However, by using the Extend to Connection option, you need to select only one face on each body of the flow volume (that is, one face on each of the domains that will be “closed” by the connections). In the figure below, five faces have been picked.

After you select one face on each body of the flow volume, select the Extend to Connection option. In this example, the figure below shows the faces that are selected automatically after the Extend to Connection option is chosen. The option captures all faces that will “touch” the flow volume, except for any capping faces. The capping faces, such as the inlet face, must be picked manually. After all capping faces are picked, you can click the Faces To Group field in the Details View to apply your selection and then proceed with generating the mesh.

The figure below shows a view of the resulting mesh, with the inlet on the right.


Release 18.2 - © ANSYS, Inc. All rights reserved.