trenchfoot 0.1.1__py3-none-any.whl → 0.2.3__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.

Files changed (58) hide show
  1. trenchfoot/generate_scenarios.py +104 -27
  2. trenchfoot/gmsh_sloped_trench_mesher.py +125 -25
  3. trenchfoot/scenarios/S01_straight_vwalls/metrics.json +4 -4
  4. trenchfoot/scenarios/S01_straight_vwalls/preview_oblique.png +0 -0
  5. trenchfoot/scenarios/S01_straight_vwalls/preview_side.png +0 -0
  6. trenchfoot/scenarios/S01_straight_vwalls/preview_top.png +0 -0
  7. trenchfoot/scenarios/S01_straight_vwalls/scene.json +2 -2
  8. trenchfoot/scenarios/S01_straight_vwalls/trench_scene.obj +30 -27
  9. trenchfoot/scenarios/S01_straight_vwalls/volumetric/trench_volume.msh +540 -802
  10. trenchfoot/scenarios/S02_straight_slope_pipe/metrics.json +10 -10
  11. trenchfoot/scenarios/S02_straight_slope_pipe/preview_oblique.png +0 -0
  12. trenchfoot/scenarios/S02_straight_slope_pipe/preview_side.png +0 -0
  13. trenchfoot/scenarios/S02_straight_slope_pipe/preview_top.png +0 -0
  14. trenchfoot/scenarios/S02_straight_slope_pipe/scene.json +3 -3
  15. trenchfoot/scenarios/S02_straight_slope_pipe/trench_scene.obj +4977 -4974
  16. trenchfoot/scenarios/S02_straight_slope_pipe/volumetric/trench_volume.msh +1694 -1969
  17. trenchfoot/scenarios/S03_L_slope_two_pipes_box/metrics.json +14 -14
  18. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_oblique.png +0 -0
  19. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_side.png +0 -0
  20. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_top.png +0 -0
  21. trenchfoot/scenarios/S03_L_slope_two_pipes_box/scene.json +4 -4
  22. trenchfoot/scenarios/S03_L_slope_two_pipes_box/trench_scene.obj +10547 -10540
  23. trenchfoot/scenarios/S03_L_slope_two_pipes_box/volumetric/trench_volume.msh +3101 -3767
  24. trenchfoot/scenarios/S04_U_slope_multi_noise/metrics.json +17 -17
  25. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_oblique.png +0 -0
  26. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_side.png +0 -0
  27. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_top.png +0 -0
  28. trenchfoot/scenarios/S04_U_slope_multi_noise/scene.json +8 -7
  29. trenchfoot/scenarios/S04_U_slope_multi_noise/trench_scene.obj +17999 -17988
  30. trenchfoot/scenarios/S04_U_slope_multi_noise/volumetric/trench_volume.msh +4991 -6506
  31. trenchfoot/scenarios/S05_wide_slope_pair/metrics.json +14 -14
  32. trenchfoot/scenarios/S05_wide_slope_pair/preview_oblique.png +0 -0
  33. trenchfoot/scenarios/S05_wide_slope_pair/preview_side.png +0 -0
  34. trenchfoot/scenarios/S05_wide_slope_pair/preview_top.png +0 -0
  35. trenchfoot/scenarios/S05_wide_slope_pair/scene.json +6 -6
  36. trenchfoot/scenarios/S05_wide_slope_pair/trench_scene.obj +10547 -10540
  37. trenchfoot/scenarios/S05_wide_slope_pair/volumetric/trench_volume.msh +5081 -0
  38. trenchfoot/scenarios/S06_bumpy_wide_loop/metrics.json +16 -16
  39. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_oblique.png +0 -0
  40. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_side.png +0 -0
  41. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_top.png +0 -0
  42. trenchfoot/scenarios/S06_bumpy_wide_loop/scene.json +6 -6
  43. trenchfoot/scenarios/S06_bumpy_wide_loop/trench_scene.obj +12812 -12793
  44. trenchfoot/scenarios/S06_bumpy_wide_loop/volumetric/trench_volume.msh +10402 -0
  45. trenchfoot/scenarios/S07_circular_well/metrics.json +48 -0
  46. trenchfoot/scenarios/S07_circular_well/preview_oblique.png +0 -0
  47. trenchfoot/scenarios/S07_circular_well/preview_side.png +0 -0
  48. trenchfoot/scenarios/S07_circular_well/preview_top.png +0 -0
  49. trenchfoot/scenarios/S07_circular_well/scene.json +203 -0
  50. trenchfoot/scenarios/S07_circular_well/trench_scene.obj +64401 -0
  51. trenchfoot/scenarios/S07_circular_well/volumetric/trench_volume.msh +22370 -0
  52. trenchfoot/scenarios/SUMMARY.json +343 -32
  53. trenchfoot/trench_scene_generator_v3.py +311 -46
  54. {trenchfoot-0.1.1.dist-info → trenchfoot-0.2.3.dist-info}/METADATA +16 -18
  55. {trenchfoot-0.1.1.dist-info → trenchfoot-0.2.3.dist-info}/RECORD +58 -49
  56. {trenchfoot-0.1.1.dist-info → trenchfoot-0.2.3.dist-info}/WHEEL +1 -1
  57. {trenchfoot-0.1.1.dist-info → trenchfoot-0.2.3.dist-info}/entry_points.txt +0 -0
  58. {trenchfoot-0.1.1.dist-info → trenchfoot-0.2.3.dist-info}/licenses/LICENSE +0 -0
