polyhedral-gravity 3.2.1rc1__cp312-cp312-musllinux_1_2_x86_64.whl → 3.3rc1__cp312-cp312-musllinux_1_2_x86_64.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.
@@ -1,6 +1,6 @@
1
- Metadata-Version: 2.1
1
+ Metadata-Version: 2.2
2
2
  Name: polyhedral_gravity
3
- Version: 3.2.1rc1
3
+ Version: 3.3rc1
4
4
  Summary: Package to compute full gravity tensor of a given constant density polyhedron for arbitrary points according to the geodetic convention
5
5
  Author: Jonas Schuhmacher
6
6
  Author-email: jonas.schuhmacher@tum.de
@@ -19,9 +19,18 @@ Classifier: Operating System :: MacOS
19
19
  Classifier: Operating System :: POSIX :: Linux
20
20
  Classifier: Intended Audience :: Science/Research
21
21
  Classifier: Topic :: Scientific/Engineering :: Physics
22
- Requires-Python: >=3.6
22
+ Requires-Python: >=3.8
23
23
  Description-Content-Type: text/markdown
24
24
  License-File: LICENSE
25
+ Dynamic: author
26
+ Dynamic: author-email
27
+ Dynamic: classifier
28
+ Dynamic: description
29
+ Dynamic: description-content-type
30
+ Dynamic: license
31
+ Dynamic: project-url
32
+ Dynamic: requires-python
33
+ Dynamic: summary
25
34
 
26
35
  # polyhedral-gravity-model
27
36
 
@@ -124,7 +133,7 @@ around a cube:
124
133
 
125
134
  ```python
126
135
  import numpy as np
127
- from polyhedral_gravity import Polyhedron, GravityEvaluable, evaluate, PolyhedronIntegrity, NormalOrientation
136
+ from polyhedral_gravity import Polyhedron, GravityEvaluable, evaluate, PolyhedronIntegrity, NormalOrientation, MetricUnit
128
137
 
129
138
  # We define the cube as a polyhedron with 8 vertices and 12 triangular faces
130
139
  # The polyhedron's normals point outwards (see below for checking this)
@@ -190,19 +199,22 @@ You can disable/ enable this setting via the optional `integrity_check` flag and
190
199
  automatically repair the ordering via `HEAL`.
191
200
  If you are confident that your mesh is defined correctly (e.g. checked once with the integrity check)
192
201
  you can disable this check (via `DISABLE`) to avoid the additional runtime overhead of the check.
202
+ Also, you can set the metric unit of the mesh and the density.
203
+ This also influences the output unit. E.g., Density in $kg/m^3$, Mesh in $m$, then the potential is given in $m^2/s^2$.
193
204
 
194
205
  ```python
195
206
  cube_polyhedron = Polyhedron(
196
- polyhedral_source=(cube_vertices, cube_faces),
197
- density=cube_density,
207
+ polyhedral_source=(cube_vertices, cube_faces),# coordinates in m (default), km, or unitless
208
+ density=cube_density, # kg/m^3 (default) or kg/km^3 or unitless
198
209
  normal_orientation=NormalOrientation.INWARDS, # OUTWARDS (default) or INWARDS
199
210
  integrity_check=PolyhedronIntegrity.VERIFY, # VERIFY (default), DISABLE or HEAL
211
+ metric_unit=MetricUnit.METER, # METER (default), KILOMETER, UNITLESS
200
212
  )
201
213
  ```
202
214
 
203
215
  > [!TIP]
204
216
  > More examples and plots are depicted in the
205
- [jupyter notebook](script/polyhedral-gravity.ipynb).
217
+ [jupyter notebook](script/polyhedral-gravity.ipynb) and the [second jupyter notebook](script/Kleopatra.ipynb)
206
218
 
207
219
 
208
220
  ### Minimal C++ Example
@@ -278,7 +290,7 @@ you have a C++17 capable compiler and CMake installed.
278
290
  The project uses the following dependencies,
279
291
  all of them are **automatically** set-up via CMake:
280
292
 
281
- - GoogleTest (1.13.0 or compatible), only required for testing
293
+ - GoogleTest (1.15.2 or compatible), only required for testing
282
294
  - spdlog (1.13.0 or compatible), required for logging
283
295
  - tetgen (1.6 or compatible), required for I/O
284
296
  - yaml-cpp (0.8.0 or compatible), required for I/O
@@ -324,17 +336,16 @@ cmake --build .
324
336
 
325
337
  The following options are available:
326
338
 
327
- | Name (Default) | Options |
328
- |-------------------------------------------:|:-------------------------------------------------------------------------------------------|
329
- | POLYHEDRAL_GRAVITY_PARALLELIZATION (`CPP`) | `CPP` = Serial Execution / `OMP` or `TBB` = Parallel Execution with OpenMP or Intel\'s TBB |
330
- | LOGGING_LEVEL (`2`) | `0` = TRACE/ `1` = DEBUG/ `2` = INFO / `3` = WARN/ `4` = ERROR/ `5` = CRITICAL/ `6` = OFF |
331
- | USE_LOCAL_TBB (`OFF`) | Use a local installation of `TBB` instead of setting it up via `CMake` |
332
- | BUILD_POLYHEDRAL_GRAVITY_DOCS (`OFF`) | Build this documentation |
333
- | BUILD_POLYHEDRAL_GRAVITY_TESTS (`ON`) | Build the Tests |
334
- | BUILD_POLYHEDRAL_PYTHON_INTERFACE (`ON`) | Build the Python interface |
339
+ | Name (Default) | Options |
340
+ |-------------------------------------------------------------:|:--------------------------------------------------------------------------------------------|
341
+ | POLYHEDRAL_GRAVITY_PARALLELIZATION (`CPP`) | `CPP` = Serial Execution / `OMP` or `TBB` = Parallel Execution with OpenMP or Intel\'s TBB |
342
+ | POLYHEDRAL_GRAVITY_LOGGING_LEVEL (`INFO`) | `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `CRITICAL`, `OFF` |
343
+ | BUILD_POLYHEDRAL_GRAVITY_DOCS (`OFF`) | Build this documentation |
344
+ | BUILD_POLYHEDRAL_GRAVITY_TESTS (`ON`) | Build the Tests |
345
+ | BUILD_POLYHEDRAL_GRAVITY_PYTHON_INTERFACE (`ON`) | Build the Python interface |
335
346
 
