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,42 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 26.504396832960197,
4
+ "trench_cap_for_volume": 28.808998594189276,
5
+ "trench_walls": 34.429523398715844,
6
+ "ground_surface": 359.7523699449386,
7
+ "pipe0_pipe_side": 6.910270292212328,
8
+ "pipe0_pipe_cap_neg": 0.12557400812234465,
9
+ "pipe0_pipe_cap_pos": 0.12557400813799544,
10
+ "pipe1_pipe_side": 4.221546945396322,
11
+ "pipe1_pipe_cap_neg": 0.08036736513610723,
12
+ "pipe1_pipe_cap_pos": 0.08036736601144187,
13
+ "box0": 4.26
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": -11.943502106756187,
24
+ "trench_flux_integral_div1": -11.943502106756188
25
+ },
26
+ "footprint_area_top": 28.808998594189276,
27
+ "footprint_area_bottom": 26.504396832960197,
28
+ "width_top": 2.4,
29
+ "width_bottom": 2.2079999999999997,
30
+ "noise": {
31
+ "enable": true,
32
+ "amplitude": 0.015,
33
+ "corr_length": 0.8,
34
+ "octaves": 3,
35
+ "gain": 0.45,
36
+ "seed": 17,
37
+ "apply_to": [
38
+ "trench_walls",
39
+ "trench_bottom"
40
+ ]
41
+ }
42
+ }
@@ -0,0 +1,71 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 9,
9
+ 0
10
+ ],
11
+ [
12
+ 9,
13
+ 3
14
+ ]
15
+ ],
16
+ "width": 2.4,
17
+ "depth": 1.2,
18
+ "wall_slope": 0.08,
19
+ "ground_margin": 1.5,
20
+ "ground": {
21
+ "z0": 0.0,
22
+ "slope": [
23
+ 0.02,
24
+ -0.015
25
+ ],
26
+ "size_margin": 6.0
27
+ },
28
+ "pipes": [
29
+ {
30
+ "radius": 0.2,
31
+ "length": 5.5,
32
+ "angle_deg": 10,
33
+ "s_center": 0.35,
34
+ "z": -0.7,
35
+ "offset_u": 0.3,
36
+ "clearance_scale": 0.9
37
+ },
38
+ {
39
+ "radius": 0.16,
40
+ "length": 4.2,
41
+ "angle_deg": -15,
42
+ "s_center": 0.7,
43
+ "z": -0.8,
44
+ "offset_u": -0.4,
45
+ "clearance_scale": 1.1
46
+ }
47
+ ],
48
+ "boxes": [
49
+ {
50
+ "along": 1.2,
51
+ "across": 0.9,
52
+ "height": 0.5,
53
+ "s": 0.55,
54
+ "offset_u": -0.25,
55
+ "z": -0.6
56
+ }
57
+ ],
58
+ "spheres": [],
59
+ "noise": {
60
+ "enable": true,
61
+ "amplitude": 0.015,
62
+ "corr_length": 0.8,
63
+ "octaves": 3,
64
+ "gain": 0.45,
65
+ "seed": 17,
66
+ "apply_to": [
67
+ "trench_walls",
68
+ "trench_bottom"
69
+ ]
70
+ }
71
+ }