functionuniformGrid
Information
This functions gives the position of the vertices that form segments. The position is computed to insure an equal distance between all the vertices. The distance between vertices derives:
Where :
- x is the vector of size N+1 of position of the vertex that form the segment of the mesh of the domain
- N is the number of segments
- 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 |
Outputs
| Type | Name | Default | Description |
|---|---|---|---|
| Modelica.SIunits.Position[N + 1] | x | Vector of vertice position |