Understanding the Influence of the Size Function

An important aspect of meshing in Workbench is the size function. The size function that the mesher uses is determined by the setting of the Size Function feature. The Size Function feature and the mesh method being used (see Size Function), which is available as a global mesh control in the Sizing group, provides greater control over how the mesh size is distributed on a face or within a body. Turning on the Size Function provides much more accurate sizing information to the mesher.

Meshing with the Size Function Off

When the Size Function control is Adaptive, the mesher uses the value of the element size property to determine a starting point for the mesh size. The value of the element size property can be automatically computed by the mesher (Default; refer to the description of the bounding box) or user-defined. When meshing begins, edges are meshed with this size initially, and then they are refined for curvature and 2D proximity. Next, mesh based defeaturing and pinch control execution occurs. The final edge mesh is then passed into a least-squares fit size function, which guides face and volume meshing.

Meshing with the Size Function On

When the Size Function is on, the following factors contribute to the final mesh distribution obtained by the mesher:

A size function is computed when meshing begins. The mesher examines the size sources and, based on the smallest size obtained at the location of the sources, the distance to each source, and the growth rate, the smallest size at each point is selected and stored in a background grid. The mesher uses the sizes from the background grid to generate a mesh. The background grid is refined automatically to provide size distribution to the mesher.


Note:
  • The influences of scoped local element sizing, sphere of influence scoped to a body, body of influence scoped to a body, and existing meshes are always active when the Size Function is Uniform, Curvature, Proximity, or Proximity and Curvature. In contrast, you have explicit control over whether you want to activate the influences of curvature, proximity, both, or neither (uniform).

  • The size function works within parts, but not across parts.

  • When the size function is Curvature, Proximity, or Proximity and Curvature, the default pinch tolerance is 90% of the value of Min Size/Proximity Min Size (whichever is smaller). This differs from the tolerance used by the default mesh based defeaturing; refer to Mesh Defeaturing for details.


Overriding Size Function Minimum and Maximum Sizes

One of the most important values related to the size function is minimum size (Min Size and Proximity Min Size controls). Setting a value for minimum size that is too small may lead to an unnecessarily fine mesh and longer meshing time. On the other hand, setting a value that is too large may mean that important features are not captured by the mesh. You should also be concerned about setting a minimum size that is smaller than the geometry tolerances or defeaturing sizes as the mesher could refine the mesh smaller than holes/gaps in the geometry, thereby making it difficult for meshing to be successful.

Although minimum size is set to a certain value, a smaller sized mesh may be obtained locally if:

In the two cases above, the size function will automatically reduce the minimum size locally to ensure that the size transition between the scoped entity and the surrounding mesh follows the prescribed size function Growth Rate.

However, you should also be aware of the following cases, in which the size function will NOT reduce the minimum size locally:

For the case involving small geometric features, you must either remove the small features or assign scoped sizes to them to ensure a smooth size transition. For the case involving a swept mesh in a multibody part, you must add additional sizing controls to ensure a smooth size transition between swept regions where a cross-sectional reduction results in a mesh size that is smaller than the minimum size.

Similarly, you can scope a Hard size that is larger than the values that are specified by the Size Function's Max Face Size and Max Tet Size options, as long as the size function produces a smooth size transition away from the scoped entity.

Changes to the Details View When the Size Function Is On

The Details View changes when the Size Function control is on. Additional controls appear that are dependent on the selected setting. In addition, the Element Size control is no longer exposed and is replaced by the Min Size/Proximity Min Size, Max Face Size, and Max Tet Size controls. (Max Tet Size is hidden if there are no solids in your model.) These controls are used by the Size Function independent of the Element Size.

Similar to the Element Size control, the value of the Max Face Size control can be input by the user or automatically computed by the mesher (Default; refer to the description of the bounding box). Furthermore, if you specified a value for Element Size before setting the Size Function control to on, that size value will be carried over to the Max Face Size control field (where you can modify it if desired). Similarly, the Max Face Size control and Element Size control will share the same Default value.

For information about parameterization of the Element Size and Max Face Size controls, refer to Working with Meshing Application Parameters.

Controls Exposed Based on the Size Function

For information about the individual controls that are exposed in the Details View when Size Function is Uniform, Curvature, Proximity, or Proximity and Curvature, see Size Function.

Using a Size Function with Specialized Meshing

Remember the following information when using the Size Function with specialized meshing:

Usage Notes for the Size Function

Remember the following additional information when using the Size Function:


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