@@ -1,9 +1,9 @@
1
1
  {
2
2
  "out_root": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios",
3
3
  "preview_enabled": true,
4
- "volumetric_requested": false,
5
- "volumetric_available": false,
6
- "mesh_characteristic_length": 0.3,
4
+ "volumetric_requested": true,
5
+ "volumetric_available": true,
6
+ "mesh_characteristic_length": 0.4,
7
7
  "scenarios": [
8
8
  {
9
9
  "name": "S01_straight_vwalls",
@@ -24,9 +24,9 @@
24
24
  },
25
25
  "footprint_top": 5.0,
26
26
  "footprint_bottom": 5.0,
27
- "trench_from_surface": -1.6666666666666667,
28
- "volumetric_path": null,
29
- "volumetric_lc": null,
27
+ "trench_from_surface": -1.0,
28
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S01_straight_vwalls/volumetric/trench_volume.msh",
29
+ "volumetric_lc": 0.4,
30
30
  "volumetric_error": null,
31
31
  "pipe_clearances": []
32
32
  },
@@ -48,12 +48,33 @@
48
48
  "spheres": 0
49
49
  },
50
50
  "footprint_top": 7.199999999999999,
51
- "footprint_bottom": 3.5999999999999996,
52
- "trench_from_surface": -4.5,
53
- "volumetric_path": null,
54
- "volumetric_lc": null,
51
+ "footprint_bottom": 5.039999999999999,
52
+ "trench_from_surface": -2.484000000000001,
53
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S02_straight_slope_pipe/volumetric/trench_volume.msh",
54
+ "volumetric_lc": 0.4,
55
55
  "volumetric_error": null,
56
- "pipe_clearances": []
56
+ "pipe_clearances": [
57
+ {
58
+ "pipe_index": 0,
59
+ "radius": 0.15,
60
+ "length": 5.5938,
61
+ "s_center": 0.5,
62
+ "axis_margin_poly": 0.0,
63
+ "axis_margin_lat": 306897.2031,
64
+ "axis_margin_path": 0.0,
65
+ "lateral_gap": 0.36,
66
+ "lateral_margin": 0.3069,
67
+ "min_margin": 0.0,
68
+ "clearance": 0.0531,
69
+ "warn_threshold": 0.02655,
70
+ "clearance_scale": 1.0,
71
+ "center_xy": [
72
+ 3.0,
73
+ 0.0
74
+ ],
75
+ "offset_u": 0.0
76
+ }
77
+ ]
57
78
  },
58
79
  {
59
80
  "name": "S03_L_slope_two_pipes_box",
@@ -73,12 +94,53 @@
73
94
  "spheres": 0
74
95
  },
75
96
  "footprint_top": 11.999999999999995,
76
- "footprint_bottom": 6.600098785112241,
77
- "trench_from_surface": -8.821211746773338,
78
- "volumetric_path": null,
79
- "volumetric_lc": null,
97
+ "footprint_bottom": 8.700070386125077,
98
+ "trench_from_surface": -5.0179228990454625,
99
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S03_L_slope_two_pipes_box/volumetric/trench_volume.msh",
100
+ "volumetric_lc": 0.4,
80
101
  "volumetric_error": null,
