trenchfoot 0.1.0__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 (69) hide show
  1. trenchfoot/Dockerfile +5 -0
  2. trenchfoot/README.md +125 -0
  3. trenchfoot/__init__.py +67 -0
  4. trenchfoot/generate_scenarios.py +667 -0
  5. trenchfoot/gmsh_sloped_trench_mesher.py +508 -0
  6. trenchfoot/plot_mesh.py +126 -0
  7. trenchfoot/render_colors.py +59 -0
  8. trenchfoot/scenarios/S01_straight_vwalls/meshes/trench_scene_culled.obj +46 -0
  9. trenchfoot/scenarios/S01_straight_vwalls/metrics.json +35 -0
  10. trenchfoot/scenarios/S01_straight_vwalls/point_clouds/culled/resolution0p050.pth +0 -0
  11. trenchfoot/scenarios/S01_straight_vwalls/point_clouds/full/resolution0p050.pth +0 -0
  12. trenchfoot/scenarios/S01_straight_vwalls/preview.png +0 -0
  13. trenchfoot/scenarios/S01_straight_vwalls/preview_oblique.png +0 -0
  14. trenchfoot/scenarios/S01_straight_vwalls/preview_side.png +0 -0
  15. trenchfoot/scenarios/S01_straight_vwalls/preview_top.png +0 -0
  16. trenchfoot/scenarios/S01_straight_vwalls/scene.json +30 -0
  17. trenchfoot/scenarios/S01_straight_vwalls/trench_scene.obj +46 -0
  18. trenchfoot/scenarios/S01_straight_vwalls/volumetric/trench_volume.msh +1017 -0
  19. trenchfoot/scenarios/S02_straight_slope_pipe/meshes/trench_scene_culled.obj +60 -0
  20. trenchfoot/scenarios/S02_straight_slope_pipe/metrics.json +38 -0
  21. trenchfoot/scenarios/S02_straight_slope_pipe/point_clouds/culled/resolution0p050.pth +0 -0
  22. trenchfoot/scenarios/S02_straight_slope_pipe/point_clouds/full/resolution0p050.pth +0 -0
  23. trenchfoot/scenarios/S02_straight_slope_pipe/preview.png +0 -0
  24. trenchfoot/scenarios/S02_straight_slope_pipe/preview_oblique.png +0 -0
  25. trenchfoot/scenarios/S02_straight_slope_pipe/preview_side.png +0 -0
  26. trenchfoot/scenarios/S02_straight_slope_pipe/preview_top.png +0 -0
  27. trenchfoot/scenarios/S02_straight_slope_pipe/scene.json +39 -0
  28. trenchfoot/scenarios/S02_straight_slope_pipe/trench_scene.obj +14404 -0
  29. trenchfoot/scenarios/S02_straight_slope_pipe/volumetric/trench_volume.msh +2389 -0
  30. trenchfoot/scenarios/S03_L_slope_two_pipes_box/meshes/trench_scene_culled.obj +87 -0
  31. trenchfoot/scenarios/S03_L_slope_two_pipes_box/metrics.json +42 -0
  32. trenchfoot/scenarios/S03_L_slope_two_pipes_box/point_clouds/culled/resolution0p050.pth +0 -0
  33. trenchfoot/scenarios/S03_L_slope_two_pipes_box/point_clouds/full/resolution0p050.pth +0 -0
  34. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview.png +0 -0
  35. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_oblique.png +0 -0
  36. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_side.png +0 -0
  37. trenchfoot/scenarios/S03_L_slope_two_pipes_box/preview_top.png +0 -0
  38. trenchfoot/scenarios/S03_L_slope_two_pipes_box/scene.json +68 -0
  39. trenchfoot/scenarios/S03_L_slope_two_pipes_box/trench_scene.obj +28803 -0
  40. trenchfoot/scenarios/S03_L_slope_two_pipes_box/volumetric/trench_volume.msh +4463 -0
  41. trenchfoot/scenarios/S04_U_slope_multi_noise/meshes/trench_scene_culled.obj +150 -0
  42. trenchfoot/scenarios/S04_U_slope_multi_noise/metrics.json +46 -0
  43. trenchfoot/scenarios/S04_U_slope_multi_noise/preview.png +0 -0
  44. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_oblique.png +0 -0
  45. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_side.png +0 -0
  46. trenchfoot/scenarios/S04_U_slope_multi_noise/preview_top.png +0 -0
  47. trenchfoot/scenarios/S04_U_slope_multi_noise/scene.json +79 -0
  48. trenchfoot/scenarios/S04_U_slope_multi_noise/trench_scene.obj +49402 -0
  49. trenchfoot/scenarios/S04_U_slope_multi_noise/volumetric/trench_volume.msh +7610 -0
  50. trenchfoot/scenarios/S05_wide_slope_pair/metrics.json +42 -0
  51. trenchfoot/scenarios/S05_wide_slope_pair/preview_oblique.png +0 -0
  52. trenchfoot/scenarios/S05_wide_slope_pair/preview_side.png +0 -0
  53. trenchfoot/scenarios/S05_wide_slope_pair/preview_top.png +0 -0
  54. trenchfoot/scenarios/S05_wide_slope_pair/scene.json +71 -0
  55. trenchfoot/scenarios/S05_wide_slope_pair/trench_scene.obj +28803 -0
  56. trenchfoot/scenarios/S06_bumpy_wide_loop/metrics.json +43 -0
  57. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_oblique.png +0 -0
  58. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_side.png +0 -0
  59. trenchfoot/scenarios/S06_bumpy_wide_loop/preview_top.png +0 -0
  60. trenchfoot/scenarios/S06_bumpy_wide_loop/scene.json +82 -0
  61. trenchfoot/scenarios/S06_bumpy_wide_loop/trench_scene.obj +35084 -0
  62. trenchfoot/scenarios/SUMMARY.json +159 -0
  63. trenchfoot/scene_spec_example.json +74 -0
  64. trenchfoot/trench_scene_generator_v3.py +798 -0
  65. trenchfoot-0.1.0.dist-info/METADATA +104 -0
  66. trenchfoot-0.1.0.dist-info/RECORD +69 -0
  67. trenchfoot-0.1.0.dist-info/WHEEL +4 -0
  68. trenchfoot-0.1.0.dist-info/entry_points.txt +3 -0
  69. trenchfoot-0.1.0.dist-info/licenses/LICENSE +661 -0
