references
cable_to_beta_plane
cable_to_beta_plane(
x: ndarray,
z: ndarray,
beta: ndarray,
a_chain: ndarray,
b_chain: ndarray,
) -> tuple[ndarray, ndarray, ndarray]
cable_to_beta_plane is a function that allows to rotate from cable 2D plan to span 3D frame with an angle beta
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
n x d array spans x coordinates |
required |
|
ndarray
|
n x d array spans z coordinates |
required |
|
ndarray
|
n array angle rotation |
required |
Returns:
| Name | Type | Description |
|---|---|---|
x_span |
ndarray
|
Rotated x coordinates in the span 3D frame. |
y_span |
ndarray
|
Rotated y coordinates in the span 3D frame. |
z_span |
ndarray
|
Rotated z coordinates in the span 3D frame. |
Source code in src/mechaphlowers/core/geometry/references.py
79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 | |
cable_to_localsection_frame
cable_to_localsection_frame(
x: ndarray,
y: ndarray,
z: ndarray,
azimuth_angle: ndarray,
) -> tuple[ndarray, ndarray, ndarray]
cable_to_localsection_frame is a function that rotates the cable coordinates from the cable frame to the localsection frame The localsection frame is the the section frame with origin at the left support of the cable, but with the same axes than the section frame.
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
n x d array spans x coordinates |
required |
|
ndarray
|
n x d array spans y coordinates |
required |
|
ndarray
|
n x d array spans z coordinates |
required |
|
ndarray
|
absolute angle of the span (radians) |
required |
Returns:
| Name | Type | Description |
|---|---|---|
x_span |
ndarray
|
Rotated x coordinates in the localsection frame. |
y_span |
ndarray
|
Rotated y coordinates in the localsection frame. |
z_span |
ndarray
|
Rotated z coordinates in the localsection frame. |
Source code in src/mechaphlowers/core/geometry/references.py
21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 | |
translate_cable_to_support
translate_cable_to_support(
x_span: ndarray,
y_span: ndarray,
z_span: ndarray,
altitude: ndarray,
span_length: ndarray,
crossarm_length: ndarray,
insulator_length: ndarray,
line_angle: ndarray,
displacement_vector: ndarray,
ground_altitude: ndarray,
) -> tuple[ndarray, ndarray, ndarray]
Translate cable using altitude and span length
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
x coordinates rotated |
required |
|
ndarray
|
y coordinates rotated |
required |
|
ndarray
|
z coordinates rotated |
required |
|
ndarray
|
conductor heigth altitude |
required |
|
ndarray
|
span length |
required |
|
ndarray
|
crossarm length |
required |
|
ndarray
|
insulator length |
required |
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray, ndarray]
|
tuple[np.ndarray, np.ndarray, np.ndarray]: translated x_span, y_span and z_span |
Source code in src/mechaphlowers/core/geometry/references.py
213 214 215 216 217 218 219 220 221 222 223 224 225 226 227 228 229 230 231 232 233 234 235 236 237 238 239 240 241 242 243 244 245 246 247 248 249 250 251 252 253 254 255 256 257 258 259 260 261 262 | |
translate_cable_to_support_from_attachments
translate_cable_to_support_from_attachments(
x_span: ndarray,
y_span: ndarray,
z_span: ndarray,
attachment_coords: ndarray,
) -> tuple[ndarray, ndarray, ndarray]
Translate cable using altitude and span length
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
x coordinates rotated |
required |
|
ndarray
|
y coordinates rotated |
required |
|
ndarray
|
z coordinates rotated |
required |
|
ndarray
|
coordinates of the attachement of the cable |
required |
Returns:
| Type | Description |
|---|---|
tuple[ndarray, ndarray, ndarray]
|
tuple[np.ndarray, np.ndarray, np.ndarray]: translated x_span, y_span and z_span |
Source code in src/mechaphlowers/core/geometry/references.py
268 269 270 271 272 273 274 275 276 277 278 279 280 281 282 283 284 285 286 287 288 289 290 | |
translate_to_absolute_frame
translate_to_absolute_frame(
x: ndarray,
y: ndarray,
z: ndarray,
translation_vector: ndarray,
) -> tuple[ndarray, ndarray, ndarray]
From local frame to absolute frame x/y/z are already rotated Used for obstacles
Source code in src/mechaphlowers/core/geometry/references.py
293 294 295 296 297 298 299 300 301 302 303 304 305 306 307 | |
vectors_to_points
vectors_to_points is a function that allows to stack x, y and z arrays into a single array
vectors are a n x d array where n is the number of points per span and d is the number of spans points are a n x 3 array where n is the number of points per span and 3 is the number of coordinates
Parameters:
| Name | Type | Description | Default |
|---|---|---|---|
|
ndarray
|
n x d array spans x coordinates |
required |
|
ndarray
|
n x d array spans y coordinates |
required |
|
ndarray
|
n x d array spans z coordinates |
required |
Returns:
| Type | Description |
|---|---|
ndarray
|
np.ndarray: 3 x n array vector coordinates |
Source code in src/mechaphlowers/core/geometry/references.py
52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 | |