81
- "pipe_clearances": []
102
+ "pipe_clearances": [
103
+ {
104
+ "pipe_index": 0,
105
+ "radius": 0.15,
106
+ "length": 5.794099999999999,
107
+ "s_center": 0.35,
108
+ "axis_margin_poly": 0.0,
109
+ "axis_margin_lat": 307047.10295000003,
110
+ "axis_margin_path": 0.40000000000000036,
111
+ "lateral_gap": 0.36,
112
+ "lateral_margin": 0.30705,
113
+ "min_margin": 0.0,
114
+ "clearance": 0.05295,
115
+ "warn_threshold": 0.026475,
116
+ "clearance_scale": 1.0,
117
+ "center_xy": [
118
+ 3.5,
119
+ 0.0
120
+ ],
121
+ "offset_u": 0.0
122
+ },
123
+ {
124
+ "pipe_index": 1,
125
+ "radius": 0.1,
126
+ "length": 0.4999999999999989,
127
+ "s_center": 0.75,
128
+ "axis_margin_poly": 0.0,
129
+ "axis_margin_lat": 0.11750000000000049,
130
+ "axis_margin_path": 2349999.75,
131
+ "lateral_gap": 0.21749999999999994,
132
+ "lateral_margin": 0.16749999999999993,
133
+ "min_margin": 0.0,
134
+ "clearance": 0.05,
135
+ "warn_threshold": 0.025,
136
+ "clearance_scale": 1.0,
137
+ "center_xy": [
138
+ 5.8,
139
+ 1.5
140
+ ],
141
+ "offset_u": 0.2
142
+ }
143
+ ]
82
144
  },
83
145
  {
84
146
  "name": "S04_U_slope_multi_noise",
@@ -98,12 +160,73 @@
98
160
  "spheres": 1
99
161
  },
100
162
  "footprint_top": 22.400000000000006,
101
- "footprint_bottom": 6.401997366935536,
102
- "trench_from_surface": -20.350257604893354,
103
- "volumetric_path": null,
104
- "volumetric_lc": null,
163
+ "footprint_bottom": 12.80127074424757,
164
+ "trench_from_surface": -11.011702905355754,
165
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S04_U_slope_multi_noise/volumetric/trench_volume.msh",
166
+ "volumetric_lc": 0.4,
105
167
  "volumetric_error": null,
106
- "pipe_clearances": []
168
+ "pipe_clearances": [
169
+ {
170
+ "pipe_index": 0,
171
+ "radius": 0.18,
172
+ "length": 4.9122,
173
+ "s_center": 0.25,
174
+ "axis_margin_poly": 0.0,
175
+ "axis_margin_lat": 306097.54389999993,
176
+ "axis_margin_path": 1.2999999999999998,
177
+ "lateral_gap": 0.36999999999999994,
178
+ "lateral_margin": 0.3060999999999999,
179
+ "min_margin": 0.0,
180
+ "clearance": 0.0639,
181
+ "warn_threshold": 0.03195,
182
+ "clearance_scale": 1.0,
183
+ "center_xy": [
184
+ 4.0,
185
+ 0.0
186
+ ],
187
+ "offset_u": 0.0
188
+ },
189
+ {
190
+ "pipe_index": 1,
191
+ "radius": 0.1,
192
+ "length": 1.0960155108391487,
193
+ "s_center": 0.55,
194
+ "axis_margin_poly": 0.009099025766972968,
195
+ "axis_margin_lat": 0.0,
196
+ "axis_margin_path": 9.422197859310744,
197
+ "lateral_gap": 0.23749999999999996,
198
+ "lateral_margin": 0.18749999999999994,
199
+ "min_margin": 0.0,
200
+ "clearance": 0.05,
201
+ "warn_threshold": 0.025,
202
+ "clearance_scale": 1.0,
203
+ "center_xy": [
204
+ 6.2,
205
+ 2.8000000000000007
206
+ ],
207
+ "offset_u": -0.2
208
+ },
209
+ {
210
+ "pipe_index": 2,
211
+ "radius": 0.08,
212
+ "length": 0.7792304845413269,
213
+ "s_center": 0.75,
214
+ "axis_margin_poly": 0.0,
215
+ "axis_margin_lat": 0.03762395692965953,
216
+ "axis_margin_path": 7.350384757729335,
217
+ "lateral_gap": 0.16999999999999993,
218
+ "lateral_margin": 0.11999999999999993,
219
+ "min_margin": 0.0,
220
+ "clearance": 0.05,
221
+ "warn_threshold": 0.025,
222
+ "clearance_scale": 1.0,
223
+ "center_xy": [
224
+ 4.0,
225
+ 3.75
226
+ ],
227
+ "offset_u": 0.25
228
+ }
229
+ ]
107
230
  },
