functiongeometricalGrowthGrid
Information
This functions gives the position of the vertices that form segments. The position is computed to insure a geometrical increase of the distance between a vertex and its next.
if symmetricalMesh is true, the mesh is symmetrical on both sides of the middle of the domain. In that case, one of the two different processes are run depending on whether the number of nodes (segments) N is even or not.
The distance between vertices derives for odd number of segments:
The distance between vertices derives for even number of segments:
if symmetricalMesh is false, the mesh grows from the start to the end of the domain. The distance between vertices derives:
Where :
- symmetricalMesh is a boolean to select if the mesh is symetric to the middle of the domain
- x is the vector of size N+1 of position of the vertex that form the segment of the mesh of the domain
- dx is length of the first segment
- q is the geometric progression of the length of the segment. q ≠ 1
- N is the number of segments
- n is the integer part of the division of segments by 2
- L is the length of the domain to mesh
A mesh divided into N segments contains N+1 vertices. That is why the size of x is N+1.
Inputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Length | L | Length of the domain to mesh | |
| Integer | N | number of segments | |
| Real | q | Growth rate | |
| Boolean | symmetricalMesh | true | Axial symmetry mesh where the axis is the middle of the domain |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Position[N + 1] | x | Vector of vertice position |