[Paraview] Integrate variable filter

2017-12-01 Thread Lionel Wilhelm
Dear Paraviewers,

I'm trying to compute a closed volume in paraview. For that purpose, I define a 
constant field with value 1 on the domain and use the integrate filter. 
Unfortunately the result does not seem to be correct.

Attached a screenshot of the GUI where I try to compute the volume of a cube 
which volume is  0.075^3.

I guess that floating point operations error might result in this error but I'm 
unsure. Furthermore could you tell me if there is a mean for computing such 
small volumes enclosed in complex surfaces?

Kindly,

Lionel Wilhelm


___
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] Integrate variable filter

2017-12-01 Thread Andrew
Hello.
For calculationg volumes and areas, the "Cell Data" attribute type of
Integrate variables filter is usable. You don't need to define additional
constant field for this. I checked it now and it seems to give the correct
domain volume (554 m3 in SolidWorks, 557 m3 in ParaView). The error may be
due to unequality of mesh and "ideal" geometry. You can also use the
Threshold filter before the Intergate variables to define the custom volume
(with particular scalar values).

2017-12-01 12:08 GMT+03:00 Lionel Wilhelm :

> Dear Paraviewers,
>
> I'm trying to compute a closed volume in paraview. For that purpose, I
> define a constant field with value 1 on the domain and use the integrate
> filter. Unfortunately the result does not seem to be correct.
>
> Attached a screenshot of the GUI where I try to compute the volume of a
> cube which volume is  0.075^3.
>
> I guess that floating point operations error might result in this error
> but I'm unsure. Furthermore could you tell me if there is a mean for
> computing such small volumes enclosed in complex surfaces?
>
> Kindly,
>
> Lionel Wilhelm
>
>
> ___
> 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] Integrate variable filter

2017-12-01 Thread Andy Bauer
You may also want to look at the Cell Size filter which has the advanced
option to globally sum the values.

The Integrate Variable filter can give unexpected results with mixed
dimension elements since it will integrate all 0D, 1D, 2D and 3D cells.

On Fri, Dec 1, 2017 at 5:02 AM, Andrew  wrote:

> Hello.
> For calculationg volumes and areas, the "Cell Data" attribute type of
> Integrate variables filter is usable. You don't need to define additional
> constant field for this. I checked it now and it seems to give the correct
> domain volume (554 m3 in SolidWorks, 557 m3 in ParaView). The error may be
> due to unequality of mesh and "ideal" geometry. You can also use the
> Threshold filter before the Intergate variables to define the custom volume
> (with particular scalar values).
>
> 2017-12-01 12:08 GMT+03:00 Lionel Wilhelm :
>
>> Dear Paraviewers,
>>
>> I'm trying to compute a closed volume in paraview. For that purpose, I
>> define a constant field with value 1 on the domain and use the integrate
>> filter. Unfortunately the result does not seem to be correct.
>>
>> Attached a screenshot of the GUI where I try to compute the volume of a
>> cube which volume is  0.075^3.
>>
>> I guess that floating point operations error might result in this error
>> but I'm unsure. Furthermore could you tell me if there is a mean for
>> computing such small volumes enclosed in complex surfaces?
>>
>> Kindly,
>>
>> Lionel Wilhelm
>>
>>
>> ___
>> 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


Re: [Paraview] Writing XML VTK Binary files from C++

2017-12-01 Thread David E DeMarle
Another approach is to use VTK itself to write the files.

