This function computes the coordinates of boreholes evenly
distributed along the x
and y
axis,
given the number of boreholes (which must be the square of
an integer).
function computeCoordinates extends Modelica.Icons.Function; input Integer nBorHol "Number of boreholes"; input Modelica.Units.SI.Distance dxy = 6 "Distance in x-axis (and y-axis) between borehole axes"; output Modelica.Units.SI.Distance cooBor[nBorHol, 2] "Coordinates of boreholes"; end computeCoordinates;