108
231
  {
109
232
  "name": "S05_wide_slope_pair",
@@ -123,12 +246,53 @@
123
246
  "spheres": 0
124
247
  },
125
248
  "footprint_top": 28.808998594189276,
126
- "footprint_bottom": 26.504396832960197,
127
- "trench_from_surface": -11.943502106756187,
128
- "volumetric_path": null,
129
- "volumetric_lc": null,
249
+ "footprint_bottom": 27.46494373197848,
250
+ "trench_from_surface": -6.858764294895576,
251
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S05_wide_slope_pair/volumetric/trench_volume.msh",
252
+ "volumetric_lc": 0.4,
130
253
  "volumetric_error": null,
131
- "pipe_clearances": []
254
+ "pipe_clearances": [
255
+ {
256
+ "pipe_index": 0,
257
+ "radius": 0.2,
258
+ "length": 5.5,
259
+ "s_center": 0.35,
260
+ "axis_margin_poly": 1.2515037699201281,
261
+ "axis_margin_lat": 2.443115482787669,
262
+ "axis_margin_path": 1.2474421281299537,
263
+ "lateral_gap": 0.6650630399999999,
264
+ "lateral_margin": 0.6017750399999999,
265
+ "min_margin": 0.6017750399999999,
266
+ "clearance": 0.063288,
267
+ "warn_threshold": 0.031644,
268
+ "clearance_scale": 0.9,
269
+ "center_xy": [
270
+ 4.199999999999999,
271
+ 0.3
272
+ ],
273
+ "offset_u": 0.3
274
+ },
275
+ {
276
+ "pipe_index": 1,
277
+ "radius": 0.16,
278
+ "length": 3.2832310494763,
279
+ "s_center": 0.7,
280
+ "axis_margin_poly": 0.0,
281
+ "axis_margin_lat": 1.9897591587891337,
282
+ "axis_margin_path": 1.8556699893868722,
283
+ "lateral_gap": 0.601750528,
284
+ "lateral_margin": 0.539868928,
285
+ "min_margin": 0.0,
286
+ "clearance": 0.061881599999999995,
287
+ "warn_threshold": 0.030940799999999997,
288
+ "clearance_scale": 1.1,
289
+ "center_xy": [
290
+ 8.399999999999999,
291
+ -0.4
292
+ ],
293
+ "offset_u": -0.4
294
+ }
295
+ ]
132
296
  },
133
297
  {
134
298
  "name": "S06_bumpy_wide_loop",
@@ -147,13 +311,160 @@
147
311
  "boxes": 0,
148
312
  "spheres": 1
149
313
  },
150
- "footprint_top": 61.10535786473372,
151
- "footprint_bottom": 53.20937308936425,
152
- "trench_from_surface": -29.549085746556727,
153
- "volumetric_path": null,
154
- "volumetric_lc": null,
314
+ "footprint_top": 61.10535782948724,
315
+ "footprint_bottom": 56.3121473979779,
316
+ "trench_from_surface": -17.122161702529255,
317
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S06_bumpy_wide_loop/volumetric/trench_volume.msh",
318
+ "volumetric_lc": 0.4,
155
319
  "volumetric_error": null,