336
347
  During testing POLYHEDRAL_GRAVITY_PARALLELIZATION=`TBB` has been the most performant.
337
- It is further not recommend to change the LOGGING_LEVEL to something else than `INFO=2`.
348
+ It is further not recommend to change the POLYHEDRAL_GRAVITY_LOGGING_LEVEL to something else than `INFO=2`.
338
349
 
339
350
  The recommended CMake settings using the `TBB` backend would look like this:
340
351
 
@@ -367,17 +378,18 @@ Further one must specify the name of the .csv output file.
367
378
  ---
368
379
  gravityModel:
369
380
  input:
370
- polyhedron: #polyhedron source-file(s)
381
+ polyhedron: # polyhedron source-file(s)
371
382
  - "../example-config/data/tsoulis.node" # .node contains the vertices
372
383
  - "../example-config/data/tsoulis.face" # .face contains the triangular faces
373
384
  density: 2670.0 # constant density, units must match with the mesh (see section below)
374
- points: # Location of the computation point(s) P
385
+ # Depends on metric_unit: 'km' -> kg/km^3, 'm' -> kg/m^3, 'unitless' -> 'unitless'
386
+ points: # Location of the computation point(s) P
375
387
  - [ 0, 0, 0 ] # Here it is situated at the origin
376
- check_mesh: true # Fully optional, enables mesh autodetect+repair of
388
+ check_mesh: true # Fully optional, enables mesh autodetect+repair of
377
389
  # the polyhedron's vertex ordering (not given: true)
390
+ metric_unit: m # Unit of mesh: One of 'm', 'km' or 'unitless' (not given: 'm')
378
391
  output:
379
- filename: "gravity_result.csv" # The name of the output file
380
-
392
+ filename: "gravity_result.csv" # The name of the output file
381
393
  ````
382
394
 
383
395
  #### Output
@@ -0,0 +1,8 @@
1
+ polyhedral_gravity.cpython-312-x86_64-linux-musl.so,sha256=WhAACZUNnBXCEgVXbSvlJvNPy4d0KJZA1iu8gMGr-gc,2156865
2
+ polyhedral_gravity-3.3rc1.dist-info/LICENSE,sha256=ZJuIRhVUKcE6znMu3JzQKChvng_3yKh9v3v1MtHspHw,36310
3
+ polyhedral_gravity-3.3rc1.dist-info/WHEEL,sha256=c9GU1jhDUn7S-APtjPhve05mT2FAOW_4NMGdpCIyIBM,112
4
+ polyhedral_gravity-3.3rc1.dist-info/METADATA,sha256=g5XC7ANVj8ecBBO63AOfdWTZDDXngvPsvFMEZ46Iuvw,18499
5
+ polyhedral_gravity-3.3rc1.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
6
+ polyhedral_gravity-3.3rc1.dist-info/RECORD,,
7
+ polyhedral_gravity.libs/libstdc++-0d31ccbe.so.6.0.32,sha256=QyUTnI2umnGgPmNJ-6F_BVIAJnq6-70cNoEWpma6EFQ,3494521
8
+ polyhedral_gravity.libs/libgcc_s-a0b57c20.so.1,sha256=XPAr2giQZFaQKDEig3i_sQM7zfbaGkuhwmZ9ryvu-Vk,148041
@@ -1,5 +1,5 @@
1
1
  Wheel-Version: 1.0
2
- Generator: setuptools (72.1.0)
2
+ Generator: setuptools (75.8.0)
3
3
  Root-Is-Purelib: false
4
4
  Tag: cp312-cp312-musllinux_1_2_x86_64
5
5
 
@@ -1,8 +0,0 @@
1
- polyhedral_gravity.cpython-312-x86_64-linux-musl.so,sha256=9touLIdnMtCLXmJasIKC6cyproTO1bmrloVm3OZWl8Y,2097017
2
- polyhedral_gravity-3.2.1rc1.dist-info/LICENSE,sha256=ZJuIRhVUKcE6znMu3JzQKChvng_3yKh9v3v1MtHspHw,36310
3
- polyhedral_gravity-3.2.1rc1.dist-info/METADATA,sha256=2UQrLcu8ht3_-BeGagOMFqGitL06hb3aiWZ3ZOsZwpU,17537
4
- polyhedral_gravity-3.2.1rc1.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
5
- polyhedral_gravity-3.2.1rc1.dist-info/RECORD,,
6
- polyhedral_gravity-3.2.1rc1.dist-info/WHEEL,sha256=_AGXwykbnxpJoqcCtBlsZzWB12ny_KIGhqICRNQUWmY,112
7
- polyhedral_gravity.libs/libgcc_s-a3a07607.so.1,sha256=5ptIUeAzZweNZrFehN0_Bb5B0FcJgux7NbAFoU8vwwo,148041
8
- polyhedral_gravity.libs/libstdc++-496613c0.so.6.0.32,sha256=AwZhL5WFT99I2Q6vIxXOhW7qddfuOZ1xecxiP9QTVY4,3494361