]> SALOME platform Git repositories - tools/solverlab.git/commitdiff
Salome HOME
Replaced obsolete ParaView parameter
authormichael <michael@localhost.localdomain>
Sat, 30 Jan 2021 23:22:18 +0000 (00:22 +0100)
committermichael <michael@localhost.localdomain>
Sat, 30 Jan 2021 23:22:18 +0000 (00:22 +0100)
CDMATH/postprocessing/PV_routines.py

index 2891699a39b89a4defe2b908816e7f8a786af09d..944a374c3b5dc0673df9df98b103ee7c7f9dc734 100755 (executable)
@@ -16,7 +16,7 @@ def Extract_PV_data_over_line_to_txt_file(inputFileName, outputFileName,
     PlotOverLine1.Source.Point2 = point2
     PlotOverLine1.Source.Resolution = resolution
     writer = pvs.CreateWriter(outputFileName, PlotOverLine1)
-    writer.FieldAssociation = "Points"  # or "Cells"
+    writer.FieldAssociation = "Point Data"  # or "Cell Data"
     writer.UpdatePipeline()
     
 def Extract_PV_data_over_line_to_numpyArray(inputFileName, point1, point2, resolution):
@@ -54,7 +54,7 @@ def Slice_PV_data_to_txt_file(inputFileName,
     CellCenters1 = pvs.CellCenters()    
     writer = pvs.CreateWriter(outputFileName, CellCenters1)
     writer.Precision=resolution
-    writer.FieldAssociation = "Points"  # or "Cells"
+    writer.FieldAssociation = "Point Data"  # or "Cell Data"
     writer.UpdatePipeline()
  
 def Slice_PV_field_data_to_numpyArray(field,