polyhedral-gravity 3.2.1rc1__cp38-cp38-win_amd64.whl → 3.3rc1__cp38-cp38-win_amd64.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.
- {polyhedral_gravity-3.2.1rc1.dist-info → polyhedral_gravity-3.3rc1.dist-info}/METADATA +24 -21
- polyhedral_gravity-3.3rc1.dist-info/RECORD +6 -0
- {polyhedral_gravity-3.2.1rc1.dist-info → polyhedral_gravity-3.3rc1.dist-info}/WHEEL +1 -1
- polyhedral_gravity.cp38-win_amd64.pyd +0 -0
- polyhedral_gravity-3.2.1rc1.dist-info/RECORD +0 -6
- {polyhedral_gravity-3.2.1rc1.dist-info → polyhedral_gravity-3.3rc1.dist-info}/LICENSE +0 -0
- {polyhedral_gravity-3.2.1rc1.dist-info → polyhedral_gravity-3.3rc1.dist-info}/top_level.txt +0 -0
@@ -1,6 +1,6 @@
|
|
1
1
|
Metadata-Version: 2.1
|
2
2
|
Name: polyhedral_gravity
|
3
|
-
Version: 3.
|
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,7 +19,7 @@ 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.
|
22
|
+
Requires-Python: >=3.8
|
23
23
|
Description-Content-Type: text/markdown
|
24
24
|
License-File: LICENSE
|
25
25
|
|
@@ -124,7 +124,7 @@ around a cube:
|
|
124
124
|
|
125
125
|
```python
|
126
126
|
import numpy as np
|
127
|
-
from polyhedral_gravity import Polyhedron, GravityEvaluable, evaluate, PolyhedronIntegrity, NormalOrientation
|
127
|
+
from polyhedral_gravity import Polyhedron, GravityEvaluable, evaluate, PolyhedronIntegrity, NormalOrientation, MetricUnit
|
128
128
|
|
129
129
|
# We define the cube as a polyhedron with 8 vertices and 12 triangular faces
|
130
130
|
# The polyhedron's normals point outwards (see below for checking this)
|
@@ -190,19 +190,22 @@ You can disable/ enable this setting via the optional `integrity_check` flag and
|
|
190
190
|
automatically repair the ordering via `HEAL`.
|
191
191
|
If you are confident that your mesh is defined correctly (e.g. checked once with the integrity check)
|
192
192
|
you can disable this check (via `DISABLE`) to avoid the additional runtime overhead of the check.
|
193
|
+
Also, you can set the metric unit of the mesh and the density.
|
194
|
+
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
195
|
|
194
196
|
```python
|
195
197
|
cube_polyhedron = Polyhedron(
|
196
|
-
polyhedral_source=(cube_vertices, cube_faces),
|
197
|
-
density=cube_density,
|
198
|
+
polyhedral_source=(cube_vertices, cube_faces),# coordinates in m (default), km, or unitless
|
199
|
+
density=cube_density, # kg/m^3 (default) or kg/km^3 or unitless
|
198
200
|
normal_orientation=NormalOrientation.INWARDS, # OUTWARDS (default) or INWARDS
|
199
201
|
integrity_check=PolyhedronIntegrity.VERIFY, # VERIFY (default), DISABLE or HEAL
|
202
|
+
metric_unit=MetricUnit.METER, # METER (default), KILOMETER, UNITLESS
|
200
203
|
)
|
201
204
|
```
|
202
205
|
|
203
206
|
> [!TIP]
|
204
207
|
> More examples and plots are depicted in the
|
205
|
-
[jupyter notebook](script/polyhedral-gravity.ipynb).
|
208
|
+
[jupyter notebook](script/polyhedral-gravity.ipynb) and the [second jupyter notebook](script/Kleopatra.ipynb)
|
206
209
|
|
207
210
|
|
208
211
|
### Minimal C++ Example
|
@@ -278,7 +281,7 @@ you have a C++17 capable compiler and CMake installed.
|
|
278
281
|
The project uses the following dependencies,
|
279
282
|
all of them are **automatically** set-up via CMake:
|
280
283
|
|
281
|
-
- GoogleTest (1.
|
284
|
+
- GoogleTest (1.15.2 or compatible), only required for testing
|
282
285
|
- spdlog (1.13.0 or compatible), required for logging
|
283
286
|
- tetgen (1.6 or compatible), required for I/O
|
284
287
|
- yaml-cpp (0.8.0 or compatible), required for I/O
|
@@ -324,17 +327,16 @@ cmake --build .
|
|
324
327
|
|
325
328
|
The following options are available:
|
326
329
|
|
327
|
-
|
|
328
|
-
|
329
|
-
|
|
330
|
-
|
|
331
|
-
|
|
332
|
-
|
|
333
|
-
|
|
334
|
-
| BUILD_POLYHEDRAL_PYTHON_INTERFACE (`ON`) | Build the Python interface |
|
330
|
+
| Name (Default) | Options |
|
331
|
+
|-------------------------------------------------------------:|:--------------------------------------------------------------------------------------------|
|
332
|
+
| POLYHEDRAL_GRAVITY_PARALLELIZATION (`CPP`) | `CPP` = Serial Execution / `OMP` or `TBB` = Parallel Execution with OpenMP or Intel\'s TBB |
|
333
|
+
| POLYHEDRAL_GRAVITY_LOGGING_LEVEL (`INFO`) | `TRACE`, `DEBUG`, `INFO`, `WARN`, `ERROR`, `CRITICAL`, `OFF` |
|
334
|
+
| BUILD_POLYHEDRAL_GRAVITY_DOCS (`OFF`) | Build this documentation |
|
335
|
+
| BUILD_POLYHEDRAL_GRAVITY_TESTS (`ON`) | Build the Tests |
|
336
|
+
| BUILD_POLYHEDRAL_GRAVITY_PYTHON_INTERFACE (`ON`) | Build the Python interface |
|
335
337
|
|
336
338
|
During testing POLYHEDRAL_GRAVITY_PARALLELIZATION=`TBB` has been the most performant.
|
337
|
-
It is further not recommend to change the
|
339
|
+
It is further not recommend to change the POLYHEDRAL_GRAVITY_LOGGING_LEVEL to something else than `INFO=2`.
|
338
340
|
|
339
341
|
The recommended CMake settings using the `TBB` backend would look like this:
|
340
342
|
|
@@ -367,17 +369,18 @@ Further one must specify the name of the .csv output file.
|
|
367
369
|
---
|
368
370
|
gravityModel:
|
369
371
|
input:
|
370
|
-
polyhedron:
|
372
|
+
polyhedron: # polyhedron source-file(s)
|
371
373
|
- "../example-config/data/tsoulis.node" # .node contains the vertices
|
372
374
|
- "../example-config/data/tsoulis.face" # .face contains the triangular faces
|
373
375
|
density: 2670.0 # constant density, units must match with the mesh (see section below)
|
374
|
-
|
376
|
+
# Depends on metric_unit: 'km' -> kg/km^3, 'm' -> kg/m^3, 'unitless' -> 'unitless'
|
377
|
+
points: # Location of the computation point(s) P
|
375
378
|
- [ 0, 0, 0 ] # Here it is situated at the origin
|
376
|
-
check_mesh: true # Fully optional, enables mesh autodetect+repair of
|
379
|
+
check_mesh: true # Fully optional, enables mesh autodetect+repair of
|
377
380
|
# the polyhedron's vertex ordering (not given: true)
|
381
|
+
metric_unit: m # Unit of mesh: One of 'm', 'km' or 'unitless' (not given: 'm')
|
378
382
|
output:
|
379
|
-
filename: "gravity_result.csv" # The name of the output file
|
380
|
-
|
383
|
+
filename: "gravity_result.csv" # The name of the output file
|
381
384
|
````
|
382
385
|
|
383
386
|
#### Output
|
@@ -0,0 +1,6 @@
|
|
1
|
+
polyhedral_gravity.cp38-win_amd64.pyd,sha256=tvL40Z8pCgNvKs_iXUSeliQ2mH0MbaeGWGnl52t07X8,1239040
|
2
|
+
polyhedral_gravity-3.3rc1.dist-info/LICENSE,sha256=cZuYeTT-iPE-aCqNISUCPMeVYrp_tMQZaDsaHg1zgrs,37006
|
3
|
+
polyhedral_gravity-3.3rc1.dist-info/METADATA,sha256=fEKtIBTMYK7QiHcb5JV7zsjcITzP9HWN5ihXqjuXThw,18717
|
4
|
+
polyhedral_gravity-3.3rc1.dist-info/WHEEL,sha256=rTcqimtzpX3smAWAhGmiRSWAxTY4PqYPNE-p4kscHDQ,99
|
5
|
+
polyhedral_gravity-3.3rc1.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
|
6
|
+
polyhedral_gravity-3.3rc1.dist-info/RECORD,,
|
Binary file
|
@@ -1,6 +0,0 @@
|
|
1
|
-
polyhedral_gravity.cp38-win_amd64.pyd,sha256=PV_jnvk4sciRxkIoAr3Eks7K0YifdUs2L0JXs3AXvVE,1195520
|
2
|
-
polyhedral_gravity-3.2.1rc1.dist-info/LICENSE,sha256=cZuYeTT-iPE-aCqNISUCPMeVYrp_tMQZaDsaHg1zgrs,37006
|
3
|
-
polyhedral_gravity-3.2.1rc1.dist-info/METADATA,sha256=-0EybtRKHUlVChKbWfenAD0t80-rACp1NLNPmRbZnBw,17945
|
4
|
-
polyhedral_gravity-3.2.1rc1.dist-info/WHEEL,sha256=L7iDe0gnhxAIl4O1ywL3Ua8qYC_NrMQclbMtgMApFc0,99
|
5
|
-
polyhedral_gravity-3.2.1rc1.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
|
6
|
-
polyhedral_gravity-3.2.1rc1.dist-info/RECORD,,
|
File without changes
|
File without changes
|