156
- "pipe_clearances": []
320
+ "pipe_clearances": [
321
+ {
322
+ "pipe_index": 0,
323
+ "radius": 0.18,
324
+ "length": 3.4303356192892736,
325
+ "s_center": 0.3,
326
+ "axis_margin_poly": 0.9180874031301758,
327
+ "axis_margin_lat": 0.0,
328
+ "axis_margin_path": 6.590034660321056,
329
+ "lateral_gap": 0.69721184,
330
+ "lateral_margin": 0.63377984,
331
+ "min_margin": 0.0,
332
+ "clearance": 0.063432,
333
+ "warn_threshold": 0.031716,
334
+ "clearance_scale": 1.0,
335
+ "center_xy": [
336
+ 6.751372594742942,
337
+ 0.04861489092728094
338
+ ],
339
+ "offset_u": 0.35
340
+ },
341
+ {
342
+ "pipe_index": 1,
343
+ "radius": 0.14,
344
+ "length": 2.2797305056626995,
345
+ "s_center": 0.6,
346
+ "axis_margin_poly": 0.0,
347
+ "axis_margin_lat": 0.4740426451536417,
348
+ "axis_margin_path": 10.8869053322154,
349
+ "lateral_gap": 0.6299,
350
+ "lateral_margin": 0.5874,
351
+ "min_margin": 0.0,
352
+ "clearance": 0.0425,
353
+ "warn_threshold": 0.02125,
354
+ "clearance_scale": 0.85,
355
+ "center_xy": [
356
+ 7.152900088222557,
357
+ 5.45
358
+ ],
359
+ "offset_u": -0.45
360
+ }
361
+ ]
362
+ },
363
+ {
364
+ "name": "S07_circular_well",
365
+ "directory": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well",
366
+ "spec_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/scene.json",
367
+ "surface_obj": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/trench_scene.obj",
368
+ "metrics_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/metrics.json",
369
+ "preview_paths": [
370
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/preview_top.png",
371
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/preview_side.png",
372
+ "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/preview_oblique.png"
373
+ ],
374
+ "preview_count": 3,
375
+ "object_counts": {
376
+ "pipes": 4,
377
+ "boxes": 0,
378
+ "spheres": 1
379
+ },
380
+ "footprint_top": 22.05640516225481,
381
+ "footprint_bottom": 18.82403650828919,
382
+ "trench_from_surface": -47.27542533827233,
383
+ "volumetric_path": "/home/liam/projects/chiark/trenchfoot/packages/trenchfoot/scenarios/S07_circular_well/volumetric/trench_volume.msh",
384
+ "volumetric_lc": 0.4,
385
+ "volumetric_error": null,
386
+ "pipe_clearances": [
387
+ {
388
+ "pipe_index": 0,
389
+ "radius": 0.2,
390
+ "length": 4.0,
391
+ "s_center": 0.25,
392
+ "axis_margin_poly": null,
393
+ "axis_margin_lat": 704798.0,
394
+ "axis_margin_path": 0.08221136790945316,
395
+ "lateral_gap": 0.7749999999999999,
396
+ "lateral_margin": 0.7047999999999999,
397
+ "min_margin": 0.08221136790945316,
398
+ "clearance": 0.0702,
399
+ "warn_threshold": 0.0351,
400
+ "clearance_scale": 1.0,
401
+ "center_xy": [
402
+ 1.0340313980557629e-15,
403
+ 1.4999999999999998
404
+ ],
405
+ "offset_u": 0.0
406
+ },
407
+ {
408
+ "pipe_index": 1,
409
+ "radius": 0.15,
410
+ "length": 2.085540740431603,
411
+ "s_center": 0.5,
412
+ "axis_margin_poly": null,
413
+ "axis_margin_lat": 0.0,
414
+ "axis_margin_path": 5.324263372925678,
415
+ "lateral_gap": 0.69,
416
+ "lateral_margin": 0.63735,
417
+ "min_margin": 0.0,
418
+ "clearance": 0.052649999999999995,
419
+ "warn_threshold": 0.026324999999999998,
420
+ "clearance_scale": 1.0,
421
+ "center_xy": [
422
+ -1.4004815273327802,
423
+ -0.009801714032953731
424
+ ],
425
+ "offset_u": 0.1
426
+ },
427
+ {
428
+ "pipe_index": 2,
429
+ "radius": 0.1,
430
+ "length": 1.7551448183364624,
431
+ "s_center": 0.75,
432
+ "axis_margin_poly": null,
433
+ "axis_margin_lat": 0.0,
434
+ "axis_margin_path": 3.5272503266506745,
435
+ "lateral_gap": 0.66,
436
+ "lateral_margin": 0.61,
437
+ "min_margin": 0.0,
438
+ "clearance": 0.05,
439
+ "warn_threshold": 0.025,
440
+ "clearance_scale": 1.0,
441
+ "center_xy": [
442
+ -0.01470257104943662,
443
+ -1.6492777090008293
444
+ ],
445
+ "offset_u": -0.15
446
+ },
447
+ {
448
+ "pipe_index": 3,
449
+ "radius": 0.12,
450
+ "length": 1.44,
451
+ "s_center": 0.0,
452
+ "axis_margin_poly": null,
453
+ "axis_margin_lat": 0.0,
454
+ "axis_margin_path": null,
455
+ "lateral_gap": 0.77,
456
+ "lateral_margin": 0.72,
457
+ "min_margin": 0.0,
458
+ "clearance": 0.05,
459
+ "warn_threshold": 0.025,
460
+ "clearance_scale": 1.0,
461
+ "center_xy": [
462
+ 1.5,
463
+ 0.0
464
+ ],
465
+ "offset_u": 0.0
466
+ }
467
+ ]
157
468
  }
158
469
  ]
159
470
  }