Documentation
The Standard mesher operation type uses a finite volume mesher. This tool generates a three-dimensional unstructured mesh using tetrahedral or hexahedral elements.
Shown below are the default settings that the mesh will contain:
The Sizing defines how coarse or fine the discretization of the input geometry will be. The sizing control can be set to automatic, where local properties are adjusted automatically based on geometrical estimations. Manual sizing can also be applied where a minimum and a maximum edge length can be defined.
Automatic Sizing
For the automatic sizing, only a global mesh fineness needs to be defined and all additional parameters will be set automatically according to the geometry features and the chosen fineness. Its value defines the characteristic element size for each solid, ranging from 1 – very coarse to 10 – very fine.
A fine mesh will result in a better resolution of small geometric features, but will also increase the computation time and memory demand of the simulation. The standard setting of 5 (moderate) will usually provide a good compromise between accuracy and resource consumption and is recommended for a first trial.
For mesh independence or convergence studies the sizing can be refined.
Manual Sizing
Manual sizing gives you the freedom to define the maximum edge length and the minimum edge length of the cells. The intermediate cell size is adjusted accordingly.
Mesh Order for Structural Simulations
For Structural simulations (solid mechanics) the mechanical and thermal order of the mesh, i.e., first or second order, can be defined under the Element technology item in the simulation tree.
This feature, when enabled, builds layered mesh cells next to only those surfaces of the CAD model which are assigned a wall boundary condition. The settings and their functions are the same as described for inflate boundary layer feature below.
This feature, when enabled, builds the mesh taking into account the information entered as a part of the simulation setup. This important information ranges from the material properties, boundary conditions, additional source terms (e.g., momentum and power sources), etc. Essentially, the physics involved in the fluid simulation is given priority while sizing the mesh elements.
The following adaptations are primarily observed when Physics-based meshing is toggled on:
Important
If you attempt to generate a mesh with physics-based meshing enabled while the simulation setup is invalid, the following error message will appear:
The message above means that the current simulation setup is invalid. This could happen for many reasons, for example:
If this warning message comes up, the recommendation is to click on ‘Continue simulation setup’ and fix the problematic settings in the simulation setup. The easiest way to find out what the invalid settings are is by attempting to start a simulation:
By going through the list of invalid settings, it is possible to fix the simulation setup and proceed with the mesh generation normally.
This defaults to ‘on’ for CFD and ‘off’ for FEA. When activated the interior of the mesh gets covered with hexahedral elements. The transition from hexahedral to triangulated surface mesh is done using pyramidal and tetrahedral elements.
It is recommended to leave the default settings alone.
This defines the machine size that the mesh will be created on. Most meshes will be successful on a 16-core machine and this is a great starting point.
Learn with the video!
Here’s a short video on the Basics of Meshing in SimScale. It explains different parameters from the mesh settings panel.
When set to zero, advanced settings do not affect the meshing process. Two options can prove helpful when working with highly detailed geometry.
This can be used to ignore small surfaces during the meshing process. It essentially merges surfaces to avoid unnecessary levels of refinement around small features.
You get to define a minimum edge length below which small features like tiny edges or sliver faces should not be resolved during meshing. Setting it to ‘0’ would mean a request to resolve every detail leading to a large mesh size.
This feature enables users to better capture small gaps in the model. For example, the air between the fins of a heat sink or even the solid heat-sink fins themselves.
The gap refinement factor is better defined as the ratio between the gap thickness and the mesh edge length in the gap:
The default value of 0.05 is there to guarantee that the elements across a thin gap are not too flat causing quality to decrease substantially.
The feature does not guarantee a specific number of cells across the gap thickness since it is dependent on the algorithm’s constraints to accommodate the right amount of cells by an approximate gap thickness to desired cell size ratio. For example, if a value of 1.5 is entered, it is expected that 1-2 cells will be accommodated across the minimum gap thickness, and this will naturally change when the gap thickness gradually increases.
Consider the following image of a meshed “gap” which has a slight taper for illustration purposes. Note how setting a gap refinement factor for 2 accommodates the cells in the small gap thickness.
For the same meshed solid, notice how the number of cells across the gap change as the thickness increases further for the same gap refinement factor of 2. So as explained earlier, the factor does not guarantee a specific number of cells across the gap and is dependent on constraints on the mesher that need to be taken into account for a consistent mesh.
The Global gradation rate is the ratio between the size of two adjacent cells in the computational domain. This setting controls how quickly the cells transition from small to large.
The global gradation rate can receive any value between 1 and 3. By default, it has a value of 1.22, which is a good compromise between cell size transition and mesh size. Defining a gradation rate of 1 causes the resulting mesh to be uniform, with the smallest cell size everywhere. For larger gradation rates, the transition from small to large cells accelerates.
Setting a value of 1 is not recommended, since the resulting meshes may be very large. Similarly, setting large values for the gradation rate is also not desired, as the cell size transition will be abrupt.
Mesh refinements can be used to refine the mesh locally and only where it is needed. This enables the generation of very efficient meshes concerning result accuracy versus computational resource demand.
A mesh refinement can be added via the Refinements node in the meshing tree. Current mesh refinement types allowed are:
Important
Local settings will always override the global setup for the assigned entities. If multiple refinements of the same type are defined on the same entities, the algorithm opts for the finer setting irrespective of the order in which the refinement levels were assigned. Multi-refinement, however, should be avoided for clarity purposes.
A region refinement is used to refine the volume mesh for one or more user-specified volume regions. The refinement can be assigned to volumes, topological entity sets of volumes, or geometry primitives. For the Standard mesher, there are two types of refinement modes available: Inside and Distance.
Note
Region refinement refines everything within the selected assignment. Therefore, when assigning volume and geometry primitive at the same time, pay attention to what is common between them.
If the assigned geometry primitive is completely enclosed within the assigned volume, then the volume assignment will override the geometry primitive. This means if you only want to refine a certain region of a volume (or part), then only use geometry primitive and do not assign the entire volume.
For both the above methods, a maximum edge length can be defined. The meshing algorithm is developed such that finer features on your CAD model will get appropriate mesh sizing.
A volume custom sizing refinement is similar to a region refinement, being assigned to parts or geometry primitives. The difference is the method to define the sizing of the mesh elements.
When using an Automatic sizing, the mesh element sizing is controlled by automatic Fineness levels, which take the geometrical properties into account.
It is possible to use a Custom sizing, allowing the definition of a Default and Minimum element size within the selected regions.
This is applied to surfaces of the CAD model and gives the surface a relatively uniform mesh based on the input of maximum edge length for the mesh elements.
The algorithm will apply a finer size where mesh quality restrictions or geometrical details require so.
Surface custom sizing is an alternative way to define local element size to faces.
Very much like a volume custom sizing refinement, the surface custom sizing refinement allows an Automatic sizing based on a Fineness of interest.
Alternatively, a Custom sizing allows the definition of Default and Minimum size for the mesh on selected faces.
This adds a volume mesh with prismatic cells aligned to the surface of the assigned faces. Only faces of the geometry domain can be assigned for refinement. This feature is generally used to refine the boundary layer to capture it better. The following four parameters are required as inputs:
This meshing type automatically enables structured mesh, only for FEA simulations. When enabled, the toggle shows an initially collapsed drop-down menu with such relevant options to sweep meshing.
The available options are:
This refinement, currently available only for solid mechanics analysis types, meshes a given volume with layers of prisms, sweeping from a start to an end face of the same volume. Please note that this refinement only works for bodies that can be entirely swept.
The following settings are required in the setup:
The result of the mesh settings shown above is the following:
A partial thin mesh can be used to create a structured mesh with multiple layers on a portion of the geometry, ideally a thin wall. It differs from sweep meshing, in that the set of start and end faces does not require a one-to-one mapping. The requirement is more relaxed and only needs a linear path between the faces in a thin direction. Also, this refinement can fully or partially fill the geometry region.
The following parameters are available for the setup:
There can only be one thin meshing refinement per geometry region.
A cell zone is a collection of cells grouped. It is a part (volume) of the CAD model that needs to be present before the model is imported to the Workbench. Cell zones are required to assign specific properties to a subset of cells, like defining it as a rotating region (MRF-Multiple Reference Frame or AMI-Arbitrary Mesh Interface), a momentum source, a power source, porous media, or a passive scalar source. This feature only appears when the Physics-based meshing feature is toggled off.
When Physics-based meshing is toggled on users don’t have to worry about creating a separate cell zone as it will automatically be taken care of. This saves a lot of time that would otherwise be spent creating cell zones one by one in case there are plenty of them.
A list of meshing tutorials can be found in the tutorial section.
Last updated: November 10th, 2023
We appreciate and value your feedback.
What's Next
Standard Mesherpart of: Meshing in SimScale
Sign up for SimScale
and start simulating now