| 9 | def CreateCoProcessor(): |
| 10 | def _CreatePipeline(coprocessor, datadescription): |
| 11 | class Pipeline: |
| 12 | filename_3_pvtu = coprocessor.CreateProducer( datadescription, "input" ) |
| 13 | |
| 14 | Slice1 = Slice( guiName="Slice1", Crinkleslice=0, SliceOffsetValues=[0.0], Triangulatetheslice=1, SliceType="Plane" ) |
| 15 | Slice1.SliceType.Offset = 0.0 |
| 16 | Slice1.SliceType.Origin = [34.5, 32.45, 27.95] |
| 17 | Slice1.SliceType.Normal = [1.0, 0.0, 0.0] |
| 18 | |
| 19 | # create a new 'Parallel PolyData Writer' |
| 20 | parallelPolyDataWriter1 = servermanager.writers.XMLPPolyDataWriter(Input=Slice1) |
| 21 | |
| 22 | # register the writer with coprocessor |
| 23 | # and provide it with information such as the filename to use, |
| 24 | # how frequently to write the data, etc. |
| 25 | coprocessor.RegisterWriter(parallelPolyDataWriter1, filename='slice_{time}.pvtp', freq=10) |
| 26 | |
| 27 | # create a new 'Parallel UnstructuredGrid Writer' |
| 28 | unstructuredGridWriter1 = servermanager.writers.XMLPUnstructuredGridWriter(Input=filename_3_pvtu) |
| 29 | |
| 30 | # register the writer with coprocessor |
| 31 | # and provide it with information such as the filename to use, |
| 32 | # how frequently to write the data, etc. |
| 33 | coprocessor.RegisterWriter(unstructuredGridWriter1, filename='fullgrid_{time}.pvtu', freq=100) |
| 34 | |
| 35 | return Pipeline() |
| 36 |
no test coverage detected