polyhedral-gravity 3.0rc3__cp36-cp36m-win_amd64.whl → 3.2rc1__cp36-cp36m-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.0rc3.dist-info → polyhedral_gravity-3.2rc1.dist-info}/METADATA +14 -14
- polyhedral_gravity-3.2rc1.dist-info/RECORD +6 -0
- polyhedral_gravity.cp36-win_amd64.pyd +0 -0
- polyhedral_gravity-3.0rc3.dist-info/RECORD +0 -6
- {polyhedral_gravity-3.0rc3.dist-info → polyhedral_gravity-3.2rc1.dist-info}/LICENSE +0 -0
- {polyhedral_gravity-3.0rc3.dist-info → polyhedral_gravity-3.2rc1.dist-info}/WHEEL +0 -0
- {polyhedral_gravity-3.0rc3.dist-info → polyhedral_gravity-3.2rc1.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.2rc1
|
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
|
Home-page: UNKNOWN
|
6
6
|
Author: Jonas Schuhmacher
|
@@ -81,8 +81,8 @@ which is strongly based on the former implementation in FORTRAN.
|
|
81
81
|
|
82
82
|
> [!NOTE]
|
83
83
|
> The [GitHub Pages](https://esa.github.io/polyhedral-gravity-model) of this project
|
84
|
-
contain the full extensive documentation of C++ Library and
|
85
|
-
as well as background on the gravity model and advanced settings not detailed here
|
84
|
+
contain the full extensive documentation of the C++ Library and Python Interface
|
85
|
+
as well as background on the gravity model and advanced settings not detailed here.
|
86
86
|
|
87
87
|
## Input & Output (C++ and Python)
|
88
88
|
|
@@ -141,7 +141,7 @@ cube_density = 1.0
|
|
141
141
|
computation_point = np.array([0, 0, 0])
|
142
142
|
```
|
143
143
|
|
144
|
-
We first
|
144
|
+
We first define a constant density Polyhedron from `vertices` and `faces`
|
145
145
|
|
146
146
|
```python
|
147
147
|
cube_polyhedron = Polyhedron(
|
@@ -150,9 +150,9 @@ cube_polyhedron = Polyhedron(
|
|
150
150
|
)
|
151
151
|
```
|
152
152
|
|
153
|
-
In case you want to hand over the polyhedron via a supported file format,
|
153
|
+
In case you want to hand over the polyhedron via a [supported file format](https://esa.github.io/polyhedral-gravity-model/quickstart/supported_input.html),
|
154
154
|
just replace the `polyhedral_source` argument with *a list of strings*,
|
155
|
-
where each string is the path to a supported file format.
|
155
|
+
where each string is the path to a supported file format, e.g. `polyhedral_source=["eros.node","eros.face"]` or `polyhedral_source=["eros.mesh"]`.
|
156
156
|
|
157
157
|
Continuing, the simplest way to compute the gravity is to use the `evaluate` function:
|
158
158
|
|
@@ -170,14 +170,15 @@ evaluations. This is especially useful if you want to compute the gravity
|
|
170
170
|
for multiple computation points, but don't know the "future points" in advance.
|
171
171
|
|
172
172
|
```python
|
173
|
-
evaluable = GravityEvaluable(polyhedron=cube_polyhedron)
|
173
|
+
evaluable = GravityEvaluable(polyhedron=cube_polyhedron) # stores intermediate computation steps
|
174
174
|
potential, acceleration, tensor = evaluable(
|
175
175
|
computation_points=computation_point,
|
176
176
|
parallel=True,
|
177
177
|
)
|
178
|
+
# Any future evaluable call after this one will be faster
|
178
179
|
```
|
179
180
|
|
180
|
-
Note that the `computation_point` could also be (N, 3)-shaped array.
|
181
|
+
Note that the `computation_point` could also be (N, 3)-shaped array to compute multiple points at once.
|
181
182
|
In this case, the return value of `evaluate(..)` or an `GravityEvaluable` will
|
182
183
|
be a list of triplets comprising potential, acceleration, and tensor.
|
183
184
|
|
@@ -187,15 +188,15 @@ This property is - by default - checked when constructing the `Polyhedron`! So,
|
|
187
188
|
is impossible if not **explicitly** disabled to create an invalid `Polyhedron`.
|
188
189
|
You can disable/ enable this setting via the optional `integrity_check` flag and can even
|
189
190
|
automatically repair the ordering via `HEAL`.
|
190
|
-
|
191
|
-
you
|
191
|
+
If you are confident that your mesh is defined correctly (e.g. checked once with the integrity check)
|
192
|
+
you can disable this check (via `DISABLE`) to avoid the additional runtime overhead of the check.
|
192
193
|
|
193
194
|
```python
|
194
195
|
cube_polyhedron = Polyhedron(
|
195
196
|
polyhedral_source=(cube_vertices, cube_faces),
|
196
197
|
density=cube_density,
|
197
198
|
normal_orientation=NormalOrientation.INWARDS, # OUTWARDS (default) or INWARDS
|
198
|
-
integrity_check=PolyhedronIntegrity.VERIFY, #
|
199
|
+
integrity_check=PolyhedronIntegrity.VERIFY, # VERIFY (default), DISABLE or HEAL
|
199
200
|
)
|
200
201
|
```
|
201
202
|
|
@@ -335,8 +336,7 @@ The following options are available:
|
|
335
336
|
During testing POLYHEDRAL_GRAVITY_PARALLELIZATION=`TBB` has been the most performant.
|
336
337
|
It is further not recommend to change the LOGGING_LEVEL to something else than `INFO=2`.
|
337
338
|
|
338
|
-
The recommended CMake
|
339
|
-
the defaults of the others are already correctly set):
|
339
|
+
The recommended CMake settings using the `TBB` backend would look like this:
|
340
340
|
|
341
341
|
```bash
|
342
342
|
cmake .. -POLYHEDRAL_GRAVITY_PARALLELIZATION="TBB"
|
@@ -347,7 +347,7 @@ cmake .. -POLYHEDRAL_GRAVITY_PARALLELIZATION="TBB"
|
|
347
347
|
After the build, the gravity model can be run by executing:
|
348
348
|
|
349
349
|
```bash
|
350
|
-
|
350
|
+
./polyhedralGravity <YAML-Configuration-File>
|
351
351
|
```
|
352
352
|
|
353
353
|
where the YAML-Configuration-File contains the required parameters.
|
@@ -0,0 +1,6 @@
|
|
1
|
+
polyhedral_gravity.cp36-win_amd64.pyd,sha256=n5sLbuTu8ktpadVjnD5JG5vwLuwMY7PQDmXF_pVjA8U,1213952
|
2
|
+
polyhedral_gravity-3.2rc1.dist-info/LICENSE,sha256=cZuYeTT-iPE-aCqNISUCPMeVYrp_tMQZaDsaHg1zgrs,37006
|
3
|
+
polyhedral_gravity-3.2rc1.dist-info/METADATA,sha256=02Zq7K4NGbATO3xo5zzVUI7gjbnsVFPKfEMwQORFXn8,17494
|
4
|
+
polyhedral_gravity-3.2rc1.dist-info/WHEEL,sha256=zukbZftcRdNfJ55Q_RYV9JZ3uVyqWKyq-wDJbmszs_U,101
|
5
|
+
polyhedral_gravity-3.2rc1.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
|
6
|
+
polyhedral_gravity-3.2rc1.dist-info/RECORD,,
|
Binary file
|
@@ -1,6 +0,0 @@
|
|
1
|
-
polyhedral_gravity.cp36-win_amd64.pyd,sha256=fwWjmC9c0bLGeNIB8bCINSYTYmW0qfF1aCS5EWrJzvw,1168384
|
2
|
-
polyhedral_gravity-3.0rc3.dist-info/LICENSE,sha256=cZuYeTT-iPE-aCqNISUCPMeVYrp_tMQZaDsaHg1zgrs,37006
|
3
|
-
polyhedral_gravity-3.0rc3.dist-info/METADATA,sha256=gJA1WdWxWmU4VboMe2RFpNO3JTFp6I9TWl1ykih6ygI,17224
|
4
|
-
polyhedral_gravity-3.0rc3.dist-info/WHEEL,sha256=zukbZftcRdNfJ55Q_RYV9JZ3uVyqWKyq-wDJbmszs_U,101
|
5
|
-
polyhedral_gravity-3.0rc3.dist-info/top_level.txt,sha256=bIf9hErNs1GV27AnQWoRTE2j0lRmjhrKI1z-_MTR4Nk,19
|
6
|
-
polyhedral_gravity-3.0rc3.dist-info/RECORD,,
|
File without changes
|
File without changes
|
File without changes
|