<div dir="ltr"><div>Hi,<br><br></div>My guess is that the TimeStep isn't getting set properly in the adaptor (though it looks like it should be in "dataDescription->SetTimeData(r<wbr>unTime.value(), runTime.deltaTValue());"). My suggestion would be to add in the following to either the RequestDataDescription() or DoCoProcessing() methods in the python script to see what Catalyst thinks the time step is:<br>    print("In script2.py, the data time step is ", datadescription.GetTimeStep())<br><br></div><div class="gmail_extra"><br><div class="gmail_quote">On Wed, Jan 17, 2018 at 9:57 AM, SeongMo <span dir="ltr"><<a href="mailto:seongmo.yeon@gmail.com" target="_blank">seongmo.yeon@gmail.com</a>></span> wrote:<br><blockquote class="gmail_quote" style="margin:0 0 0 .8ex;border-left:1px #ccc solid;padding-left:1ex"><div class="HOEnZb"><div class="h5">Hi,<br>
<br>
I wrote a OpenFOAM adaptor for Catalyst.<br>
<br>
In the ParaView, the connection is made good and shows filtered flow field as written in the python script.<br>
<br>
However, filename_%t and image_%t is not expanded as time marching but just write filename_0 and image_0.png.<br>
<br>
As far as I know, %t should be replaced with current time as given in dataDescription->SetTimeData.<br>
<br>
Any help would be appreciated.<br>
<br>
<br>
FYI, python script is attached and snippet of my OpenFOAM Adaptor code for Catalyst is as follows:<br>
<br>
// icoFoam.C<br>
<br>
#ifdef USE_CATALYST<br>
    Foam::HashTable<string> options = args.options();<br>
    IStringStream is(options["scriptList"]);<br>
    wordList scriptList = readList<word>(is);<br>
    OFAdaptor::Initialize(scriptLi<wbr>st, mesh);<br>
#endif<br>
    while (runTime.loop())<br>
    {<br>
        runTime.write();<br>
#ifdef USE_CATALYST<br>
        OFAdaptor::CoProcess(mesh, runTime);<br>
#endif<br>
    }<br>
#ifdef USE_CATALYST<br>
    OFAdaptor::Finalize();<br>
#endif<br>
<br>
<br>
// OFAdaptor.C<br>
<br>
void CoProcess(Foam::fvMesh& mesh, Foam::Time& runTime)<br>
{<br>
       vtkNew<vtkCPDataDescription> dataDescription;<br>
       dataDescription->AddInput("inp<wbr>ut");<br>
       dataDescription->SetTimeData(r<wbr>unTime.value(), runTime.deltaTValue());<br>
       if (runTime.end())<br>
       {<br>
           // assume that we want to all the pipelines to execute<br>
           // if it is the last time step<br>
           dataDescription->ForceOutputOn<wbr>();<br>
       }<br>
       if (Processor->RequestDataDescrip<wbr>tion(dataDescription.<wbr>GetPointer()) != 0)<br>
       {<br>
           Foam::polyMesh::readUpdateStat<wbr>e meshState = mesh.readUpdate();<br>
<br>
           if(meshState != Foam::polyMesh::UNCHANGED)<br>
           {<br>
               BuildVTKGrid(mesh);<br>
           }<br>
           UpdateVTKAttributes(mesh);<br>
dataDescription->GetInputDescr<wbr>iptionByName("input")-><wbr>SetGrid(multiBlockDataSet);<br>
           Processor->CoProcess(dataDescr<wbr>iption.GetPointer());<br>
       }<br>
}<br>
<br>
<br>
-- <br>
SeongMo Yeon, Ph.D, Senior Engineer<br>
Offshore Hydrodynamics Research<br>
SAMSUNG HEAVY INDUSTRIES CO., LTD.<br>
Central Research Institute<br>
E-mail : <a href="mailto:seongmo.yeon@gmail.com" target="_blank">seongmo.yeon@gmail.com</a><br>
Tel :<br>
------------------------------<wbr>--------------------------<br>
Fluctuat nec mergitur<br>
<br>
</div></div><br>______________________________<wbr>_________________<br>
Powered by <a href="http://www.kitware.com" rel="noreferrer" target="_blank">www.kitware.com</a><br>
<br>
Visit other Kitware open-source projects at <a href="http://www.kitware.com/opensource/opensource.html" rel="noreferrer" target="_blank">http://www.kitware.com/<wbr>opensource/opensource.html</a><br>
<br>
Please keep messages on-topic and check the ParaView Wiki at: <a href="http://paraview.org/Wiki/ParaView" rel="noreferrer" target="_blank">http://paraview.org/Wiki/<wbr>ParaView</a><br>
<br>
Search the list archives at: <a href="http://markmail.org/search/?q=ParaView" rel="noreferrer" target="_blank">http://markmail.org/search/?q=<wbr>ParaView</a><br>
<br>
Follow this link to subscribe/unsubscribe:<br>
<a href="https://paraview.org/mailman/listinfo/paraview" rel="noreferrer" target="_blank">https://paraview.org/mailman/<wbr>listinfo/paraview</a><br>
<br></blockquote></div><br></div>