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,43 @@
1
+ {
2
+ "surface_area_by_group": {
3
+ "trench_bottom": 53.20937308936425,
4
+ "trench_cap_for_volume": 61.10535786473372,
5
+ "trench_walls": 73.07055073031871,
6
+ "ground_surface": 571.2848790415146,
7
+ "pipe0_pipe_side": 6.90745504769378,
8
+ "pipe0_pipe_cap_neg": 0.10171494665214975,
9
+ "pipe0_pipe_cap_pos": 0.10171494706638103,
10
+ "pipe1_pipe_side": 4.261533888433785,
11
+ "pipe1_pipe_cap_neg": 0.06153126413124749,
12
+ "pipe1_pipe_cap_pos": 0.06153126416703536,
13
+ "sphere0": 1.53629132028894
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": -29.549085746556727,
24
+ "trench_flux_integral_div1": -29.549085746556727
25
+ },
26
+ "footprint_area_top": 61.10535786473372,
27
+ "footprint_area_bottom": 53.20937308936425,
28
+ "width_top": 2.6,
29
+ "width_bottom": 2.2640000000000002,
30
+ "noise": {
31
+ "enable": true,
32
+ "amplitude": 0.035,
33
+ "corr_length": 0.5,
34
+ "octaves": 4,
35
+ "gain": 0.55,
36
+ "seed": 29,
37
+ "apply_to": [
38
+ "trench_walls",
39
+ "trench_bottom",
40
+ "pipe*_pipe_side"
41
+ ]
42
+ }
43
+ }
@@ -0,0 +1,82 @@
1
+ {
2
+ "path_xy": [
3
+ [
4
+ 0,
5
+ 0
6
+ ],
7
+ [
8
+ 4,
9
+ -1
10
+ ],
11
+ [
12
+ 8,
13
+ 0
14
+ ],
15
+ [
16
+ 8,
17
+ 5
18
+ ],
19
+ [
20
+ 2,
21
+ 5
22
+ ],
23
+ [
24
+ -1,
25
+ 2
26
+ ]
27
+ ],
28
+ "width": 2.6,
29
+ "depth": 1.4,
30
+ "wall_slope": 0.12,
31
+ "ground_margin": 2.0,
32
+ "ground": {
33
+ "z0": 0.2,
34
+ "slope": [
35
+ 0.015,
36
+ 0.03
37
+ ],
38
+ "size_margin": 7.0
39
+ },
40
+ "pipes": [
41
+ {
42
+ "radius": 0.18,
43
+ "length": 6.0,
44
+ "angle_deg": 35,
45
+ "s_center": 0.3,
46
+ "z": -0.9,
47
+ "offset_u": 0.35,
48
+ "clearance_scale": 1.0
49
+ },
50
+ {
51
+ "radius": 0.14,
52
+ "length": 4.8,
53
+ "angle_deg": -40,
54
+ "s_center": 0.6,
55
+ "z": -0.95,
56
+ "offset_u": -0.45,
57
+ "clearance_scale": 0.85
58
+ }
59
+ ],
60
+ "boxes": [],
61
+ "spheres": [
62
+ {
63
+ "radius": 0.35,
64
+ "s": 0.82,
65
+ "offset_u": 0.3,
66
+ "z": -0.65
67
+ }
68
+ ],
69
+ "noise": {
70
+ "enable": true,
71
+ "amplitude": 0.035,
72
+ "corr_length": 0.5,
73
+ "octaves": 4,
74
+ "gain": 0.55,
75
+ "seed": 29,
76
+ "apply_to": [
77
+ "trench_walls",
78
+ "trench_bottom",
79
+ "pipe*_pipe_side"
80
+ ]
81
+ }
82
+ }