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
| Type | Name | Default | Description |
|---|---|---|---|
| Integer | nBor | 100 | Number 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.Height | hBor | 150 | Borehole length |
| Modelica.Units.SI.Height | dBor | 4 | Borehole buried depth |
| Modelica.Units.SI.Radius | rBor | 0.075 | Borehole radius |
| Integer | k | 4 | Number of clusters to be generated |
| Integer[nBor] | labels | Cluster label associated with each data point | |
| Integer[k] | cluSiz | Size 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
| Type | Name | Default | Description |
|---|---|---|---|
| Boolean | cmp | Comparison result |
Revisions
-
June 9, 2022 by Massimo Cimmino:
First implementation.