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.
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 (; 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.
When the Size Function is on, the following factors contribute to the final mesh distribution obtained by the mesher:
The value of the Min Size/Proximity Min Size option
The value of the Max Face Size option
The value of the Max Tet Size option
The value of the Growth Rate option
The size source, which can be any of the following:
Edge and face curvature, based on the normal angle variation between adjacent mesh elements in 2D (edge) or 3D (face)
Edge and face proximity, based on the number of element layers created between a gap between edges in 2D or between faces in 3D
Local element sizing on selected edges, faces, or bodies
Sphere of influence scoped to a selected body or vertex (sphere of influence cannot be scoped to an edge or face when the Size Function is on)
Body of influence scoped to a selected body
Influence of a swept body
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.
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.
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:
A scoped size (on an edge, face, or body) has been assigned that is smaller than Min Size/Proximity Min Size
A sphere of influence has been assigned, and the assigned size is smaller than Min Size/Proximity Min Size
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:
A case involving a geometric feature (edge, face) that is smaller than the minimum size (when Pinch is not activated)
A case involving a swept mesh in a multibody part, where the boundary of the swept mesh is smaller than the minimum size due to a reduction of cross-sectional size in the swept region
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 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.
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 (; 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 value.
For information about parameterization of the Element Size and Max Face Size controls, refer to Working with Meshing Application Parameters.
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.
Remember the following information when using the Size Function with specialized meshing:
There are certain situations in which using a Size Function is highly recommended. For example, for models involving 2D inflation or inflation on a swept body, a smoother transition of elements growing away from the boundary cap is obtained when the Size Function is on. This is due to the injection of the boundary cap information into the background grid. (Note that for 2D inflation, this effect is applicable only to quadrilateral meshes. The Size Function does not support 2D inflation for triangular meshes.)
If you are using a Size Function with sweeping for a CFD problem and poor quality elements are generated in the swept mesh, adding a local hard edge sizing control to the swept region is the recommended approach to prevent the poor quality elements. However in some cases, particularly those in which proximity is not needed, you can use an alternative approach:
In the Global mesh sizing controls, set the value of Curvature Normal Angle to 90.
Using Local mesh sizing controls, scope a body sizing control to the tet body and set the value of Curvature Normal Angle to 18.
(Optionally) in the Global mesh sizing controls, set the value of Relevance Center to to obtain a finer mesh in the swept region.
In some situations, the mesh will exceed the applied Max Face Size setting to create a better quality mesh. To set a strict upper limit for each element edge, set the Max Face Size to a size slightly smaller than the desired size.
In models with swept regions, the Size Function will affect the mesh gradation in the swept region. You can override this effect by specifying any Sweep Bias value (including a value of 1), Sweep Element Size value, or Sweep Num Divs value in the Details View when defining the Sweep method.
Remember the following additional information when using the Size Function:
When the Size Function is on, Hard edge size information is injected into the background grid during the meshing process. Transitions between Hard edges (or any edge to which Bias Type/Bias Factor has been applied) and adjacent edges and face meshes may be abrupt. Edges with Hard edge sizing or bias will also override the Max Face Size and Max Tet Size properties.