trenchfoot 0.3.1__py3-none-any.whl → 0.4.1__py3-none-any.whl

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.

Potentially problematic release.


This version of trenchfoot might be problematic. Click here for more details.

@@ -223,9 +223,9 @@ def default_scenarios() -> List[ScenarioDefinition]:
223
223
  ],
224
224
  "boxes": [
225
225
  {
226
- "along": 0.8,
227
- "across": 0.5,
228
- "height": 0.4,
226
+ "along": 0.4,
227
+ "across": 0.3,
228
+ "height": 0.25,
229
229
  "s": 0.55,
230
230
  "offset_u": 0.0,
231
231
  }
@@ -266,7 +266,7 @@ def default_scenarios() -> List[ScenarioDefinition]:
266
266
  "angle_deg": 45,
267
267
  "s_center": 0.55,
268
268
  "z": -0.65,
269
- "offset_u": -0.2,
269
+ "offset_u": -0.4,
270
270
  },
271
271
  {
272
272
  "radius": 0.08,
@@ -304,7 +304,7 @@ def default_scenarios() -> List[ScenarioDefinition]:
304
304
  "radius": 0.2,
305
305
  "length": 5.5,
306
306
  "angle_deg": 10,
307
- "s_center": 0.35,
307
+ "s_center": 0.2,
308
308
  "z": -0.4,
309
309
  "offset_u": 0.3,
310
310
  "clearance_scale": 0.9,
@@ -324,8 +324,8 @@ def default_scenarios() -> List[ScenarioDefinition]:
324
324
  "along": 1.2,
325
325
  "across": 0.9,
326
326
  "height": 0.35,
327
- "s": 0.55,
328
- "offset_u": -0.25,
327
+ "s": 0.45,
328
+ "offset_u": -0.4,
329
329
  "z": -0.35,
330
330
  }
331
331
  ],
