Skip to content
Snippets Groups Projects
Commit 9b9b37c7 authored by Christophe Geuzaine's avatar Christophe Geuzaine
Browse files

*** empty log message ***

parent 4f861ee1
No related branches found
No related tags found
No related merge requests found
...@@ -1927,26 +1927,31 @@ either in the GUI or on the command line (see @ref{Running Gmsh}, and ...@@ -1927,26 +1927,31 @@ either in the GUI or on the command line (see @ref{Running Gmsh}, and
@cindex Mesh, background @cindex Mesh, background
@cindex Background mesh @cindex Background mesh
There are two ways to specify the size of the mesh elements for a given There are three ways to specify the size of the mesh elements for a
geometry: given geometry:
@enumerate @enumerate
@item @item
You can specify characteristic lengths at the points of the geometrical First, if @code{Mesh.CharacteristicLengthFromPoints} is set (it is by
model (with the @code{Point} command: see @ref{Points}). The size of the default), you can simply specify characteristic lengths at the
mesh elements will then be computed by linearly interpolating these geometrical points of the model (with the @code{Point} command: see
characteristic lengths on the initial mesh (see @ref{Mesh}). This might @ref{Points}). The size of the mesh elements will then be computed by
sometimes lead to over-refinement in some areas, so that you may have to linearly interpolating these characteristic lengths on the initial mesh
add ``dummy'' geometrical entities in the model in order to get the (see @ref{Mesh}). This might sometimes lead to over-refinement in some
desired element sizes. areas, so that you may have to add ``dummy'' geometrical entities in the
model in order to get the desired element sizes.
This method works with all the algorithms implemented in the mesh This method works with all the algorithms implemented in the mesh
module. The final element sizes are of course constrained by the structured module. The final element sizes are of course constrained by the structured
algorithms for which the element sizes are explicitly specified (e.g., algorithms for which the element sizes are explicitly specified (e.g.,
transfinite and extruded grids: see @ref{Structured grids}). transfinite and extruded grids: see @ref{Structured grids}).
@item @item
You can specify characteristic lengths using mesh size Second, if @code{Mesh.CharacteristicLengthFromCurvature} is set (it is
``fields''. Various fields exist: not by default), the mesh will be adapted with respect to the curvature
of the geometrical entities.
@item
Finally, you can specify general characteristic lengths using mesh size
``fields''. Various fields exist:
@itemize @bullet @itemize @bullet
@item @item
A @code{PostView} field specifies an explicit background mesh in the A @code{PostView} field specifies an explicit background mesh in the
...@@ -1977,13 +1982,18 @@ computed using other fields ...@@ -1977,13 +1982,18 @@ computed using other fields
@item @item
@dots{} @dots{}
@end itemize @end itemize
All target element sizes specified by fields can also be constrained by
the characteristic lengths defined in the geometrical model if the
@code{Mesh.ConstrainedBackgroundMesh} option is set.
Fields are supported by all the algorithms except those based on Netgen. Fields are supported by all the algorithms except those based on Netgen.
@end enumerate @end enumerate
The three aforementioned methods can be used simultaneously, in which
case the smallest element size is selected at any given point.
All element sizes are further constrained by the
@code{Mesh.CharacteristicLengthMin}, @code{Mesh.CharacteristicLengthMax}
and @code{Mesh.CharacteristicLengthFactor} options (@pxref{Mesh
options})
Here are the mesh commands that are related to the specification of Here are the mesh commands that are related to the specification of
characteristic lengths: characteristic lengths:
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment