When we look at the cells inside an unstructured block or domain, we notice that, in general, not all cells are the same size. In parts of the mesh where more refinement is needed, the cells are smaller while in other parts of the mesh where a coarser grid is sufficient, the cells are larger.

The cell size distribution on the interior of unstructured blocks and domains is driven by a size field (i.e. target spacing field) computed using three components: the background spacing, the calculation method, and the influencers. Note that the combination of the size field influencers and the background spacing allows for the control of target spacing away from grid topology where spacing is defined explicitly. In order for selected influencers to affect a given bounding domain or connector, it must be assigned to a T-Rex boundary condition with the Adapt option turned on.

The Size Field panel provides tools for controlling both global size field properties and individual influencers.

Unstructured Domain: Size Field Tab
The Size Field tab provides tools for selecting size field source or grid entities, controlling their attributes, and setting global parameters.

Note: The attributes in the Size Field tab have no impact if the Algorithm is set to Thin Surface Interpolation. However, they are still used when Thin Surface Interpolation cannot be applied and the Algorithm defaults to Advancing Front Ortho.

At the top of the Size Field panel, there is a simple table showing the number of domains currently selected.

Below the table, there is a Decay entry field where you can specify the decay factor to be applied to the bounding topology of the domain(s) being solved. The Decay parameter varies from 0.0 to 1.0; a value of 0.0 indicates no influence beyond the boundary of the influence topology while a value of 1.0 indicates maximum influence. This parameter defaults to the value specified in the Defaults panel. Uncheck Use Defaults to enter a new value.

The Background Spacing entry field allows you to specify a constant target spacing throughout the interior of the isotropic portion of the domain. This parameter defaults to the value specified in the Defaults panel. Uncheck Use Defaults to enter a new value. When left as the default value of 0.0, the Background Spacing is determined automatically as a blend of the maximum and average edge lengths on the domain's boundary.


Caution: The final size field can locally differ from the Background Spacing due to the influence of sources and grid entities marked as influencers (described below).

Once the source and/or grid influencers (described below) and the Background Spacing have been defined (or computed), the size field is calculated throughout the computational region as an interpolation of radial basis functions (RBFs) represented at discrete points. This means that a source created as a cylinder shape, for example, will have a discrete representation used for size field calculations. Furthermore, this point cloud representation will increase its density as spacing values get smaller. This, in turn, increases the time necessary to initialize the interior of unstructured domains and blocks.

Note that the set of RBFs used by Fidelity Pointwise take into account the background edge target (i.e. Background Spacing), the source edge target (i.e. the sources), distance to source, and source decay, among other attributes. The Calculation pull-down list provides a set of choices for how the spacing target will be determined at any given location in the grid:

  • Minimum Distance: Uses the closest source point to the grid point being influenced to determine the local target. This setting works well where there is strong variation in source influence. Could produce target flipping when equally close RBF points have significantly different targets. This is the default Calculation method.
  • Minimum Distance Calculation Method
    The Minimum Distance calculation method uses the closest source point to determine the local target. The circles represent the spacing associated with each source point.
  • Inverse Distance: Uses a weighted average of local source points where the weighting function is 1/(distance to source)2 This option will not work as well where there is strong variation in target element size due to the weighting. This weighting can smear the strong variation locally.
  • Inverse Distance Calculation Method
    The Inverse Distance calculation method uses a weighted average of the local source points based on the squared inverse distance. The circles represent the spacing associated with each source point.
  • Blend Distance: Blends the Minimum Distance value for near cloud points with the Inverse Distance value for far cloud points where near and far are a function of the local source distance. Works well for wall bounded type cases.
  • Blend Distance Calculation Method
    The Blend Distance calculation method blends the Minimum Distance and Inverse Distance calculation methods. The circles represent the spacing associated with each source point. The larger circle and larger arrow indicate the additional weight given to the closest source point from the blending of the Minimum Distance and Inverse Distance calculation methods.
  • Minimum Value: Simply takes the actual smallest target spacing from the nearby RBF points. Works well to reduce the formation of small islands of voxels near the surface when using the Voxel algorithm.
  • Minimum Value Calculation Method
    The Minimum Value calculation method uses the source point with the smallest value to determine the local target. The circles represent the spacing associated with each source point.


Unstructured Domain: Size Field, Sources Frame
The Sources frame provides tools to enable/disable sources for use as influencers by the solver and changing their attributes.

Tip: Sources can be used to control the grid density in unstructured blocks and domains while remaining independent of the database geometry and the grid topology.

At the top of the Sources frame, you will find the Ignore All Sources checkbox. You can use this option to quickly deactivate the use of all sources, regardless of their status in the table below. For a selected source, or sources, the Reverse option will swap the Begin and End spacings and decay factors. Start Interactive Edit provides graphical objects in the Display window which you can click with the mouse and drag to change the spacing values in a visual style. Below these three commands, there is a Legend frame showing the symbols representing the beginning (Begin) and ending (End) of sources as rendered in the Display window.

The table of sources at the bottom of the Sources frame provides a Use checkbox to either enable (checked) or disable (unchecked) the use of individual sources. By default, any source(s) located inside a region computed as twice the size of the bounding box of the selected domain(s) will be enabled for influence. Therefore uncheck any individual source you wish not to affect the cell size of the selected domains. You can use the Use All and Use None buttons below the table to quickly check or uncheck all sources.


Note: An out-of-sync icon ( In-Sync Sources Icon ) next to a domain's name in the List panel indicates that the current distribution of cells in the domain and its size field (affected by source entities) are not in-sync. This icon will remain displayed until the appropriate domain is updated by using the Initialize, Refine, Decimate, or Smooth commands on the Solve Tab.

In the second column of the table, the source Name is shown. These default names can be edited by double clicking the field and typing in a new name. In the third column, you can see the current source Spacing Type. Simply double click the field to change type if desired. See the Grid, Sources command for further information. The final four columns show the spacing and decay at the beginning and end of the sources; you can edit their values in the same way already described for the other columns.


Unstructured Block: Size Field, Grid Frame
The Grid frame provides tools to select grid entities for use as influencers by the solver and change their attributes.

At the top of the Grid frame, the Ignore Selected Grid Entities checkbox allows you to quickly deactivate the use of all grid entities currently listed in the table at the bottom of this panel. Right after this option, you will find a Selection frame where Begin starts a selection mode for selecting grid entities to be used as influencers. The command button becomes an End command to be clicked once the desired grid entities have been selected. Selected entities will then show up in the table below with Name, entity Type, and minimum and maximum cell edge lengths (Min. Edge and Max. Edge respectively). All of these columns are for information purposes only and cannot be edited.


Comprehensive Overview of Surface Mesh Adaptation

Surface Mesh Adaptation with Periodic Boundaries

Domain Proximity Refinement

Size Field Calculation

Size Field Calculation Method: Part 1

Size Field Calculation Method: Part 2

An Introduction to Sources

Creating Sources

Setting Source Attributes