pyviewfactor 0.1.5__tar.gz → 0.1.6__tar.gz

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
1
  Metadata-Version: 2.1
2
2
  Name: pyviewfactor
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A python library to calculate numerically exact radiation view factors between planar faces.
5
5
  Home-page: https://gitlab.com/arep-dev/pyViewFactor/
6
6
  Author: Mateusz BOGDAN, Edouard WALTHER, Marc ALECIAN, Mina CHAPON
@@ -1,5 +1,5 @@
1
1
  """Version info for pyViewFactor"""
2
- version_info = 0, 1, 5
2
+ version_info = 0, 1, 6
3
3
 
4
4
  # Nice string for the version
5
5
  __version__ = '.'.join(map(str, version_info))
@@ -557,9 +557,15 @@ def compute_viewfactor(cell_1, cell_2, epsilon=0.00001, rounding_decimal=6):
557
557
  pts2 = pts2 + epsilon * dir_vec
558
558
 
559
559
  # 4) Recompute auxiliary arrays for the Numba core
560
- # vect_intra_1, vect_intra_2, matL, constante, etc.
561
- # (same logic you already have, but using the possibly shifted pts2)
562
-
560
+ # Build the intra‐edge (directed edge) vectors for each facet
561
+ pts1_roll = np.roll(pts1, -1, axis=0)
562
+ vect_intra_1 = pts1_roll - pts1
563
+ pts2_roll = np.roll(pts2, -1, axis=0)
564
+ vect_intra_2 = pts2_roll - pts2
565
+
566
+ # Compute the 4π·Area constant from cell_2
567
+ area2 = cell_2.compute_cell_sizes(area=True)['Area'][0]
568
+ constante = 4.0 * np.pi * area2
563
569
  # 5) Call the Numba core:
564
570
  return compute_viewfactor_core(pts1, pts2,
565
571
  vect_intra_1, vect_intra_2,
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.1
2
2
  Name: pyviewfactor
3
- Version: 0.1.5
3
+ Version: 0.1.6
4
4
  Summary: A python library to calculate numerically exact radiation view factors between planar faces.
5
5
  Home-page: https://gitlab.com/arep-dev/pyViewFactor/
6
6
  Author: Mateusz BOGDAN, Edouard WALTHER, Marc ALECIAN, Mina CHAPON
File without changes
File without changes
File without changes
File without changes