I fail at making a working selection via script.
How can I determine what to write at Selection=
[…]
plotSelectionOverTime1 = PlotSelectionOverTime(Input=descriptiveStatistics1,
Selection=None)
[…]
Error msg is this: Warning: In /home/ubuntu/OpenFOAM/ThirdParty-dev/ParaView-5.6.0/ParaViewCore/VTKExtensions/Default/vtkSciVizStatistics.cxx, line 581
vtkPSciVizDescriptiveStats (0x55e5205a2ed0): Every requested array wasn’t a scalar or wasn’t present.
The code I got via the Trace function.
Regards,
Terry
for i in range(2):
selection = SelectCells(query=“id==” +str(i))
plotSelectionOverTime = PlotSelectionOverTime(Input=contour1, Selection=selection)
However I can’t find a way to determine to select something after using the descriptiveStatistics filter via paraviev.simple as it does not “create a cell to select” like many other filters do.
I could try: SaveData with proxy descriptiveStatistics and WriteTimeSteps=1. And write me something to get the data out of all these files and into one I could use with gnuplot…
If I’m correct the selection is working now with your code.
However I am still not able to use the filter via python
This is the TraceBack:
create a new ‘OpenFOAMReader’
create a new ‘Descriptive Statistics’
Traceback (most recent call last):
File “volumenschwerpunkt.py”, line 39, in
descriptiveStatistics1.AttributeMode = ‘Point Data’
File “/opt/paraviewopenfoam56/lib/python2.7/site-packages/paraview/servermanager.py”, line 471, in setattr
raise ValueError("%s is not a valid value for attribute s." (value, name))
ValueError: Point Data is not a valid value for attribute AttributeMode.
‘Field Data’ is accepted instead of ‘Point Data’ but empty.