@@ -0,0 +1,87 @@
1
+ g trench_bottom
2
+ v 0 -0.33 -1.80037524
3
+ v 6.33 -0.33 -1.80062778
4
+ v 6.33 4 -1.7974623
5
+ v 5.67 4 -1.79958057
6
+ v 5.67 0.33 -1.80040028
7
+ v 0 0.33 -1.80643639
8
+ f 2 1 6
9
+ f 4 3 2
10
+ f 5 4 2
11
+ f 6 5 2
12
+ g trench_cap_for_volume
13
+ v 0 -0.6 0
14
+ v 6.6 -0.6 0
15
+ v 6.6 4 0
16
+ v 5.4 4 0
17
+ v 5.4 0.6 0
18
+ v 0 0.6 0
19
+ f 12 7 8
20
+ f 8 9 10
21
+ f 8 10 11
22
+ f 8 11 12
23
+ g trench_walls
24
+ v 0 -0.603640405 -0.00054606081
25
+ v 6.6 -0.603090395 -0.000463559202
26
+ v 6.33 -0.329379169 -1.79990688
27
+ v 0 -0.329628907 -1.79994434
28
+ v 6.60309039 -0.6 -0.000463559202
29
+ v 6.59904602 4 0.000143096634
30
+ v 6.33250963 4 -1.80037644
31
+ v 6.32937917 -0.33 -1.79990688
32
+ v 6.6 3.99903535 0
33
+ v 5.4 3.99998713 0
34
+ v 5.67 4.00041943 -1.8
35
+ v 6.33 4.0025377 -1.8
36
+ v 5.40001273 4 1.90940258e-06
37
+ v 5.39830222 0.6 -0.00025466627
38
+ v 5.67039585 0.33 -1.79994062
39
+ v 5.66958521 4 -1.80006222
40
+ v 5.4 0.601697775 -0.00025466627
41
+ v 0 0.601377915 -0.000206687251
42
+ v 0 0.323634824 -1.79904522
43
+ v 5.67 0.329604145 -1.79994062
44
+ v -0.00139333032 0.6 0
45
+ v -0.00368113215 -0.6 0
46
+ v 0.000375244878 -0.33 -1.8
47
+ v 0.00643638561 0.33 -1.8
48
+ f 13 14 15
49
+ f 13 15 16
50
+ f 17 18 19
51
+ f 17 19 20
52
+ f 21 22 23
53
+ f 21 23 24
54
+ f 25 26 27
55
+ f 25 27 28
56
+ f 29 30 31
57
+ f 29 31 32
58
+ f 33 34 35
59
+ f 33 35 36
60
+ g ground_surface
61
+ v -4 -4.6 0
62
+ v 10.6 -4.6 0
63
+ v 10.6 8 0
64
+ v -4 8 0
65
+ f 37 38 39
66
+ f 37 39 40
67
+ g pipe0_pipe_side
68
+ v 1.66666667 -0.106066017 -0.893933983
69
+ v 1.66666667 -0.112775971 -0.901098128
70
+ v 1.83333333 -0.112775971 -0.901098128
71
+ v 3 -0.106066017 -0.893933983
72
+ v 3 -0.112775971 -0.901098128
73
+ v 3.16666667 -0.112775971 -0.901098128
74
+ v 4 0.144888874 -1.03882286
75
+ v 4.16666667 0.144888874 -1.03882286
76
+ v 4.16666667 0.147117792 -1.02926355
77
+ v 4.33333333 -0.106066017 -0.893933983
78
+ v 4.33333333 -0.112775971 -0.901098128
79
+ v 4.5 -0.112775971 -0.901098128
80
+ v 5.66666667 -0.106066017 -0.893933983
81
+ v 5.66666667 -0.112775971 -0.901098128
82
+ v 5.83333333 -0.112775971 -0.901098128
83
+ f 41 43 42
84
+ f 44 46 45
85
+ f 47 48 49
86
+ f 50 52 51
87
+ f 53 55 54
@@ -0,0 +1,42 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 6.600098785112241,
4
+ "trench_cap_for_volume": 11.999999999999995,
5
+ "trench_walls": 39.75089406855519,
6
+ "ground_surface": 183.95999999999998,
7
+ "pipe0_pipe_side": 7.5384766640887335,
8
+ "pipe0_pipe_cap_neg": 0.07063537923032534,
9
+ "pipe0_pipe_cap_pos": 0.07063537923032534,
10
+ "pipe1_pipe_side": 3.1410319260903923,
11
+ "pipe1_pipe_cap_neg": 0.03139350153472836,
12
+ "pipe1_pipe_cap_pos": 0.03139350153472836,
13
+ "box0": 1.8400000000000016
14
+ },
15
+ "closed_surface_sets": {
16
+ "trench_closed_groups": [
17
+ "trench_walls",
18
+ "trench_bottom",
19
+ "trench_cap_for_volume"
20
+ ]
21
+ },
22
+ "volumes": {
23
+ "trench_from_surface": -8.821211746773338,
24
+ "trench_flux_integral_div1": -8.821211746773324
25
+ },
26
+ "footprint_area_top": 11.999999999999995,
27
+ "footprint_area_bottom": 6.600098785112241,
28
+ "width_top": 1.2,
29
+ "width_bottom": 0.6599999999999999,
30
+ "noise": {
31
+ "enable": true,
32
+ "amplitude": 0.01,
33
+ "corr_length": 0.5,
34
+ "octaves": 2,
35
+ "gain": 0.5,
36
+ "seed": 7,
37
+ "apply_to": [
38
+ "trench_walls",
39
+ "trench_bottom"
40
+ ]
41
+ }
42
+ }
@@ -0,0 +1,68 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 6,
9
+ 0
10
+ ],
11
+ [
12
+ 6,
13
+ 4
14
+ ]
15
+ ],
16
+ "width": 1.2,
17
+ "depth": 1.8,
18
+ "wall_slope": 0.15,
19
+ "ground_margin": 1.0,
20
+ "ground": {
21
+ "z0": 0.0,
22
+ "slope": [
23
+ 0.0,
24
+ 0.0
25
+ ],
26
+ "size_margin": 4.0
27
+ },
28
+ "pipes": [
29
+ {
30
+ "radius": 0.15,
31
+ "length": 8.0,
32
+ "angle_deg": 0,
33
+ "s_center": 0.35,
34
+ "z": -1.0,
35
+ "offset_u": 0.0
36
+ },
37
+ {
38
+ "radius": 0.1,
39
+ "length": 5.0,
40
+ "angle_deg": 90,
41
+ "s_center": 0.75,
42
+ "z": -0.9,
43
+ "offset_u": 0.2
44
+ }
45
+ ],
46
+ "boxes": [
47
+ {
48
+ "along": 0.8,
49
+ "across": 0.5,
50
+ "height": 0.4,
51
+ "s": 0.55,
52
+ "offset_u": 0.0
53
+ }
54
+ ],
55
+ "spheres": [],
56
+ "noise": {
57
+ "enable": true,
58
+ "amplitude": 0.01,
59
+ "corr_length": 0.5,
60
+ "octaves": 2,
61
+ "gain": 0.5,
62
+ "seed": 7,
63
+ "apply_to": [
64
+ "trench_walls",
65
+ "trench_bottom"
66
+ ]
67
+ }
68
+ }