modelClusterBoreholes_100boreholes

Clustering of a field of 100 boreholes

Extends from Modelica.Icons.Example (Icon for runnable examples).

Information

This example uses a rectangular field of 10 by 10 boreholes to test the identification borehole clusters.

Parameters

TypeNameDefaultDescription
IntegernBor100Number of boreholes
Modelica.Units.SI.Position[nBor,2]cooBor{{7.5*mod(i - 1, 10), 7.5*floor((i - 1)/10)} for i in 1:nBor}Coordinates of boreholes
Modelica.Units.SI.HeighthBor150Borehole length
Modelica.Units.SI.HeightdBor4Borehole buried depth
Modelica.Units.SI.RadiusrBor0.075Borehole radius
Integerk4Number of clusters to be generated
Integer[nBor]labelsCluster label associated with each data point
Integer[k]cluSizSize of the clusters
Integer[nBor]labelsExp{1, 1, 2, 2, 2, 2, 2, 2, 1, 1, 1, 2, 4, 4, 4, 4, 4, 4, 2, 1, 2, 4, 4, 3, 3, 3, 3, 4, 4, 2, 2, 4, 3, 3, 3, 3, 3, 3, 4, 2, 2, 4, 3, 3, 3, 3, 3, 3, 4, 2, 2, 4, 3, 3, 3, 3, 3, 3, 4, 2, 2, 4, 3, 3, 3, 3, 3, 3, 4, 2, 2, 4, 4, 3, 3, 3, 3, 4, 4, 2, 1, 2, 4, 4, 4, 4, 4, 4, 2, 1, 1, 1, 2, 2, 2, 2, 2, 2, 1, 1}Expected cluster labels

Components

TypeNameDefaultDescription
BooleancmpComparison result

Revisions

  • June 9, 2022 by Massimo Cimmino:
    First implementation.