Re: [Paraview] Can ParaView create "envelope" or cumulative maximums?

2015-12-04 Thread Berk Geveci
Somebody kindly defined a variable called "request" in the programmable
filter. So you can do:

request.Set(vtk.vtkStreamingDemandDrivenPipeline.CONTINUE_EXECUTING(), 1)

I believe.

On Fri, Dec 4, 2015 at 11:29 AM, Favre Jean  wrote:

>
> Incidentally, I tried to achieve this with a Python programmable filter
> since that was Alan's question.
>
> I did not succeed.  I am removing the TIME_STEPS() and TIME_RANGE() in
> the  RequestInformationScript script. I am setting a different
> UPDATE_TIME_STEP() at each iteration of the RequestUpdateExtentScript. I am
> setting CONTINUE_EXECUTING() in the main Script, but ParaView just does not
> loop after the first iteration.
>
> I have the feeling I am not setting CONTINUE_EXECUTING on the right
> object. Question:
>
> how does one get the request object from the executive? When I look at C
> code, I see
>
> int vtkTemporalStatistics::RequestData(vtkInformation *request,
>vtkInformationVector **inputVector,
>vtkInformationVector *outputVector)
> {
> ...
> request->Set(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING(), 1)
> ...
> }
>
> What is the equivalent in Python within a ProgrammableFilter()?
>
> Jean/CSCS
>
> ___
> 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


Re: [Paraview] Can ParaView create "envelope" or cumulative maximums

2015-12-04 Thread Dennis Conklin
Jean,

Manipulating time inside pipeline objects is explained pretty well here:

http://www.kitware.com/blog/home/post/989

Dennis

From: Dennis Conklin
Sent: Friday, December 04, 2015 11:08 AM
To: 'paraview@paraview.org' 
Cc: Alan Scott (wasc...@sandia.gov) 
Subject: [Paraview] Re: Can ParaView create "envelope" or cumulative maximums

Alan,

My first thought is to run Temporal Statistics with Maximum selected and paint 
by that.  Is that not working?

Dennis


Incidentally, I tried to achieve this with a Python programmable filter since
that was Alan's question.

I did not succeed. I am removing the TIME_STEPS() and TIME_RANGE() in the
RequestInformationScript script. I am setting a different UPDATE_TIME_STEP() at
each iteration of the RequestUpdateExtentScript. I am setting
CONTINUE_EXECUTING() in the main Script, but ParaView just does not loop after
the first iteration.

I have the feeling I am not setting CONTINUE_EXECUTING on the right object.
Question:

how does one get the request object from the executive? When I look at C code, I
see

int vtkTemporalStatistics::RequestData(vtkInformation *request, 
vtkInformationVector **inputVector, vtkInformationVector *outputVector) { ... 
request->Set(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING(), 1) ... }

What is the equivalent in Python within a ProgrammableFilter()?

Jean/CSCS

___ 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
(c) 2007-2014 MarkLogic Corporation. All rights reserved. 
Home | paraview Home | 
Browse | 
FAQ | 
Advertising | 
Blog | 
Feedback | MarkMail(tm) 
Legale

___
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


Re: [Paraview] Can ParaView create "envelope" or cumulative maximums?

2015-12-04 Thread Favre Jean

Incidentally, I tried to achieve this with a Python programmable filter since 
that was Alan's question.

I did not succeed.  I am removing the TIME_STEPS() and TIME_RANGE() in the  
RequestInformationScript script. I am setting a different UPDATE_TIME_STEP() at 
each iteration of the RequestUpdateExtentScript. I am setting 
CONTINUE_EXECUTING() in the main Script, but ParaView just does not loop after 
the first iteration.

I have the feeling I am not setting CONTINUE_EXECUTING on the right object. 
Question:

how does one get the request object from the executive? When I look at C code, 
I see

int vtkTemporalStatistics::RequestData(vtkInformation *request,
   vtkInformationVector **inputVector,
   vtkInformationVector *outputVector)
{
...
request->Set(vtkStreamingDemandDrivenPipeline::CONTINUE_EXECUTING(), 1)
...
}

What is the equivalent in Python within a ProgrammableFilter()?

Jean/CSCS
___
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


[Paraview] Can ParaView create "envelope" or cumulative maximums?

2015-12-03 Thread Scott, W Alan
I have a user that needs to create a new array, with each cell in the array 
holding the maximum value of each cell over all time.  I have heard this called 
a cumulative maximum for all cells.  The then wants to paint his 3d object with 
this new array.  For instance, if you have a variable array (maybe von mises 
stress), three cells and four timesteps, as follows:


Three cells:
0.0 0.0 0.0(Timestep 0)
1.0 0.0 0.0(Timestep 1)
2.0 1.0 0.0(Timestep 2)
1.0 3.0 1.0(Timestep 3)

Results, to be used to paint the object in a 3d view:
2.0 3.0 1.0(Result)


Does anyone know how to do this?  My user feels comfortable with Python and the 
Programmable filter/ Python Calculator.

Thanks,

Alan

___
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