functionuniformGrid

Information

uniformGrid

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

TypeNameDefaultDescription
Modelica.SIunits.LengthLLength of the domain to mesh
IntegerNnumber of segments

Outputs

TypeNameDefaultDescription
Modelica.SIunits.Position[N + 1]xVector of vertice position