@@ -344,12 +344,12 @@ def default_scenarios() -> List[ScenarioDefinition]:
344
344
  ScenarioDefinition(
345
345
  "S06_bumpy_wide_loop",
346
346
  {
347
- "path_xy": [[0, 0], [4, -1], [8, 0], [8, 5], [2, 5], [-1, 2]],
347
+ "path_xy": [[0, 0], [4, -1], [8, 0], [8, 5], [2, 5], [-1, 2], [0, 0]],
348
348
  "width": 2.6,
349
349
  "depth": 0.85,
350
350
  "wall_slope": 0.12,
351
351
  "ground_margin": 2.0,
352
- "ground": {"z0": 0.2, "slope": [0.015, 0.03], "size_margin": 1.8},
352
+ "ground": {"z0": 0.2, "slope": [0.015, 0.03], "size_margin": 1.8, "fill_interior": True},
353
353
  "pipes": [
354
354
  {
355
355
  "radius": 0.18,
@@ -395,41 +395,41 @@ def default_scenarios() -> List[ScenarioDefinition]:
395
395
  "ground_margin": 1.0,
396
396
  "ground": {"z0": 0.0, "slope": [0.0, 0.0], "size_margin": 2.0},
397
397
  "pipes": [
398
- # Upper pipe - large diameter, horizontal
398
+ # Upper pipe - tangential
399
399
  {
400
400
  "radius": 0.20,
401
- "length": 4.0,
401
+ "length": 8.0,
402
402
  "angle_deg": 0,
403
- "s_center": 0.25,
403
+ "s_center": 0.0,
404
404
  "z": -0.5,
405
- "offset_u": 0.0,
405
+ "offset_u": -0.4,
406
406
  },
407
- # Middle pipe - medium, angled
407
+ # Middle pipe - tangential
408
408
  {
409
409
  "radius": 0.15,
410
- "length": 3.5,
411
- "angle_deg": 45,
410
+ "length": 7.5,
411
+ "angle_deg": 0,
412
412
  "s_center": 0.5,
413
413
  "z": -1.2,
414
- "offset_u": 0.1,
414
+ "offset_u": -0.4,
415
415
  },
416
- # Lower pipe - small, opposite angle
416
+ # Lower pipe - tangential
417
417
  {
418
418
  "radius": 0.10,
419
- "length": 3.0,
420
- "angle_deg": -60,
421
- "s_center": 0.75,
419
+ "length": 7.0,
420
+ "angle_deg": 0,
421
+ "s_center": 0.25,
422
422
  "z": -1.8,
423
- "offset_u": -0.15,
423
+ "offset_u": -0.4,
424
424
  },
425
- # Deep pipe - crossing at bottom
425
+ # Deep pipe - tangential
426
426
  {
427
427
  "radius": 0.12,
428
- "length": 3.2,
429
- "angle_deg": 90,
430
- "s_center": 0.0,
428
+ "length": 7.5,
429
+ "angle_deg": 0,
430
+ "s_center": 0.75,
431
431
  "z": -2.2,
432
- "offset_u": 0.0,
432
+ "offset_u": -0.4,
433
433
  },
434
434
  ],
435
435
  "boxes": [],
@@ -6,6 +6,7 @@ _TRENCH_COLORS = {
6
6
  "trench_bottom": "#d2a679",
7
7
  "trench_cap_for_volume": "#e6cfa4",
8
8
  "ground_surface": "#b0b0b0",
9
+ "inner_column_lid": "#b0b0b0", # same as ground
9
10
  }
10
11
 
11
12
  _PIPE_COLORS = ["#1f77b4", "#ff7f0e", "#2ca02c", "#d62728", "#9467bd", "#8c564b"]
@@ -8,22 +8,41 @@
8
8
  "vertices_xy": [
9
9
  [
10
10
  0.0,
11
- 0.5
11
+ -0.5
12
12
  ],
13
13
  [
14
- 5.0,
14
+ 0.0,
15
15
  0.5
16
16
  ],
17
17
  [
18
18
  5.0,
19
- -0.5
19
+ 0.5
20
20
  ],
21
21
  [
22
- 0.0,
22
+ 5.0,
23
23
  -0.5
24
24
  ]
25
25
  ],
26
26
  "z_level": 0.0
27
+ },
28
+ "surface_groups": {
29
+ "trench_bottom": {
30
+ "normal_direction": "up",
31
+ "surface_type": "floor"
32
+ },
33
+ "trench_walls": {
34
+ "normal_direction": "inward",
35
+ "surface_type": "wall"
36
+ },
37
+ "ground_surface": {
38
+ "normal_direction": "up",
39
+ "surface_type": "ground"
40
+ }
41
+ },
42
+ "embedded_objects": {
43
+ "pipes": 0,
44
+ "boxes": 0,
45
+ "spheres": 0
27
46
  }
28
47
  }
29
48
  }
@@ -8,22 +8,53 @@
8
8
  "vertices_xy": [
9
9
  [
10
10
  0.0,
11
- 0.6
11
+ -0.6
12
12
  ],
13
13
  [
14
- 6.0,
14
+ 0.0,
15
15
  0.6
16
16
  ],
17
17
  [
18
18
  6.0,
19
- -0.6
19
+ 0.6
20
20
  ],
21
21
  [
22
- 0.0,
22
+ 6.0,
23
23
  -0.6
24
24
  ]
25
25
  ],
26
26
  "z_level": 0.0
27
+ },
28
+ "surface_groups": {
29
+ "trench_bottom": {
30
+ "normal_direction": "up",
31
+ "surface_type": "floor"
32
+ },
33
+ "trench_walls": {
34
+ "normal_direction": "inward",
35
+ "surface_type": "wall"
36
+ },
37
+ "ground_surface": {
38
+ "normal_direction": "up",
39
+ "surface_type": "ground"
40
+ },
41
+ "pipe0_pipe_side": {
42
+ "normal_direction": "outward",
43
+ "surface_type": "embedded_object"
44
+ },
45
+ "pipe0_pipe_cap_neg": {
46
+ "normal_direction": "outward",
47
+ "surface_type": "embedded_object"
48
+ },
49
+ "pipe0_pipe_cap_pos": {
50
+ "normal_direction": "outward",
51
+ "surface_type": "embedded_object"
52
+ }
53
+ },
54
+ "embedded_objects": {
55
+ "pipes": 1,
56
+ "boxes": 0,
57
+ "spheres": 0
27
58
  }
