radia 1.3.1__py3-none-any.whl → 1.3.2__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.
- {radia-1.3.1.dist-info → radia-1.3.2.dist-info}/METADATA +1 -1
- {radia-1.3.1.dist-info → radia-1.3.2.dist-info}/RECORD +5 -6
- python/rad_ngsolve_cached_wrapper.py +0 -36
- {radia-1.3.1.dist-info → radia-1.3.2.dist-info}/WHEEL +0 -0
- {radia-1.3.1.dist-info → radia-1.3.2.dist-info}/licenses/LICENSE +0 -0
- {radia-1.3.1.dist-info → radia-1.3.2.dist-info}/top_level.txt +0 -0
|
@@ -1,7 +1,6 @@
|
|
|
1
1
|
python/__init__.py,sha256=oUOAjf_vY8DNy5HRU7oArAMic8urvHCR9yHSi4HFkkQ,47
|
|
2
2
|
python/nastran_reader.py,sha256=r4K2LJvHBtvBumbinbiQeyPA42iyvxNyAd6Y05lxeZs,10035
|
|
3
3
|
python/rad_ngsolve.pyd,sha256=MMsG16ewluEuSd1-GENNgvmYEQsBPmWZRb_XROvcFmw,570880
|
|
4
|
-
python/rad_ngsolve_cached_wrapper.py,sha256=x3iMXvYMcQxcGCXMrhEAP6sqy_QDr7kcpiHRSfLf_lY,1221
|
|
5
4
|
python/rad_ngsolve_fast.py,sha256=GkC7ruKy3MESHsO0iRSWsrgLU4-DPPgctOi6pPpsWg4,5675
|
|
6
5
|
python/radia.pyd,sha256=n9nOJQAzLDaoifMEMvHT160o7RIONFRINa3kdSvbjFE,1811968
|
|
7
6
|
python/radia_coil_builder.py,sha256=nQkiAbfhueNvvxUARHdPD0C68ImidHmUQv_q4RsImeY,11253
|
|
@@ -9,8 +8,8 @@ python/radia_field_cached.py,sha256=_9w9ETludvkoCx5Qiy6hXvmR7aJ_fzJXof2aF7JqM2Y,
|
|
|
9
8
|
python/radia_ngsolve_field.py,sha256=suJr4wacfYFKOkyV-5AQuHWnW5rtUMb0gSSjq8VRSXc,10166
|
|
10
9
|
python/radia_pyvista_viewer.py,sha256=JS33Mx4azGI7hUX0bzefc6zJfhv6qfRjM3Kl1bE9Mjs,4275
|
|
11
10
|
python/radia_vtk_export.py,sha256=UbPvo7ftHYLREz6TSpWrpLw7JesFhMA58-22R63HHH4,3997
|
|
12
|
-
radia-1.3.
|
|
13
|
-
radia-1.3.
|
|
14
|
-
radia-1.3.
|
|
15
|
-
radia-1.3.
|
|
16
|
-
radia-1.3.
|
|
11
|
+
radia-1.3.2.dist-info/licenses/LICENSE,sha256=a8e7Y3GCWv0nE5mpUTUbnjCAKgZadruvJSkJrZWIaCA,4281
|
|
12
|
+
radia-1.3.2.dist-info/METADATA,sha256=mwyEQE2drxxBWFAv2b6Z0hJKlyeQvtHk7VwL-hvIEnA,13297
|
|
13
|
+
radia-1.3.2.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
|
|
14
|
+
radia-1.3.2.dist-info/top_level.txt,sha256=J-z0poNcsv31IHB413--iOY8LoHBKiTHeybHX3abokI,7
|
|
15
|
+
radia-1.3.2.dist-info/RECORD,,
|
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"""
|
|
2
|
-
Optimized Python wrapper for PrepareCache()
|
|
3
|
-
|
|
4
|
-
This wrapper handles point list preparation in Python (which is faster than
|
|
5
|
-
doing it in C++ via pybind11), then calls the C++ PrepareCache().
|
|
6
|
-
|
|
7
|
-
Usage:
|
|
8
|
-
import rad_ngsolve_cached_wrapper as rn_cache
|
|
9
|
-
|
|
10
|
-
# Collect points from mesh
|
|
11
|
-
all_points = [[x1,y1,z1], [x2,y2,z2], ...]
|
|
12
|
-
|
|
13
|
-
# Prepare cache (optimized)
|
|
14
|
-
A_cf = rad_ngsolve.RadiaField(bg_field, 'a')
|
|
15
|
-
rn_cache.prepare_cache_optimized(A_cf, all_points)
|
|
16
|
-
|
|
17
|
-
# Use cached values
|
|
18
|
-
gf.Set(A_cf) # Fast!
|
|
19
|
-
"""
|
|
20
|
-
|
|
21
|
-
def prepare_cache_optimized(coefficient_function, points_meters):
|
|
22
|
-
"""
|
|
23
|
-
Optimized PrepareCache() with Python-side list preparation
|
|
24
|
-
|
|
25
|
-
Args:
|
|
26
|
-
coefficient_function: rad_ngsolve.RadiaField object
|
|
27
|
-
points_meters: List of [x, y, z] in meters
|
|
28
|
-
|
|
29
|
-
This function is much faster than calling PrepareCache() directly because:
|
|
30
|
-
- Python list operations are fast in Python
|
|
31
|
-
- Avoids pybind11 overhead for list building
|
|
32
|
-
- Only crosses Python/C++ boundary once
|
|
33
|
-
"""
|
|
34
|
-
# Call the C++ PrepareCache with Python-prepared list
|
|
35
|
-
# The C++ side will extract points to C++ arrays efficiently
|
|
36
|
-
coefficient_function.PrepareCache(points_meters)
|
|
File without changes
|
|
File without changes
|
|
File without changes
|