Since VTK 6 it is straightforward to configure a VTK build consisting
of only the IO/ParallelXML module and its required dependencies. To do
so, in cmake, turn of testing, all groups and turn on
Module_vtkIOParallelXML, and you should be set.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Dec 1, 2017 at 2:34 AM, Mark Olesen  wrote:
> When you say "writing binary", you need to distinguish between three
> possibilities.
> 1) writing binary "inline" (actually base64 encoded)
> 2) writing binary "append" (actually base64 encoded)
> 3) writing raw binary "append" (really raw binary)
>
> Since you already have ASCII writing working and its content is "inline", it
> won't take much more to get binary inline working.
> By "inline", I mean when the output is placed between the  
> markers. Eg,
> 
> content
> 
>
> For the binary case, the content is written as base64-encoded data, which
> means that your output writer for these sections needs to pass the content
> through a base64 layer to do the encoding for you.
>
> If it helps as reference, we have the same thing in OpenFOAM, except that we
> only write vtu and vtp files (we don't have rectilinear meshes).
>
> In the repo https://develop.openfoam.com/Development/OpenFOAM-plus
> we have a foamVtkBase64Formatter and a foamVtkBase64Layer (both under
> src/fileFormats/vtk/format/) that add a base64Layer to encode and output as
> base64 (src/OpenFOAM/db/IOstreams/hashes/base64Layer.[CH]).
>
> You'll see that the foamVtkBase64Layer and base64Layer are quite low level
> means of adding an tiny encoding buffer (3 chars size) to intercept output
> prior to sending through to a std::ostream. It take very little effort to
> adopt for your output and thus quite easy to drop in instead of your current
> ASCII outputter.  For it too work easily, however, you should make sure that
> you need to generate your output content with a write() method instead of
> using '<<'. This allows somewhat easy switching between something like a
> foamVtkAsciiFormatter and the binary version, but more importantly it makes
> it easier to track the output state.
>
> When browsing through the code, you may also notice that we have support for
> writing in appended format (raw and base64). However, I would not advise you
> to tackle that immediately. There are a few more things to watch out for
> here, but more importantly it will change many more things on the calling
> side.
>
> I hope this information helps you.
> /mark
>
> --
> Dr Mark OLESEN
> Principal Engineer, ESI-OpenCFD
> ESI GmbH | Einsteinring 24 | 85609 Munich | GERMANY
> www.openfoam.com | www.esi-group.com | mark.ole...@esi-group.com
>
>
> On 11/30/17 18:00, Stegmeier, Nicholas wrote:
>>
>> Hello,
>>
>> I am new to Paraview and C++ coming from a mostly mathematics background.
>> I am emailing to get resources or help on writing binary XML VTK files from
>> C++.
>>
>> I have finally succeeded in using the ASCII XML VTK format for a 2D
>> rectilinear CFD application. My ".pvtr" file is shown below.
>>
>> How can I write this file and my other XML VTK files in binary from C++?
>> Do I need a special C++ library?
>
> ___
> 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


[Paraview] undefined references to EGL library functions when using NVIDIA's libEGL_nvidia.so.384.90

2017-12-01 Thread Christopher Paolini
Greetings,

I'm trying to build pvserver with GPU headless rendering capability and
am getting undefined references to EGL library functions when using
NVIDIA's libEGL_nvidia.so.384.90 library.  My cmake build specification
is:

cmake ../paraview \
-DVTK_USE_EGL=ON \
-DVTK_OPENGL_HAS_EGL=ON \
-DEGL_INCLUDE_DIR=/usr/include/nvidia-384 \
-DEGL_opengl_LIBRARY:FILEPATH=/usr/local/nvidia/lib64/libOpenGL.so.0 \
-DEGL_gldispatch_LIBRARY:FILEPATH=/usr/local/nvidia/lib64/libGLdispatch.so.0 \
-DEGL_LIBRARY:FILEPATH=/usr/local/nvidia/lib64/libEGL_nvidia.so.384.90 \
-DOPENGL_INCLUDE_DIR=:FILEPATH=/usr/include/nvidia-384 \
-DVTK_USE_X=OFF \
-DVTK_OPENGL_HAS_OSMESA=OFF \
-DPARAVIEW_BUILD_QT_GUI=OFF \
-DBUILD_SHARED_LIBS=ON -DPARAVIEW_USE_MPI=ON

libvtkRenderingOpenGL2-pv5.4.so.1 is reporting undefined references to
the egl* functions:

[100%] Building CXX object 
CommandLineExecutables/CMakeFiles/pvserver.dir/pvserver.cxx.o
[100%] Linking CXX executable ../bin/pvserver
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglTerminate'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglCreateWindowSurface'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglQueryString'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglGetProcAddress'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglGetError'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglCreatePbufferSurface'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglDestroySurface'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglBindAPI'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglInitialize'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglQuerySurface'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglChooseConfig'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglSwapBuffers'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglCreateContext'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglGetCurrentDisplay'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglGetDisplay'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglMakeCurrent'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglDestroyContext'
/opt/subflow/paraview/paraview_build/lib/libvtkRenderingOpenGL2-pv5.4.so.1: 
undefined reference to `eglGetCurrentSurface'
collect2: error: ld returned 1 exit status
CommandLineExecutables/CMakeFiles/pvserver.dir/build.make:124: recipe for 
target 'bin/pvserver' failed

Manually linking while specifying libEGL_nvidia.so.384.90 and
libEGL.so.1 does not resolve these references either:

/usr/bin/c++   -I/usr/include/nvidia-384  -g
CMakeFiles/pvserver.dir/pvserver.cxx.o  -o ../bin/pvserver -rd
ynamic /usr/lib/nvidia-384/libEGL.so.1  
../lib/libvtkPVServerManagerApplication-pv5.4.so.1 ../lib/libvtkPVServ
erManagerCore-pv5.4.so.1 ../lib/libvtkPVServerImplementationCore-pv5.4.so.1 
../lib/libvtkPVClientServerCoreCor
e-pv5.4.so.1 ../lib/libvtkFiltersParallel-pv5.4.so.1 
../lib/libvtkFiltersExtraction-pv5.4.so.1 ../lib/libvtkFi
ltersModeling-pv5.4.so.1 ../lib/libvtkFiltersGeometry-pv5.4.so.1 
../lib/libvtkPVVTKExtensionsCore-pv5.4.so.1 .
./lib/libvtkPVCommon-pv5.4.so.1 ../lib/libvtkClientServer-pv5.4.so.1 
../lib/libvtkIOXMLParser-pv5.4.so.1 ../li
b/libvtkFiltersSources-pv5.4.so.1 ../lib/libvtkFiltersGeneral-pv5.4.so.1 
../lib/libvtkFiltersCore-pv5.4.so.1 .
./lib/libvtkIOImage-pv5.4.so.1 ../lib/libvtkPVVTKExtensionsSIL-pv5.4.so.1 
../lib/libvtkParallelMPI-pv5.4.so.1
../lib/libvtkParallelCore-pv5.4.so.1 ../lib/libvtkIOLegacy-pv5.4.so.1 
../lib/libvtkIOCore-pv5.4.so.1 ../lib/li
bvtkCommonExecutionModel-pv5.4.so.1 ../lib/libvtkCommonDataModel-pv5.4.so.1 
../lib/libvtkCommonSystem-pv5.4.so
.1 ../lib/libvtkCommonTransforms-pv5.4.so.1 ../lib/libvtkCommonMisc-pv5.4.so.1 
../lib/libvtkCommonMath-pv5.4.s
o.1 ../lib/libvtkCommonCore-pv5.4.so.1 ../lib/libprotobuf.so -lpthread 
../lib/libvtkjsoncpp-pv5.4.so.1 -Wl,-rp
ath,/opt/subflow/paraview/paraview_build/lib: 
-Wl,-rpath-link,/opt/subflow/paraview/paraview_build/lib^Cusr/li
b/nvidia-384/libEGL_nvidia.so.384.90 /usr/lib/nvidia-384/libEGL.so.384.90 
/usr/lib/nvidia-384/libEGL.so.1 -Wl,
-rpath-link,/usr/lib/nvidia-384 /usr/lib/nvidia-384/libEGL.s

Re: [Paraview] particle traces from point data

2017-12-01 Thread Alex Barrie
I was able to find this thread that mentions that maybe the input data set
needs to have a DATA_TIME_STEPS key, but I am not sure how to specify this
with the point3d data.
https://public.kitware.com/pipermail/paraview/2016-February/036211.html

Is there a way just to use whatever mechanism the animate functionality
uses?

On Thu, Nov 30, 2017 at 9:26 AM, Alex Barrie  wrote:

> Yes, I have one file per timestep and each file is a list of points, X, Y,
> Z, C with one point per line. I am loading it with the 'Point3D' input.
> Thanks!
> Alex
>
>
> On Thu, Nov 30, 2017 at 9:18 AM, Joachim Pouderoux <
> joachim.pouder...@kitware.com> wrote:
>
>> Alex,
>>
>> Could you specify how is your data split over time? Do you have one file
>> per timestep? How do you load your data with ParaView?
>>
>> Joachim
>>
>> *Joachim Pouderoux*, PhD
>>
>> *Technical Expert - Scientific Computing Team*
>> *Kitware SAS *
>>
>>
>> 2017-11-30 9:55 GMT-04:00 Alex Barrie :
>>
>>> Thanks, I see it now - I missed it because it wasn't in the "Temporal"
>>> tab.
>>>
>>> When I apply this filter, however, I get an error about a missing
>>> DATA_TIME_STEPS information key. Is this something I can specify or does it
>>> have to be in the raw data somehow?
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> On Wed, Nov 29, 2017 at 3:13 PM, Joachim Pouderoux <
>>> joachim.pouder...@kitware.com> wrote:
>>>
 Alex,

 I think here the filter "Temporal Particles to Pathlines" should do the
 trick.

 Best,
 Joachim

 *Joachim Pouderoux*, PhD

 *Technical Expert - Scientific Computing Team*
 *Kitware SAS *


 2017-11-29 14:33 GMT-04:00 Alex Barrie :

> Hi,
>
> I have animated particles which are imported from point data (x,y,z).
> I want to add a particle trace, but I am not sure what to put for the
> 'seed'. I am not using a vector field, but rather just a list of particle
> positions that updates over time. How can I just add a trace to each
> particle in the list?
>
> Thanks,
> Alex
>
> ___
> 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] Writing XML VTK Binary files from C++

2017-12-01 Thread Stegmeier, Nicholas
Hello,


Thank you both for your advice. I will be sure to pursue both options and see 
if I can get them working.


Thank you again,

Nicholas Stegmeier


From: David E DeMarle 
Sent: Friday, December 1, 2017 8:35:45 AM
To: Mark Olesen
Cc: Stegmeier, Nicholas; paraview@paraview.org
Subject: Re: [Paraview] Writing XML VTK Binary files from C++

Another approach is to use VTK itself to write the files.

Since VTK 6 it is straightforward to configure a VTK build consisting
of only the IO/ParallelXML module and its required dependencies. To do
so, in cmake, turn of testing, all groups and turn on
Module_vtkIOParallelXML, and you should be set.

David E DeMarle
Kitware, Inc.
Principal Engineer
21 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-881-4909


On Fri, Dec 1, 2017 at 2:34 AM, Mark Olesen  wrote:
> When you say "writing binary", you need to distinguish between three
> possibilities.
> 1) writing binary "inline" (actually base64 encoded)
> 2) writing binary "append" (actually base64 encoded)
> 3) writing raw binary "append" (really raw binary)
>
> Since you already have ASCII writing working and its content is "inline", it
> won't take much more to get binary inline working.
> By "inline", I mean when the output is placed between the  
> markers. Eg,
> 
> content
> 
>
> For the binary case, the content is written as base64-encoded data, which
> means that your output writer for these sections needs to pass the content
> through a base64 layer to do the encoding for you.
>
> If it helps as reference, we have the same thing in OpenFOAM, except that we
> only write vtu and vtp files (we don't have rectilinear meshes).
>
> In the repo https://develop.openfoam.com/Development/OpenFOAM-plus
> we have a foamVtkBase64Formatter and a foamVtkBase64Layer (both under
> src/fileFormats/vtk/format/) that add a base64Layer to encode and output as
> base64 (src/OpenFOAM/db/IOstreams/hashes/base64Layer.[CH]).
>
> You'll see that the foamVtkBase64Layer and base64Layer are quite low level
> means of adding an tiny encoding buffer (3 chars size) to intercept output
> prior to sending through to a std::ostream. It take very little effort to
> adopt for your output and thus quite easy to drop in instead of your current
> ASCII outputter.  For it too work easily, however, you should make sure that
> you need to generate your output content with a write() method instead of
> using '<<'. This allows somewhat easy switching between something like a
> foamVtkAsciiFormatter and the binary version, but more importantly it makes
> it easier to track the output state.
>
> When browsing through the code, you may also notice that we have support for
> writing in appended format (raw and base64). However, I would not advise you
> to tackle that immediately. There are a few more things to watch out for
> here, but more importantly it will change many more things on the calling
> side.
>
> I hope this information helps you.
> /mark
>
> --
> Dr Mark OLESEN
> Principal Engineer, ESI-OpenCFD
> ESI GmbH | Einsteinring 24 | 85609 Munich | GERMANY
> www.openfoam.com | 
> www.esi-group.com | mark.ole...@esi-group.com
>
>
> On 11/30/17 18:00, Stegmeier, Nicholas wrote:
>>
>> Hello,
>>
>> I am new to Paraview and C++ coming from a mostly mathematics background.
>> I am emailing to get resources or help on writing binary XML VTK files from
>> C++.
>>
>> I have finally succeeded in using the ASCII XML VTK format for a 2D
>> rectilinear CFD application. My ".pvtr" file is shown below.
>>
>> How can I write this file and my other XML VTK files in binary from C++?
>> Do I need a special C++ library?
>
> ___
> 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] particle traces from point data

2017-12-01 Thread Joachim Pouderoux
Alex,

Again, could you specify how you are loading your files?
If you open them as a file series, then your data should be considered as
temporal and the filter should work.
See https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series

Best,

*Joachim Pouderoux*, PhD

*Technical Expert - Scientific Computing Team*
*Kitware SAS *


2017-12-01 14:11 GMT-04:00 Alex Barrie :

> I was able to find this thread that mentions that maybe the input data set
> needs to have a DATA_TIME_STEPS key, but I am not sure how to specify this
> with the point3d data.
> https://public.kitware.com/pipermail/paraview/2016-February/036211.html
>
> Is there a way just to use whatever mechanism the animate functionality
> uses?
>
> On Thu, Nov 30, 2017 at 9:26 AM, Alex Barrie  wrote:
>
>> Yes, I have one file per timestep and each file is a list of points, X,
>> Y, Z, C with one point per line. I am loading it with the 'Point3D' input.
>> Thanks!
>> Alex
>>
>>
>> On Thu, Nov 30, 2017 at 9:18 AM, Joachim Pouderoux <
>> joachim.pouder...@kitware.com> wrote:
>>
>>> Alex,
>>>
>>> Could you specify how is your data split over time? Do you have one file
>>> per timestep? How do you load your data with ParaView?
>>>
>>> Joachim
>>>
>>> *Joachim Pouderoux*, PhD
>>>
>>> *Technical Expert - Scientific Computing Team*
>>> *Kitware SAS *
>>>
>>>
>>> 2017-11-30 9:55 GMT-04:00 Alex Barrie :
>>>
 Thanks, I see it now - I missed it because it wasn't in the "Temporal"
 tab.

 When I apply this filter, however, I get an error about a missing
 DATA_TIME_STEPS information key. Is this something I can specify or does it
 have to be in the raw data somehow?

 Thanks,
 Alex


 On Wed, Nov 29, 2017 at 3:13 PM, Joachim Pouderoux <
 joachim.pouder...@kitware.com> wrote:

> Alex,
>
> I think here the filter "Temporal Particles to Pathlines" should do
> the trick.
>
> Best,
> Joachim
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS *
>
>
> 2017-11-29 14:33 GMT-04:00 Alex Barrie :
>
>> Hi,
>>
>> I have animated particles which are imported from point data (x,y,z).
>> I want to add a particle trace, but I am not sure what to put for the
>> 'seed'. I am not using a vector field, but rather just a list of particle
>> positions that updates over time. How can I just add a trace to each
>> particle in the list?
>>
>> Thanks,
>> Alex
>>
>> ___
>> 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] particle traces from point data

2017-12-01 Thread Alex Barrie
I am attaching the first input file here. Each file has an incremented
number in the filename and then I load them all at once using the Point3D
reader. I just go to open and select the group, I don't do anything special
to load them. Paraview detects them all as part of the same group, and I
can play the animation just fine with the VCR controls. Is there a
different way to load them specifically as a series?

On Fri, Dec 1, 2017 at 1:39 PM, Joachim Pouderoux <
joachim.pouder...@kitware.com> wrote:

> Alex,
>
> Again, could you specify how you are loading your files?
> If you open them as a file series, then your data should be considered as
> temporal and the filter should work.
> See https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series
>
> Best,
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS *
>
>
> 2017-12-01 14:11 GMT-04:00 Alex Barrie :
>
>> I was able to find this thread that mentions that maybe the input data
>> set needs to have a DATA_TIME_STEPS key, but I am not sure how to specify
>> this with the point3d data.
>> https://public.kitware.com/pipermail/paraview/2016-February/036211.html
>>
>> Is there a way just to use whatever mechanism the animate functionality
>> uses?
>>
>> On Thu, Nov 30, 2017 at 9:26 AM, Alex Barrie  wrote:
>>
>>> Yes, I have one file per timestep and each file is a list of points, X,
>>> Y, Z, C with one point per line. I am loading it with the 'Point3D' input.
>>> Thanks!
>>> Alex
>>>
>>>
>>> On Thu, Nov 30, 2017 at 9:18 AM, Joachim Pouderoux <
>>> joachim.pouder...@kitware.com> wrote:
>>>
 Alex,

 Could you specify how is your data split over time? Do you have one
 file per timestep? How do you load your data with ParaView?

 Joachim

 *Joachim Pouderoux*, PhD

 *Technical Expert - Scientific Computing Team*
 *Kitware SAS *


 2017-11-30 9:55 GMT-04:00 Alex Barrie :

> Thanks, I see it now - I missed it because it wasn't in the "Temporal"
> tab.
>
> When I apply this filter, however, I get an error about a missing
> DATA_TIME_STEPS information key. Is this something I can specify or does 
> it
> have to be in the raw data somehow?
>
> Thanks,
> Alex
>
>
> On Wed, Nov 29, 2017 at 3:13 PM, Joachim Pouderoux <
> joachim.pouder...@kitware.com> wrote:
>
>> Alex,
>>
>> I think here the filter "Temporal Particles to Pathlines" should do
>> the trick.
>>
>> Best,
>> Joachim
>>
>> *Joachim Pouderoux*, PhD
>>
>> *Technical Expert - Scientific Computing Team*
>> *Kitware SAS *
>>
>>
>> 2017-11-29 14:33 GMT-04:00 Alex Barrie :
>>
>>> Hi,
>>>
>>> I have animated particles which are imported from point data
>>> (x,y,z). I want to add a particle trace, but I am not sure what to put 
>>> for
>>> the 'seed'. I am not using a vector field, but rather just a list of
>>> particle positions that updates over time. How can I just add a trace to
>>> each particle in the list?
>>>
>>> Thanks,
>>> Alex
>>>
>>> ___
>>> 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
>>>
>>>
>>
>

>>>
>>
>


particles_000.3D
Description: Binary data
___
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] PV client-server: browsing remote files

2017-12-01 Thread Robert Sawko
Dear ParaViewers,


I am trying to use Python shell in Client-Server mode, but I am running into
some difficulties. How can I actually browse the remote directories. I tried
to use the `os` module, but that obviously ends up being all local. Here's a
minimal example of what I am trying to achieve.


from paraview.simple import Connect, LegacyVTKReader
from os import listdir

Connect('my_server', port)
location = '/my/remote/location/'

file_names = listdir(location).sort()
reader = LegacyVTKReader(FileNames=file_names)


Please let me know if it's at all possible to query the directory on the remote
side through an established connection.

Many thanks,
Robert
-- 
Seems like the famous poem of turbulence comes from Jonathan Swift
http://en.wikipedia.org/wiki/The_Siphonaptera
___
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] unable to RGB voxel from tiff/jpeg slice to volume

2017-12-01 Thread Cory Quammen
On Thu, Nov 30, 2017 at 9:17 PM, joe kozak  wrote:
> that worked...so why cant IsoVolume work on that type of dataset?  Can i
> not carve out a volume base on some range of Reds or Greens ?   What about
> based on some union of each channel?

I'm not sure what you are referring when you say IsoVolume. Is this
the Contour filter in ParaView? If so, the Contour filter does not
operate on RGB data. The Threshold filter does not work with RGB data,
either. You may be able to instead use Find Data to locate all points
that fall in some range, and you can use a Python expression to
perform a union of thresholds on different channels. After you have
created a selection this way, you can extract the selection with the
Extract Selection button on the bottom of the Find Data dialog.

Note that image data is associated with points in images in ParaView,
not cells, so if you want to extract a selection of cells, you might
use the Point Data to Cell Data filter before creating a selection.

HTH,
Cory

> 
> From: Cory Quammen 
> Sent: Thursday, November 30, 2017 7:29 PM
> To: joe kozak
> Cc: paraview@paraview.org
> Subject: Re: [Paraview] unable to RGB voxel from tiff/jpeg slice to volume
>
> Joe,
>
> This is more of a question for the ITK discussion forum [1], but I'll
> give you a potential solution here.
>
> The problem is that
>
> typedef itk::Image  ImageType;
>
> declares a 3-dimensional scalar-valued image, not a 3-component (RGB)
> 2-dimensional image. To declare an RGB ITK image, try this:
>
> typedef itk::RGBPixel< unsigned char > RGBPixelType;
> typedef itk::Image< RGBPixelType, 3 > ImageType;
>
> I hope that helps.
>
> Cory
>
> [1] https://discourse.itk.org/
>
> On Thu, Nov 30, 2017 at 8:14 PM, joe kozak  wrote:
>> grabbed frames from a standard youtube color video via ffmpeg
>> used something like $./imageSeriesToVolume -sz 1.0 -o test.vtk -i
>> input*.jpeg
>> loaded test.vtk in paraview 5.0.1 and also paraview 5.4.1
>> on information tab i see:   scalars  unsigned char [33,239]
>>
>> "Map Scalars"  on or off I get no RGB colored voxels, of course, because
>> there is only one datum of type unsigned char.
>>
>> Where are the other two scalars?!?
>>
>> The important part you will ask me is here:
>>
>>  91   io->SetFileName (filenames[0].c_str());
>>  92   io->ReadImageInformation();
>>  93
>>  94   if (io->GetNumberOfDimensions()==2) {
>>  95
>>  96 typedef itk::Image  ImageType;
>>  97 typedef itk::ImageSeriesReader SeriesReaderType;
>>  98
>>  99
>> 100 SeriesReaderType::Pointer reader = SeriesReaderType::New();
>> 101 std::cout << "Adding:\n";
>> 102 for (unsigned int i=0; i> 103 {
>> 104   std::cout << filenames[i] << std::endl;
>> 105   reader->AddFileName ( filenames[i].c_str() );
>> 106 }
>> 107
>>
>> Looks pretty standard, but no 3 scalar datums for an RGB voxel for
>> non-false-colored volume.
>> It is perported to work, and all other examples i see are none different
>> from the code i used to generate a .vtk file.
>>
>>
>> I cannot use IsoVolume If I load the jpegs directly in paraview,  but I
>> can
>> get RGB color voxels.
>> The GOAL is to use IsoVolume on a volume of RGB points from frames from a
>> video sequence.
>> I have tried on and off for MANY YEARS to figure this out...(its for
>> an
>> art project, metalcasting &3d Printing)
>>
>> ___
>> 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
>>
>
>
>
> --
> Cory Quammen
> Staff R&D Engineer
> Kitware, Inc.



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
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] particle traces from point data

2017-12-01 Thread Joachim Pouderoux
Alex,

The problem appears because the output of this Visit-based reader is a
multiblock.

Here is a workaround: apply a *Merge Block* filter on your input data, then
apply the *Temporal Particles To Pathline* filter.

Best,

*Joachim Pouderoux*, PhD

*Technical Expert - Scientific Computing Team*
*Kitware SAS *


2017-12-01 14:58 GMT-04:00 Alex Barrie :

> I am attaching the first input file here. Each file has an incremented
> number in the filename and then I load them all at once using the Point3D
> reader. I just go to open and select the group, I don't do anything special
> to load them. Paraview detects them all as part of the same group, and I
> can play the animation just fine with the VCR controls. Is there a
> different way to load them specifically as a series?
>
> On Fri, Dec 1, 2017 at 1:39 PM, Joachim Pouderoux <
> joachim.pouder...@kitware.com> wrote:
>
>> Alex,
>>
>> Again, could you specify how you are loading your files?
>> If you open them as a file series, then your data should be considered as
>> temporal and the filter should work.
>> See https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series
>>
>> Best,
>>
>> *Joachim Pouderoux*, PhD
>>
>> *Technical Expert - Scientific Computing Team*
>> *Kitware SAS *
>>
>>
>> 2017-12-01 14:11 GMT-04:00 Alex Barrie :
>>
>>> I was able to find this thread that mentions that maybe the input data
>>> set needs to have a DATA_TIME_STEPS key, but I am not sure how to specify
>>> this with the point3d data.
>>> https://public.kitware.com/pipermail/paraview/2016-February/036211.html
>>>
>>> Is there a way just to use whatever mechanism the animate functionality
>>> uses?
>>>
>>> On Thu, Nov 30, 2017 at 9:26 AM, Alex Barrie  wrote:
>>>
 Yes, I have one file per timestep and each file is a list of points, X,
 Y, Z, C with one point per line. I am loading it with the 'Point3D' input.
 Thanks!
 Alex


 On Thu, Nov 30, 2017 at 9:18 AM, Joachim Pouderoux <
 joachim.pouder...@kitware.com> wrote:

> Alex,
>
> Could you specify how is your data split over time? Do you have one
> file per timestep? How do you load your data with ParaView?
>
> Joachim
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS *
>
>
> 2017-11-30 9:55 GMT-04:00 Alex Barrie :
>
>> Thanks, I see it now - I missed it because it wasn't in the
>> "Temporal" tab.
>>
>> When I apply this filter, however, I get an error about a missing
>> DATA_TIME_STEPS information key. Is this something I can specify or does 
>> it
>> have to be in the raw data somehow?
>>
>> Thanks,
>> Alex
>>
>>
>> On Wed, Nov 29, 2017 at 3:13 PM, Joachim Pouderoux <
>> joachim.pouder...@kitware.com> wrote:
>>
>>> Alex,
>>>
>>> I think here the filter "Temporal Particles to Pathlines" should do
>>> the trick.
>>>
>>> Best,
>>> Joachim
>>>
>>> *Joachim Pouderoux*, PhD
>>>
>>> *Technical Expert - Scientific Computing Team*
>>> *Kitware SAS *
>>>
>>>
>>> 2017-11-29 14:33 GMT-04:00 Alex Barrie :
>>>
 Hi,

 I have animated particles which are imported from point data
 (x,y,z). I want to add a particle trace, but I am not sure what to put 
 for
 the 'seed'. I am not using a vector field, but rather just a list of
 particle positions that updates over time. How can I just add a trace 
 to
 each particle in the list?

 Thanks,
 Alex

 ___
 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] particle traces from point data

2017-12-01 Thread Alex Barrie
That got it, thanks!
Alex


On Fri, Dec 1, 2017 at 3:59 PM, Joachim Pouderoux <
joachim.pouder...@kitware.com> wrote:

> Alex,
>
> The problem appears because the output of this Visit-based reader is a
> multiblock.
>
> Here is a workaround: apply a *Merge Block* filter on your input data,
> then apply the *Temporal Particles To Pathline* filter.
>
> Best,
>
> *Joachim Pouderoux*, PhD
>
> *Technical Expert - Scientific Computing Team*
> *Kitware SAS *
>
>
> 2017-12-01 14:58 GMT-04:00 Alex Barrie :
>
>> I am attaching the first input file here. Each file has an incremented
>> number in the filename and then I load them all at once using the Point3D
>> reader. I just go to open and select the group, I don't do anything special
>> to load them. Paraview detects them all as part of the same group, and I
>> can play the animation just fine with the VCR controls. Is there a
>> different way to load them specifically as a series?
>>
>> On Fri, Dec 1, 2017 at 1:39 PM, Joachim Pouderoux <
>> joachim.pouder...@kitware.com> wrote:
>>
>>> Alex,
>>>
>>> Again, could you specify how you are loading your files?
>>> If you open them as a file series, then your data should be considered
>>> as temporal and the filter should work.
>>> See https://www.paraview.org/Wiki/Animating_legacy_VTK_file_series
>>>
>>> Best,
>>>
>>> *Joachim Pouderoux*, PhD
>>>
>>> *Technical Expert - Scientific Computing Team*
>>> *Kitware SAS *
>>>
>>>
>>> 2017-12-01 14:11 GMT-04:00 Alex Barrie :
>>>
 I was able to find this thread that mentions that maybe the input data
 set needs to have a DATA_TIME_STEPS key, but I am not sure how to specify
 this with the point3d data.
 https://public.kitware.com/pipermail/paraview/2016-February/036211.html

 Is there a way just to use whatever mechanism the animate functionality
 uses?

 On Thu, Nov 30, 2017 at 9:26 AM, Alex Barrie  wrote:

> Yes, I have one file per timestep and each file is a list of points,
> X, Y, Z, C with one point per line. I am loading it with the 'Point3D'
> input.
> Thanks!
> Alex
>
>
> On Thu, Nov 30, 2017 at 9:18 AM, Joachim Pouderoux <
> joachim.pouder...@kitware.com> wrote:
>
>> Alex,
>>
>> Could you specify how is your data split over time? Do you have one
>> file per timestep? How do you load your data with ParaView?
>>
>> Joachim
>>
>> *Joachim Pouderoux*, PhD
>>
>> *Technical Expert - Scientific Computing Team*
>> *Kitware SAS *
>>
>>
>> 2017-11-30 9:55 GMT-04:00 Alex Barrie :
>>
>>> Thanks, I see it now - I missed it because it wasn't in the
>>> "Temporal" tab.
>>>
>>> When I apply this filter, however, I get an error about a missing
>>> DATA_TIME_STEPS information key. Is this something I can specify or 
>>> does it
>>> have to be in the raw data somehow?
>>>
>>> Thanks,
>>> Alex
>>>
>>>
>>> On Wed, Nov 29, 2017 at 3:13 PM, Joachim Pouderoux <
>>> joachim.pouder...@kitware.com> wrote:
>>>
 Alex,

 I think here the filter "Temporal Particles to Pathlines" should do
 the trick.

 Best,
 Joachim

 *Joachim Pouderoux*, PhD

 *Technical Expert - Scientific Computing Team*
 *Kitware SAS *


 2017-11-29 14:33 GMT-04:00 Alex Barrie :

> Hi,
>
> I have animated particles which are imported from point data
> (x,y,z). I want to add a particle trace, but I am not sure what to 
> put for
> the 'seed'. I am not using a vector field, but rather just a list of
> particle positions that updates over time. How can I just add a trace 
> to
> each particle in the list?
>
> Thanks,
> Alex
>
> ___
> 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/unsubscr