28
59
  }
29
60
  }
@@ -6,13 +6,17 @@
6
6
  "trench_opening": {
7
7
  "type": "polygon",
8
8
  "vertices_xy": [
9
+ [
10
+ 0.0,
11
+ -0.6
12
+ ],
9
13
  [
10
14
  0.0,
11
15
  0.6
12
16
  ],
13
17
  [
14
18
  5.4,
15
- 0.0
19
+ 0.6
16
20
  ],
17
21
  [
18
22
  5.4,
@@ -24,14 +28,57 @@
24
28
  ],
25
29
  [
26
30
  6.6,
27
- 0.0
28
- ],
29
- [
30
- 0.0,
31
31
  -0.6
32
32
  ]
33
33
  ],
34
34
  "z_level": 0.0
35
+ },
36
+ "surface_groups": {
37
+ "trench_bottom": {
38
+ "normal_direction": "up",
39
+ "surface_type": "floor"
40
+ },
41
+ "trench_walls": {
42
+ "normal_direction": "inward",
43
+ "surface_type": "wall"
44
+ },
45
+ "ground_surface": {
46
+ "normal_direction": "up",
47
+ "surface_type": "ground"
48
+ },
49
+ "pipe0_pipe_side": {
50
+ "normal_direction": "outward",
51
+ "surface_type": "embedded_object"
52
+ },
53
+ "pipe0_pipe_cap_neg": {
54
+ "normal_direction": "outward",
55
+ "surface_type": "embedded_object"
56
+ },
57
+ "pipe0_pipe_cap_pos": {
58
+ "normal_direction": "outward",
59
+ "surface_type": "embedded_object"
60
+ },
61
+ "pipe1_pipe_side": {
62
+ "normal_direction": "outward",
63
+ "surface_type": "embedded_object"
64
+ },
65
+ "pipe1_pipe_cap_neg": {
66
+ "normal_direction": "outward",
67
+ "surface_type": "embedded_object"
68
+ },
69
+ "pipe1_pipe_cap_pos": {
70
+ "normal_direction": "outward",
71
+ "surface_type": "embedded_object"
72
+ },
73
+ "box0": {
74
+ "normal_direction": "outward",
75
+ "surface_type": "embedded_object"
76
+ }
77
+ },
78
+ "embedded_objects": {
79
+ "pipes": 2,
80
+ "boxes": 1,
81
+ "spheres": 0
35
82
  }
36
83
  }
37
84
  }
