Distribution
Use the Distribution () attribute to specify the distribution of mesh elements along an edge, a boundary (in 2D), or along the sweep direction, as seen in Figure 8-50.
Figure 8-50: A swept mesh with applied distributions along the sweep directions, both along the woven fibers, and in the infinite element domains (left). The image to the right shows a 2D mesh with a predefined exponential distribution along the selected edges (blue).
It is possible to add Distribution nodes both as global nodes and as local nodes. If there are several Distribution nodes in the sequence with a nonempty selection intersection, the mesher uses properties corresponding to the last Distribution node in the sequence for each selection of entities. Distribution properties always override properties defined by Size nodes sharing the same selections.
To add a Distribution attribute as a global node, select edges (3D) or boundaries (2D) and choose one of the following:
Right-click the Mesh node and select Distribution ().
In The Mesh Toolbar, click Sizing () and select Distribution.
To add a Distribution attribute as a local node, select edges (3D) or boundaries (2D) and choose one of the following:
Select a mesh operation in the Model Builder tree and click the Distribution () button in The Mesh Toolbar.
Geometric Entity Selection
Define the geometric entities where you want to specify a distribution. Choose Manual from the Selection list to select the entities in the Graphics window or choose All domains/boundaries/edges to select all available entities of that level.
Choose the level of the geometry from the Geometric entity level list (only available for global attributes in 3D):
Choose Domain to specify the domains for the distribution. Choose Manual in the Selection list to select the domains in the Graphics window, choose a named selection to refer to a previously defined selection, or choose All domains to select all domains.
Choose Edge to specify the edges for the distribution. Choose Manual from the Selection list to select the edges in the Graphics window, choose a named selection to refer to a previously defined selection, or choose All edges to select all edges.
The name of this section changes depending on the dimension of the component. The names are Edge Selection (local attributes in 3D), Boundary Selection (2D), or Domain Selection (1D and 3D), respectively. For global attributes in 3D, the name is Geometric entity level.
Distribution
There are three main types of distribution methods that you select from the Distribution type list:
Select Explicit to use an explicit, user-defined element distribution. To define the distribution of mesh elements, enter a vector-valued expression defining a strictly increasing sequence of nonnegative numbers (using comma-separated numbers) in the Relative placement of vertices along edge field, specifying the relative arc length values of the mesh vertices along the edge or boundary. Select the Reverse direction check box to reverse the direction of the explicit distribution.
Select Fixed number of elements (default) to use a fixed number of mesh elements, which you enter into the Number of elements field. Select the Equidistant check box to generate equally sized elements along the selected edges (3D) or boundaries (2D). The check box is only available for edge and boundary selections.
Select Predefined to specify properties of a predefined distribution method that can be either an exponentially or a linearly increasing or decreasing element size; see below for details. See Figure 8-50 for an example of a predefined exponential distribution.
Settings for the Predefined Distribution Type
In the Number of elements field, enter the number of elements (the default is 5 elements). To specify the ratio in size between the last element and first element in the distribution, use the Element ratio field (the default value is 1.0; that is, the first and the last elements have the same size). From the Growth rate list, select Linear for an element distribution based on an arithmetic sequence or select Exponential for an element distribution based on a geometric sequence. Select the Symmetric distribution check box to get a symmetric distribution of elements. The Element ratio will then define the ratio between the element in the middle of the distribution and the last element. Select the Reverse direction check box to switch the element distribution to the opposite direction along the edge or boundary. If you have specified several edges in the selection, the Reverse direction check box refers to the edge in the selection with the lowest entity number (the primary edge). For the other edges, their direction (with respect to the distribution) is such that the rotation with respect to the primary edge is minimized.
For tutorials where Distribution is used, see:
Swept Meshing of a Bracket Geometry:
Application Library path COMSOL_Multiphysics/Meshing_Tutorials/bracket_swept_mesh.
Using Meshing Sequences:
Application Library path COMSOL_Multiphysics/Meshing_Tutorials/meshing_sequence.