Hi Matthieu, That makes complete sense. I've thought about putting in a C++ Catalyst pipeline in the main source code that could be used to just write out the data at some prescribed file name and frequency but haven't forced myself to do it. It gets slightly more complicated when dealing with multiple inputs. In the Examples/Catalyst/SampleScripts subdirectory of the source code there are two Python scripts that can be used to write out the full grid, gridwriter.py and allinputsgridwriter.py.
If you create a C++ script to do that and want to have it added into ParaView, I can help with that. Otherwise, I'll get to it eventually... Cheers, Andy On Wed, Sep 21, 2016 at 10:29 AM, Lokman Rahmani <[email protected]> wrote: > Hi Matthieu! > > I investigated the same question recently, here is what I found so far. > > In Catalyst/CoProcessing the python script is used to create a vtk pipeline > > --------- > vtkNew<vtkCPPythonScriptPipeline> pipeline; > > pipeline->Initialize(scriptPath) > --------- > > This pipeline will be passed to vtk processor that will do the > CoPorcessing by executing the pipeline > > ------ > vtkCPProcessor* Processor = vtkCPProcessor::New(); > > Processor->Initialize(); > Processor->AddPipeline(pipeline.GetPointer()); > Processor->CcProcess(...) > ------ > > checking the souce code of VtkCPProcessor (https://gitlab.kitware.com/ > paraview/paraview/blob/master/CoProcessing/Catalyst/vtkCPProcessor.h) > > ---- > > /// Add in a pipeline that is externally configured. Returns 1 if /// > successful and 0 otherwise. virtual int AddPipeline(vtkCPPipeline* pipeline); > > ------- > > a vtkCPProcessor object can add a pipeline of any class extending the > vtkCPPipeline (which is a an abstract class) > > Beside of the official python implementation (https://gitlab.kitware.com/ > paraview/paraview/blob/master/CoProcessing/PythonCatalyst/ > vtkCPPythonScriptPipeline.h) I am not aware of any other implementation. > > Otherwise, you can to implement your own implementation (which looks very > time consuming ...). > http://www.vtk.org/Wiki/VTK/Tutorials/New_Pipeline > > Hope this helps. > > I'll be interested if some one is aware of any c++ implementation of the > pipeline. > > Best, > Lokman > > ================================ > > > ------------------------------ > > *De: *"Matthieu Dorier" <[email protected]> > *À: *"ParaView Mailing List [[email protected]]" < > [email protected]> > *Envoyé: *Mercredi 21 Septembre 2016 15:27:41 > *Objet: *[Paraview] Catalyst: dump everything in C++ > > > Hi, > > In general the way we create python scripts for a Catalyst-enabled > simulation is by first running the simulation with a Python script that > writes the data into files, then do offline analysis on those files and > export a python script representing the analysis tasks to be done in situ. > > I was wondering if, instead of using a Python script for writing all the > data into file, an equivalent C++ code was available, and how such a code > would be integrated into a Catalyst-enabled simulation? Or maybe just with > VTK once the adaptors are written for the simulation's data? > > Thanks, > > Matthieu > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > > > > _______________________________________________ > Powered by www.kitware.com > > Visit other Kitware open-source projects at http://www.kitware.com/ > opensource/opensource.html > > Please keep messages on-topic and check the ParaView Wiki at: > http://paraview.org/Wiki/ParaView > > Search the list archives at: http://markmail.org/search/?q=ParaView > > Follow this link to subscribe/unsubscribe: > http://public.kitware.com/mailman/listinfo/paraview > >
_______________________________________________ Powered by www.kitware.com Visit other Kitware open-source projects at http://www.kitware.com/opensource/opensource.html Please keep messages on-topic and check the ParaView Wiki at: http://paraview.org/Wiki/ParaView Search the list archives at: http://markmail.org/search/?q=ParaView Follow this link to subscribe/unsubscribe: http://public.kitware.com/mailman/listinfo/paraview