@@ -6,16 +6,20 @@
6
6
  "trench_opening": {
7
7
  "type": "polygon",
8
8
  "vertices_xy": [
9
+ [
10
+ 0.0,
11
+ -0.7
12
+ ],
9
13
  [
10
14
  0.0,
11
15
  0.7
12
16
  ],
13
17
  [
14
18
  5.3,
15
- 0.0
19
+ 0.7
16
20
  ],
17
21
  [
18
- 6.0,
22
+ 5.3,
19
23
  3.3
20
24
  ],
21
25
  [
@@ -27,19 +31,74 @@
27
31
  4.7
28
32
  ],
29
33
  [
30
- 6.0,
34
+ 6.7,
31
35
  4.7
32
36
  ],
33
37
  [
34
38
  6.7,
35
- 0.0
36
- ],
37
- [
38
- 0.0,
39
39
  -0.7
40
40
  ]
41
41
  ],
42
42
  "z_level": 0.0
43
+ },
44
+ "surface_groups": {
45
+ "trench_bottom": {
46
+ "normal_direction": "up",
47
+ "surface_type": "floor"
48
+ },
49
+ "trench_walls": {
50
+ "normal_direction": "inward",
51
+ "surface_type": "wall"
52
+ },
53
+ "ground_surface": {
54
+ "normal_direction": "up",
55
+ "surface_type": "ground"
56
+ },
57
+ "pipe0_pipe_side": {
58
+ "normal_direction": "outward",
59
+ "surface_type": "embedded_object"
60
+ },
61
+ "pipe0_pipe_cap_neg": {
62
+ "normal_direction": "outward",
63
+ "surface_type": "embedded_object"
64
+ },
65
+ "pipe0_pipe_cap_pos": {
66
+ "normal_direction": "outward",
67
+ "surface_type": "embedded_object"
68
+ },
69
+ "pipe1_pipe_side": {
70
+ "normal_direction": "outward",
71
+ "surface_type": "embedded_object"
72
+ },
73
+ "pipe1_pipe_cap_neg": {
74
+ "normal_direction": "outward",
75
+ "surface_type": "embedded_object"
76
+ },
77
+ "pipe1_pipe_cap_pos": {
78
+ "normal_direction": "outward",
79
+ "surface_type": "embedded_object"
80
+ },
81
+ "pipe2_pipe_side": {
82
+ "normal_direction": "outward",
83
+ "surface_type": "embedded_object"
84
+ },
85
+ "pipe2_pipe_cap_neg": {
86
+ "normal_direction": "outward",
87
+ "surface_type": "embedded_object"
88
+ },
89
+ "pipe2_pipe_cap_pos": {
90
+ "normal_direction": "outward",
91
+ "surface_type": "embedded_object"
92
+ },
93
+ "sphere0": {
94
+ "normal_direction": "outward",
95
+ "surface_type": "embedded_object"
96
+ }
97
+ },
98
+ "embedded_objects": {
99
+ "pipes": 3,
100
+ "boxes": 0,
101
+ "spheres": 1
43
102
  }
44
103
  }
45
104
  }
@@ -6,13 +6,17 @@
6
6
  "trench_opening": {
7
7
  "type": "polygon",
8
8
  "vertices_xy": [
9
+ [
10
+ 0.0,
11
+ -1.2
12
+ ],
9
13
  [
10
14
  0.0,
11
15
  1.2
12
16
  ],
13
17
  [
14
18
  7.8,
15
- 0.0
19
+ 1.2
16
20
  ],
17
21
  [
18
22
  7.8,
@@ -24,14 +28,57 @@
24
28
  ],
25
29
  [
26
30
  10.2,
27
- 0.0
28
- ],
29
- [
30
- 0.0,
31
31
  -1.2
32
32
  ]
33
33
  ],
34
34
  "z_level": 0.0
35
+ },
36
+ "surface_groups": {
37
+ "trench_bottom": {
38
+ "normal_direction": "up",
39
+ "surface_type": "floor"
40
+ },
41
+ "trench_walls": {
42
+ "normal_direction": "inward",
43
+ "surface_type": "wall"
44
+ },
45
+ "ground_surface": {
46
+ "normal_direction": "up",
47
+ "surface_type": "ground"
48
+ },
49
+ "pipe0_pipe_side": {
50
+ "normal_direction": "outward",
51
+ "surface_type": "embedded_object"
52
+ },
53
+ "pipe0_pipe_cap_neg": {
54
+ "normal_direction": "outward",
55
+ "surface_type": "embedded_object"
56
+ },
57
+ "pipe0_pipe_cap_pos": {
58
+ "normal_direction": "outward",
59
+ "surface_type": "embedded_object"
60
+ },
61
+ "pipe1_pipe_side": {
62
+ "normal_direction": "outward",
63
+ "surface_type": "embedded_object"
64
+ },
65
+ "pipe1_pipe_cap_neg": {
66
+ "normal_direction": "outward",
67
+ "surface_type": "embedded_object"
68
+ },
69
+ "pipe1_pipe_cap_pos": {
70
+ "normal_direction": "outward",
71
+ "surface_type": "embedded_object"
72
+ },
73
+ "box0": {
74
+ "normal_direction": "outward",
75
+ "surface_type": "embedded_object"
76
+ }
77
+ },
78
+ "embedded_objects": {
79
+ "pipes": 2,
80
+ "boxes": 1,
81
+ "spheres": 0
35
82
  }
