toughanimator 0.1.6__py3-none-any.whl → 0.1.8__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.
@@ -799,6 +799,8 @@ class vis_reader:
799
799
  p_name = "P"
800
800
  if vtr.GetCellData().GetArray("P (Pa)") is not None:
801
801
  p_name = "P (Pa)"
802
+ if vtr.GetCellData().GetArray("P(Pa)") is not None:
803
+ p_name = "P(Pa)"
802
804
  if vtr.GetCellData().GetArray("P(bar)") is not None:
803
805
  p_name = "P(bar)"
804
806
  if vtr.GetCellData().GetArray("PRES") is not None:
@@ -815,8 +817,18 @@ class vis_reader:
815
817
 
816
818
  vtr.GetCellData().AddArray(delPArray)
817
819
  post_variable_list.append(VisVariable(f'del_{p_name}', ValueType.Scalar, 1))
820
+
821
+ # Put cell-centered data into points
822
+ filter = vtkCellDataToPointData()
823
+ filter.SetInputData(vtr)
824
+ filter.Update()
825
+ vtr_cell_to_points = filter.GetOutput()
826
+
827
+ if vtr.GetCellData().GetArray(f'del_{p_name}') is not None:
828
+ vtr.GetPointData().AddArray(vtr_cell_to_points.GetPointData().GetArray(f'del_{p_name}'))
818
829
 
819
- # add toughreact variables
830
+
831
+ # add toughreact variables
820
832
  if self.setting.tough_version == ToughVersion.TOUGHReact or self.setting.tough_version == ToughVersion.TOUGH3:
821
833
  trapHCO2_array = vtkDoubleArray()
822
834
  trapHCO2_array.SetName('trapHCO2')
@@ -1,6 +1,6 @@
1
1
  Metadata-Version: 2.4
2
2
  Name: toughanimator
3
- Version: 0.1.6
3
+ Version: 0.1.8
4
4
  Summary: A tool for visualizing TOUGH simulation outputs.
5
5
  Home-page: https://github.com/scarletref/toughanimator
6
6
  Author: scarletref
@@ -0,0 +1,7 @@
1
+ toughanimator/__init__.py,sha256=m1f3fJ1SNGLNKxHlS0pLNHwaHlN6UUTh5GpS_8hC8kw,30
2
+ toughanimator/run.py,sha256=YmoiVElHRCo9BzMmBuB53zGy_h8AEQddllQJsqN3tV4,771
3
+ toughanimator/tough_classes.py,sha256=c_EUwDstIVv-GdoarIDI6IMOL1m0pHHYV1ep2l9Nw7I,111590
4
+ toughanimator-0.1.8.dist-info/METADATA,sha256=QyIJQViNITA9ygInPnLzaF105ywS5D7ZXcU9eCW8hTc,4563
5
+ toughanimator-0.1.8.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
+ toughanimator-0.1.8.dist-info/top_level.txt,sha256=pAT-UflvbjT4lTmBdzHqApZGWbywkSM3Y_qsHyLi4pU,14
7
+ toughanimator-0.1.8.dist-info/RECORD,,
@@ -1,7 +0,0 @@
1
- toughanimator/__init__.py,sha256=m1f3fJ1SNGLNKxHlS0pLNHwaHlN6UUTh5GpS_8hC8kw,30
2
- toughanimator/run.py,sha256=YmoiVElHRCo9BzMmBuB53zGy_h8AEQddllQJsqN3tV4,771
3
- toughanimator/tough_classes.py,sha256=qD67posVPMDRaHjM5lGjYkQNPEHxirU9qZVNAp3PPE0,111115
4
- toughanimator-0.1.6.dist-info/METADATA,sha256=-SOWX53-MaW8Vz4KtAlJ6NTa62jzYWuzt72vVChjTng,4563
5
- toughanimator-0.1.6.dist-info/WHEEL,sha256=_zCd3N1l69ArxyTb8rzEoP9TpbYXkqRFSNOD5OuxnTs,91
6
- toughanimator-0.1.6.dist-info/top_level.txt,sha256=pAT-UflvbjT4lTmBdzHqApZGWbywkSM3Y_qsHyLi4pU,14
7
- toughanimator-0.1.6.dist-info/RECORD,,