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):
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,