36
83
  }
37
84
  }
@@ -2,60 +2,87 @@
2
2
  "sdf_metadata": {
3
3
  "version": "2.0",
4
4
  "normal_convention": "into_void",
5
- "geometry_type": "open_trench",
5
+ "geometry_type": "closed_well",
6
6
  "trench_opening": {
7
7
  "type": "polygon",
8
8
  "vertices_xy": [
9
9
  [
10
- 0.3152963125472329,
11
- 1.2611852501889316
10
+ -0.8953594528137068,
11
+ -1.116169465122313
12
12
  ],
13
13
  [
14
- 3.684703687452767,
15
- 0.2611852501889316
14
+ 4.0,
15
+ -2.3400093283257397
16
16
  ],
17
17
  [
18
- 6.7,
19
- 0.0
20
- ],
21
- [
22
- 8.0,
23
- 3.7
24
- ],
25
- [
26
- 2.9192388155425117,
27
- 4.080761184457488
28
- ],
29
- [
30
- -0.08076118445748814,
31
- 1.0807611844574883
32
- ],
33
- [
34
- -1.9192388155425117,
35
- 2.9192388155425117
36
- ],
37
- [
38
- 1.0807611844574883,
39
- 5.919238815542512
40
- ],
41
- [
42
- 8.0,
43
- 6.3
18
+ 9.3,
19
+ -1.0150093283257395
44
20
  ],
45
21
  [
46
22
  9.3,
47
- 0.0
23
+ 6.3
48
24
  ],
49
25
  [
50
- 4.315296312547233,
51
- -2.2611852501889316
26
+ 1.4615223689149763,
27
+ 6.3
52
28
  ],
53
29
  [
54
- -0.3152963125472329,
55
- -1.2611852501889316
30
+ -2.58178866727825,
31
+ 2.2566889638067735
56
32
  ]
57
33
  ],
58
34
  "z_level": 0.2
35
+ },
36
+ "surface_groups": {
37
+ "trench_bottom": {
38
+ "normal_direction": "up",
39
+ "surface_type": "floor"
40
+ },
41
+ "trench_walls": {
42
+ "normal_direction": "inward",
43
+ "surface_type": "wall"
44
+ },
45
+ "ground_surface": {
46
+ "normal_direction": "up",
47
+ "surface_type": "ground"
48
+ },
49
+ "ground_island": {
50
+ "normal_direction": "up",
51
+ "surface_type": "ground"
52
+ },
53
+ "pipe0_pipe_side": {
54
+ "normal_direction": "outward",
55
+ "surface_type": "embedded_object"
56
+ },
57
+ "pipe0_pipe_cap_neg": {
58
+ "normal_direction": "outward",
59
+ "surface_type": "embedded_object"
60
+ },
61
+ "pipe0_pipe_cap_pos": {
62
+ "normal_direction": "outward",
63
+ "surface_type": "embedded_object"
64
+ },
65
+ "pipe1_pipe_side": {
66
+ "normal_direction": "outward",
67
+ "surface_type": "embedded_object"
68
+ },
69
+ "pipe1_pipe_cap_neg": {
70
+ "normal_direction": "outward",
71
+ "surface_type": "embedded_object"
72
+ },
73
+ "pipe1_pipe_cap_pos": {
74
+ "normal_direction": "outward",
75
+ "surface_type": "embedded_object"
76
+ },
77
+ "sphere0": {
78
+ "normal_direction": "outward",
79
+ "surface_type": "embedded_object"
80
+ }
81
+ },
82
+ "embedded_objects": {
83
+ "pipes": 2,
84
+ "boxes": 0,
85
+ "spheres": 1
59
86
  }
60
87
  }
61
88
  }