Re: [Paraview] ParaView not reading time in netcdf file

2017-11-09 Thread Dan Lipsa
David,
I filed the following bug report

https://gitlab.kitware.com/paraview/paraview/issues/17827

Thanks for reporting this.

Best,
Dan


On Thu, Nov 9, 2017 at 11:36 AM, David Deepwell 
wrote:

> Yay, we found a bug!
> Yes, you can attach one (or both) of the files in a bug report.
>
> Thanks for your help,
> David
>
>
> On Nov 9, 2017, at 10:57 AM, Dan Lipsa  wrote:
>
> I was just looking at that. Indeed, your variable did not depend on time.
> So it seems that the reader does report the correct information:
>
> The following script:
> import vtk
> reader = vtk.vtkNetCDFCFReader()
> reader.SetFileName('output_20.nc')
> reader.UpdateInformation()
> print reader.GetOutputInformation(0).Get(vtk.
> vtkStreamingDemandDrivenPipeline.TIME_RANGE())
> reader.Update()
> output = reader.GetOutput()
> print output.GetClassName()
>
> prints:
> (20.0, 20.0)
> vtkImageData
>
> This is a ParaView bug. Is it OK to attach one of your files to the bug
> report?
> If not, I can file the report without it.
>
> Thanks,
> Dan
>
>
>
> On Thu, Nov 9, 2017 at 10:36 AM, David Deepwell 
> wrote:
>
>> I think I was missing an important declaration in the creation of the
>> netcdf file I gave you, so I’m not surprised that the time didn’t work for
>> that file. I’ve fixed that, but the time is still not shown for a single
>> file. Use these instead of the previous file.
>>
>> Cheers,
>> David
>>
>>
>> On Nov 9, 2017, at 9:50 AM, Dan Lipsa  wrote:
>>
>> David, I was thinking this problem comes from the way ParaView loads time
>> dependent datasets. However, I created a copy of the file with _51.nc
>> postfix and ParaView still does not show me the correct time value.
>> Can you send me two files where the time value is shown correctly?
>>
>> Thanks,
>> Dan
>>
>>
>>
>> On Fri, Nov 3, 2017 at 2:39 PM, David Deepwell 
>> wrote:
>>
>> I’ve made another discovery.
>> The correct time will be displayed if paraview loads multiple files (or a
>> single file containing multiple times). Not sure why it displays zero for a
>> single file containing a single time.
>>
>> David
>>
>>
>> On Oct 31, 2017, at 3:50 PM, Dan Lipsa  wrote:
>>
>> Hi David,
>> Thanks for your patience. I did look at the vtk reader a little. Did not
>> get to the bottom of it yet. I am trying to determine if the reader has
>> this info and ParaView does not use it, or the reader is the problem.
>> Do check back with me.
>>
>> Thanks,
>> Dan
>>
>>
>> On Tue, Oct 31, 2017 at 2:55 PM, David Deepwell 
>> wrote:
>>
>> I’m sure you are busy, but just checking in to see if there is any
>> progress on reading the time.
>>
>> Cheers,
>> David
>>
>>
>> On Oct 23, 2017, at 9:54 AM, Dan Lipsa  wrote:
>>
>> Hi David,
>> I'll try to take a closer look at this today, at least to see if the
>> problem is in the reader or in ParaView.
>>
>> Thanks for your patience,
>> Dan
>>
>>
>> On Mon, Oct 23, 2017 at 9:48 AM, Deepwell, David 
>> wrote:
>>
>> Sorry to bother you again, but have you found anything?
>>
>> David
>>
>>
>> On Oct 17, 2017, at 4:34 PM, Dan Lipsa  wrote:
>>
>> Actually, you are right, it does not work. I'll try to look closer at
>> this in the next couple of days.
>>
>> On Tue, Oct 17, 2017 at 4:11 PM, Deepwell, David 
>> wrote:
>>
>> Hi Dan,
>>
>> That’s strange. I’m also using 5.4.1. Did you get a time of 5 s?
>>
>> Cheers,
>> David
>>
>>
>> On Oct 17, 2017, at 3:59 PM, Dan Lipsa  wrote:
>>
>> David,
>> What version of ParaView are you using? I tried your file with the latest
>> release 5.4.1 and it works fine.
>>
>> Thanks,
>> Dan
>>
>>
>> On Mon, Oct 16, 2017 at 10:18 AM, Deepwell, David 
>> wrote:
>>
>> Ok, no problem.  Just checking in.
>>
>> Thanks,
>> David
>>
>>
>> On Oct 16, 2017, at 9:29 AM, Dan Lipsa  wrote:
>>
>> Sorry, no, I have not had a chance to look at this. I will do that in the
>> next couple of days.
>>
>> Thanks,
>> Dan
>>
>>
>> On Mon, Oct 16, 2017 at 9:05 AM, Deepwell, David 
>> wrote:
>>
>> Hi Dan,
>> Have you been able to see my problem, and find a solution?
>>
>> David
>>
>>
>> On Oct 10, 2017, at 5:46 PM, David Deepwell 
>> wrote:
>>
>> Hi Dan!
>&g

Re: [Paraview] ParaView not reading time in netcdf file

2017-10-17 Thread Dan Lipsa
David,
What version of ParaView are you using? I tried your file with the latest
release 5.4.1 and it works fine.

Thanks,
Dan


On Mon, Oct 16, 2017 at 10:18 AM, Deepwell, David 
wrote:

> Ok, no problem.  Just checking in.
>
> Thanks,
> David
>
>
> On Oct 16, 2017, at 9:29 AM, Dan Lipsa  wrote:
>
> Sorry, no, I have not had a chance to look at this. I will do that in the
> next couple of days.
>
> Thanks,
> Dan
>
>
> On Mon, Oct 16, 2017 at 9:05 AM, Deepwell, David 
> wrote:
>
>> Hi Dan,
>> Have you been able to see my problem, and find a solution?
>>
>> David
>>
>>
>> On Oct 10, 2017, at 5:46 PM, David Deepwell 
>> wrote:
>>
>> Hi Dan!
>>
>> Thank you for taking a look at my file.
>>
>> David
>> 
>>
>> On Oct 6, 2017, at 1:38 PM, Dan Lipsa  wrote:
>>
>> Hi David,
>> If you send me the file I can take a look.
>>
>> Thanks,
>> Dan
>>
>>
>> On Fri, Oct 6, 2017 at 10:11 AM, Deepwell, David 
>> wrote:
>>
>>> Hi,
>>>
>>> I have a netcdf file which I’d like to read in ParaView. The reading and
>>> rendering works fine, but the time is not displayed. I’ve declared the
>>> variable to be time through the axis attribute, and I’ve given it units
>>> since a certain day. Strangely enough, VisIt understands the time value
>>> (t=5s) while ParaView does not.
>>>
>>> Here’s the output from ncdump:
>>>
>>> netcdf output_50 {
>>> dimensions:
>>> x = 1024 ;
>>> z = 128 ;
>>> time = 1 ;
>>> variables:
>>> double x(x) ;
>>> x:units = "m" ;
>>> double z(z) ;
>>> z:units = "m" ;
>>> double time(time) ;
>>> time:units = "seconds since 2001-1-1" ;
>>> time:axis = "T" ;
>>> time:long_name = "time" ;
>>> double rho(time, x, z) ;
>>> rho:units = "kg/L" ;
>>>
>>> // global attributes:
>>> :description = "SPINS Output 50" ;
>>> }
>>>
>>> Any help will be appreciated. I also have a 1 MB file which I can pass
>>> on if needed.
>>>
>>> Thank you,
>>> David
>>> ___
>>> 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] ParaView not reading time in netcdf file

2017-10-06 Thread Dan Lipsa
Hi David,
If you send me the file I can take a look.

Thanks,
Dan


On Fri, Oct 6, 2017 at 10:11 AM, Deepwell, David 
wrote:

> Hi,
>
> I have a netcdf file which I’d like to read in ParaView. The reading and
> rendering works fine, but the time is not displayed. I’ve declared the
> variable to be time through the axis attribute, and I’ve given it units
> since a certain day. Strangely enough, VisIt understands the time value
> (t=5s) while ParaView does not.
>
> Here’s the output from ncdump:
>
> netcdf output_50 {
> dimensions:
> x = 1024 ;
> z = 128 ;
> time = 1 ;
> variables:
> double x(x) ;
> x:units = "m" ;
> double z(z) ;
> z:units = "m" ;
> double time(time) ;
> time:units = "seconds since 2001-1-1" ;
> time:axis = "T" ;
> time:long_name = "time" ;
> double rho(time, x, z) ;
> rho:units = "kg/L" ;
>
> // global attributes:
> :description = "SPINS Output 50" ;
> }
>
> Any help will be appreciated. I also have a 1 MB file which I can pass on
> if needed.
>
> Thank you,
> David
> ___
> 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] Building Paraview 5.4.1 in Ubuntu 16.04

2017-09-06 Thread Dan Lipsa
Joel,
You can install Qt 5.6 from the web and make sure you you set
Qt5_DIR=/opt/Qt/5.6/gcc_64/lib/cmake/Qt5
(the dir containing Qt5Config.cmake)
when you build ParaView

HTH,
Dan



On Wed, Sep 6, 2017 at 12:15 PM, Joel Manning <
joel.mann...@prevailinganalysis.com> wrote:

> Hi,
>
>
>
> I am attempting to build Paraview 5.4.1 from source using
> VTK_PYTHON_VERSION = 3 with the aim of making use of paraview automation
> using python 3.  However I am running into trouble because the qt version
> does not meet the minimum of version 5.6.  Also the Qt5_DIR is not found.
>
>
>
> I am attempting the build using Cmake 3.5.1 on Ubuntu 16.04.
>
> Ubuntu 16.04 is supplied with qt5.5.1 but I cannot update this.
>
>
>
> Please can you provide me with some advice and preferably step-by-step
> instructions on how to complete this build.
>
>
>
> Many thanks,
>
> Joel
>
> ___
> 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] paraview 5.4.1 rc3, mac os 10.11.6, volume rendering broken

2017-08-08 Thread Dan Lipsa
I see. Thanks Cory.

Dan


On Tue, Aug 8, 2017 at 5:17 PM, Cory Quammen 
wrote:

> Dan,
>
> This is a known issue [1] with the Projected Tetrahedra volume
> rendering algorithm on Mac.
>
> Cory
>
> [1] https://gitlab.kitware.com/paraview/paraview/issues/17303
>
> On Tue, Aug 8, 2017 at 5:09 PM, Dan Lipsa  wrote:
> > Hi all,
> > Volume rendering seems to be broken on my laptop.
> > The first version of ParaView this works correctly on is ParaView 5.2.0.
> > (it is broken on 5.4.0 and 5.3.0)
> >
> > Here is the info about my graphics card.
> > Thanks,
> > Dan
> >
> >
> >
> >
> > AMD Radeon R9 M370X:
> >
> >
> >   Chipset Model: AMD Radeon R9 M370X
> >
> >   Type: GPU
> >
> >   Bus: PCIe
> >
> >   PCIe Lane Width: x8
> >
> >   VRAM (Total): 2048 MB
> >
> >   Vendor: ATI (0x1002)
> >
> >   Device ID: 0x6821
> >
> >   Revision ID: 0x0083
> >
> >   ROM Revision: 113-C5670E-777
> >
> >   gMux Version: 4.0.20 [3.2.8]
> >
> >   EFI Driver Version: 01.00.777
> >
> >   Displays:
> >
> > Color LCD:
> >
> >   Display Type: Retina LCD
> >
> >   Resolution: 2880 x 1800 Retina
> >
> >   Retina: Yes
> >
> >   Pixel Depth: 32-Bit Color (ARGB)
> >
> >   Main Display: Yes
> >
> >   Mirror: Off
> >
> >   Online: Yes
> >
> >   Built-In: Yes
> >
> >
> > ___
> > 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.
>
___
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] troubles with netCDF reader ?

2017-08-08 Thread Dan Lipsa
Hi Cynthia,
It is possible to change the reader. You'll need to compile ParaView from
source. The class you need to change is vtkNetCDFCFReader.
Probably you'll need an extra parameter to the reader that would be the
time unit. The time unit read from the file should overides this parameter.

You could also submit your changes back to VTK (most readers in ParaView
are actually part of VTK). This seems like something other people might
need.

Dan




On Tue, Aug 8, 2017 at 12:43 PM, Hart, Cynthia Joyce - (cyndyb) <
cyn...@email.arizona.edu> wrote:

> Hello,
>
>
>
> To make a long story short, this solution you used below, does not work
> well for the weather forecasting group here on my campus that I am working
> with.  Is there any possibility of obtaining the source code of the
> Paraview netCDF reader?  If I could edit that source code to accept the
> non- CF compliant WRF outputs, I could make use of Paraview in an automated
> script to create animations for our forecasters much, much more readily
> than manipulating netCDF file headers.  The data I’d sent to you was but a
> very small subset of the hundreds of netCDF files we’d need to change,
> every time we do a model run, and this is a process we’d like to actually
> automate daily.  I am unable to force the output to be compliant as it is
> created.  Can you help?
>
>
>
> Sincerely,
>
>
>
> Cynthia Hart
>
>
>
>
>
> *From: *Dan Lipsa 
> *Date: *Friday, June 23, 2017 at 10:57 AM
> *To: *Aashish Chaudhary 
> *Cc: *"Hart, Cynthia Joyce - (cyndyb)" , "
> paraview@paraview.org" 
> *Subject: *Re: [Paraview] troubles with netCDF reader ?
>
>
>
> Cynthia,
>
> It seems that the files you send us are not CF compliant.
>
> The problem is that the Time dimension does not have a unit.
>
>
>
>
>
> Here are some quotes from the CF Conventions document:
>
> - The use of coordinate variables is required for all dimensions that
> correspond to one dimensional space or time coordinates.
>
> - Variables representing time must always explicitly include the units
> attribute; there is no default value
>
>
>
> So, to fix one of your files, I did:
>
>
>
> 1. ncdump ARAD4_test2.ncdf > ARAD4_test2_CF.txt
>
>
>
> 2. I added a new variable Time with the unit specified to the txt file.
>
>
>
> float Time(Time) ;
>
> Time:units = "minutes since 2016-07-29 12:00:00" ;
>
>
>
> 3.
>
> I generated a new nc file:
>
> ncgen ARAD4_test2_CF.txt -o  ARAD4_test2_CF.nc
>
>
>
> This new file is read correctly by ParaView.
>
>
>
> Best,
>
> Dan
>
>
>
>
>
>
>
> On Fri, Jun 16, 2017 at 6:31 PM, Aashish Chaudhary <
> aashish.chaudh...@kitware.com> wrote:
>
> Dear Cynthia,
>
>
>
> Is there any chance that you can send me a sample dataset?
>
>
>
> - Aashish
>
>
>
> On Fri, Jun 16, 2017 at 6:15 PM Hart, Cynthia Joyce - (cyndyb) <
> cyn...@email.arizona.edu> wrote:
>
> Folks –
>
>
>
> I am struggling with using the netCDF reader, with a bunch of timeseries
> of WRF data output (weather prediction modeling).  I am a visualizer, NOT a
> meteorologist, and so, my full understanding of the model’s output is shaky
> at best.  The researcher I am trying to assist is currently on vacation,
> and I’m trying to animate the output of his WRF model.
>
>
>
> So!  I have been viewing some of the output using the built in reader in
> Paraview (the ‘generic and cf’ reader) and it works for some variables, not
> for others.  I am using NCO tools to extract some of the variables of
> interest into their own CDF file, to try and isolate the problem Paraview
> has, reading some variables.. but that doesn’t help.  I am particularly
> trying to read a variable for radar data, “REFL_10CM”.  Here is the
> relevant bit of the file header from ncdump, below:
>
>
>
> netcdf ARAD4_test2 {
>
> dimensions:
>
> Time = UNLIMITED ; // (1 currently)
>
> south_north = 393 ;
>
> west_east = 639 ;
>
> bottom_top = 37 ;
>
> variables:
>
> float REFD_MAX(Time, south_north, west_east) ;
>
> REFD_MAX:FieldType = 104 ;
>
> REFD_MAX:MemoryOrder = "XY " ;
>
> REFD_MAX:description = "MAX DERIVED RADAR
> REFL" ;
>
> REFD_MAX:units = "dbZ" ;
>
> REFD_MAX:stagger = "" ;
>
> REFD_MAX:coordina

Re: [Paraview] troubles with netCDF reader ?

2017-06-23 Thread Dan Lipsa
Cynthia,
It seems that the files you send us are not CF compliant.
The problem is that the Time dimension does not have a unit.


Here are some quotes from the CF Conventions document:
- The use of coordinate variables is required for all dimensions that
correspond to one dimensional space or time coordinates.
- Variables representing time must always explicitly include the units
attribute; there is no default value

So, to fix one of your files, I did:

1. ncdump ARAD4_test2.ncdf > ARAD4_test2_CF.txt

2. I added a new variable Time with the unit specified to the txt file.

float Time(Time) ;
Time:units = "minutes since 2016-07-29 12:00:00" ;

3.
I generated a new nc file:
ncgen ARAD4_test2_CF.txt -o  ARAD4_test2_CF.nc

This new file is read correctly by ParaView.

Best,
Dan



On Fri, Jun 16, 2017 at 6:31 PM, Aashish Chaudhary <
aashish.chaudh...@kitware.com> wrote:

> Dear Cynthia,
>
> Is there any chance that you can send me a sample dataset?
>
> - Aashish
>
> On Fri, Jun 16, 2017 at 6:15 PM Hart, Cynthia Joyce - (cyndyb) <
> cyn...@email.arizona.edu> wrote:
>
>> Folks –
>>
>>
>>
>> I am struggling with using the netCDF reader, with a bunch of timeseries
>> of WRF data output (weather prediction modeling).  I am a visualizer, NOT a
>> meteorologist, and so, my full understanding of the model’s output is shaky
>> at best.  The researcher I am trying to assist is currently on vacation,
>> and I’m trying to animate the output of his WRF model.
>>
>>
>>
>> So!  I have been viewing some of the output using the built in reader in
>> Paraview (the ‘generic and cf’ reader) and it works for some variables, not
>> for others.  I am using NCO tools to extract some of the variables of
>> interest into their own CDF file, to try and isolate the problem Paraview
>> has, reading some variables.. but that doesn’t help.  I am particularly
>> trying to read a variable for radar data, “REFL_10CM”.  Here is the
>> relevant bit of the file header from ncdump, below:
>>
>>
>>
>> netcdf ARAD4_test2 {
>>
>> dimensions:
>>
>> Time = UNLIMITED ; // (1 currently)
>>
>> south_north = 393 ;
>>
>> west_east = 639 ;
>>
>> bottom_top = 37 ;
>>
>> variables:
>>
>> float REFD_MAX(Time, south_north, west_east) ;
>>
>> REFD_MAX:FieldType = 104 ;
>>
>> REFD_MAX:MemoryOrder = "XY " ;
>>
>> REFD_MAX:description = "MAX DERIVED
>> RADAR REFL" ;
>>
>> REFD_MAX:units = "dbZ" ;
>>
>> REFD_MAX:stagger = "" ;
>>
>> REFD_MAX:coordinates = "XLONG XLAT
>> XTIME" ;
>>
>> float REFL_10CM(Time, bottom_top, south_north, west_east)
>> ;
>>
>> REFL_10CM:FieldType = 104 ;
>>
>> REFL_10CM:MemoryOrder = "XYZ" ;
>>
>> REFL_10CM:description = "Radar
>> reflectivity (lamda = 10 cm)" ;
>>
>> REFL_10CM:units = "dBZ" ;
>>
>> REFL_10CM:stagger = "" ;
>>
>> REFL_10CM:coordinates = "XLONG XLAT
>> XTIME" ;
>>
>> float XLAT(Time, south_north, west_east) ;
>>
>> XLAT:FieldType = 104 ;
>>
>> XLAT:MemoryOrder = "XY " ;
>>
>> XLAT:description = "LATITUDE, SOUTH IS
>> NEGATIVE" ;
>>
>> XLAT:units = "degree_north" ;
>>
>> XLAT:stagger = "" ;
>>
>> XLAT:coordinates = "XLONG XLAT" ;
>>
>> float XLONG(Time, south_north, west_east) ;
>>
>> XLONG:FieldType = 104 ;
>>
>> XLONG:MemoryOrder = "XY " ;
>>
>> XLONG:description = "LONGITUDE, WEST IS
>> NEGATIVE" ;
>>
>> XLONG:units = "degree_east" ;
>>
>> XLONG:stagger = "" ;
>>
>> XLONG:coordinates = "XLONG XLAT" ;
>>
>> float XTIME(Time) ;
>>
>> XTIME:FieldType = 104 ;
>>
>> XTIME:MemoryOrder = "0  " ;
>>
>> XTIME:description = "minutes since
>> 2016-07-29 12:00:00" ;
>>
>> XTIME:units = "minutes since 2016-07-29
>> 12:00:00" ;
>>
>> XTIME:stagger = "" ;
>>
>>
>>
>> Paraview complains that it cannot read a variable with more than three
>> dimensions without time.  But there appears to ‘be’ time (I’m very unclear
>> what “UNLIMITED” time , as seen in the header, refers to in this context).
>> Is there any way I can work around this?  Most frustrating.   I can
>> actually read this varia

Re: [Paraview] Visualization ternary saturation

2017-05-09 Thread Dan Lipsa
Hi all,

Indeed, rather than supporting only 'unsigned char' for direct color
mapping - using color mode VTK_COLOR_MODE_DEFAULT, all integer and floating
point types can be used for direct color mapping using the color mode
VTK_COLOR_MODE_DIRECT_SCALARS.
Integer type colors should be between 0-255 and floating point colors
should be between 0-1.

Dan


On Mon, May 8, 2017 at 10:16 PM, Cory Quammen 
wrote:

> > I tried it your way in ParaView 5.3.0, and it did not work correctly. Are
> > you sure this is implemented in 5.3 and not a new feature in the upcoming
> > 5.4?
>
> Ken,
>
> This was implemented some time ago. In 5.3.0, I could do the following:
>
> * Add Sphere Source
> * Add Programmable Filter with the Script set to
>
> A = inputs[0].PointData['Normals'][:,0]
> B = inputs[0].PointData['Normals'][:,1]
> C = inputs[0].PointData['Normals'][:,2]
> colors = numpy.empty((len(A),3), dtype='float')
> colors[:,0] = A
> colors[:,1] = B
> colors[:,2] = C
> output.PointData.append(colors, 'colors')
>
> * Turn off Map Scalars
>
> You could also skip this silly use of the Programmable Filter
> altogether and color the Sphere source by 'Normals', then turn Map
> Scalars off.
>
> I believe the capability to treat floating-point arrays of 3-tuples
> was added to VTK in commit
>
> commit 00de9a942ff74e797fbe4cd8c67307c8065cdade
> Author: Dan Lipsa 
> Date:   Thu Nov 20 13:35:35 2014 -0500
>
> Add VTK_COLOR_MODE_DIRECT_SCALARS. See vtkScalarsToColors::MapScalars.
>
> - Cory
>
> > From: Shawn Waldon [mailto:shawn.wal...@kitware.com]
> > Sent: Monday, May 8, 2017 12:11 PM
> > To: Moreland, Kenneth 
> > Cc: Thomas Oliveira ; ParaView
> > 
> > Subject: [EXTERNAL] Re: [Paraview] Visualization ternary saturation
> >
> >
> >
> > Ken beat me to answering this one... I'll just add that if the data is
> > floating point in the range [0, 1], you don't need to convert it to
> uint8 or
> > multiply by 255.  Just creating a floating point vector will give the
> same
> > result.  This is a more recent extension of the functionality: I know it
> > works in 5.3 and master but I'm not sure how many versions back support
> it.
> >
> > A = inputs[0].CellData['A']
> >
> > B = inputs[0].CellData['B']
> >
> > C = inputs[0].CellData['C']
> >
> > colors = numpy.empty((len(A),3), dtype='float')
> >
> > colors[:,0] = A
> >
> > colors[:,1] = B
> >
> > colors[:,2] = C
> >
> > output.CellData.append(colors, 'colors')
> >
> >
> > HTH,
> >
> > Shawn
> >
> >
> >
> > On Mon, May 8, 2017 at 1:56 PM, Moreland, Kenneth 
> wrote:
> >
> > ParaView does not directly support ternary color maps, but if you create
> a
> > field of colors (represented by three unsigned chars), then you can
> render
> > those colors directly by turning off the Map Scalars option. You can
> create
> > these colors with a Programmable Filter with a script like the following:
> >
> >
> >
> > A = inputs[0].CellData['A']
> >
> > B = inputs[0].CellData['B']
> >
> > C = inputs[0].CellData['C']
> >
> > colors = numpy.empty((len(A),3), dtype='uint8')
> >
> > colors[:,0] = A*255
> >
> > colors[:,1] = B*255
> >
> > colors[:,2] = C*255
> >
> > output.CellData.append(colors, 'colors')
> >
> >
> >
> > Once you apply that script, color by the new “colors” array and uncheck
> the
> > box marked “Map Scalars” (it is an advanced option in the properties
> panel).
> >
> >
> >
> > -Ken
> >
> >
> >
> > From: ParaView [mailto:paraview-boun...@paraview.org] On Behalf Of
> Thomas
> > Oliveira
> > Sent: Saturday, May 6, 2017 7:24 AM
> > To: ParaView 
> > Subject: [EXTERNAL] [Paraview] Visualization ternary saturation
> >
> >
> >
> > Dear all,
> >
> > Given three cell arrays (A,B,C) representation saturations (A+B+C = 1 for
> > every cell) is it possible to generate a ternary saturation image like
> the
> > one attached (obtained in
> > http://www.esss.com.br/Kraken/wp-content/uploads/2014/07/
> Ternary-Saturation.png)?
> >
> > In the figure, A, B, C are saturations of water, oil and gas.
> >
> > Best regards,
> >
> > Thomas Oliveira
> >
> >
> > ___

[Paraview] Your thred on Kitware forum about particle tracing

2017-04-24 Thread Dan Lipsa
Hi Jagan,
Sorry for my delayed reply - I have been in vacation last week.

This shows why it is a good idea to send questions to the ParaView list
rather than individual developers. This way, you'll probably get answers
quicker.

1. You probably seeded your streamlines in areas where vector values are
very small. Try increasing Streamline Parameters / Maximum Steps and / or
Maximum Streamline Length.

You can also try changing the Line Parameters and moving the seeding line
to a different area of your dataset.

2.
There are standard vector measures computed:
AngularVelocity
Rotation
Vorticity
and additional arrays that provide more information about the process:
IntegrationTime
ReasonForTermination
SeedIds

The documentation for the class used is at:
http://www.vtk.org/doc/nightly/html/classvtkStreamTracer.html

Dan


>Hi Dan,
>
>I am Jagan Gorle, a CFD engineer and new user of paraview.
>I went through your tag on Paraview/Kitware forum regarding the particle
tracer. I have now the >same problem. I see the particles staying at the
patch where they are injected.

>1. Can you please give me steps how to trace the particle motion?
>2. Also, how to measure other kinematics such as drag/force, momentum,
velocity plot etc for the >particles?
>
>Your help would be appreciated.
>
>Regards
___
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] How to configure ParaView 5.2.0 to use off screen rendering?

2017-03-20 Thread Dan Lipsa
Looking at the errors you are getting looks like
/pan20/yzzhang/EGL/eglplatform.h
needs  KHR/khrplatform.h

Maybe your configuration uses different EGL header files than what you
expect.

DAn


On Mon, Mar 20, 2017 at 10:22 AM, 张驭洲  wrote:

>
>
> Thanks for your reply! But I don't know where the KHR/khrplatform.h is
> used. When I configure paraview using ccmake, the options about EGL are
> EGL_INCLUDE_DIR,
> EGL_LIBRARY, EGL_gldispatch_LIBRARY, EGL_opengl_LIBRARY,
> VTK_EGL_DEVICE_INDEX and VTK_USE_OFFSCREEN_EGL. In the path that I assigned
> to the EGL_INCLUDE_DIR, there is khrplatform.h file. What's more, I have
> built ParaView 5.2.0 with EGL used on another machine. That machine use
> NVIDIA GT 730 GPU, and in the EGL_INCLUDE_DIR path, there is not a
> khrplatform.h file, but the paraview can be built successfully and works.
> The khrplatform.h is required by the current EGL (1.5), but my EGL version
> is 1.4. Maybe it doesn't need that file?
>
> Thank you again!
>
> -Zhang
>
> -原始邮件-
> *发件人:* "Dan Lipsa" 
> *发送时间:* 2017年3月20日 星期一
> *收件人:* "张驭洲" 
> *抄送:* paraview 
> *主题:* Re: [Paraview] How to configure ParaView 5.2.0 to use off screen
> rendering?
>
>
> It seems you are missing KHR/khrplatform.h
> You can download it from the EGL website:
> https://www.khronos.org/registry/EGL/
>
> On Sat, Mar 18, 2017 at 3:51 AM, 张驭洲  wrote:
>
>>
>>
>> Hello,
>>
>> I'm building ParaView 5.2.0 on a machine that uses NVIDIA Tesla K80 GPUs.
>> The K80 GPUs have no interface for monitor, so I have to use off screen
>> rendering. It's said that EGL is a pretty good choice for this situation,
>> but as I switch VTK_USE_OFFSCREEN and VTK_USE_OFFSCREEN_EGL to "ON" and
>> then make,  I get these errors:
>>
>> Built target vtkIOImage
>> [ 16%] Building C object VTK/ThirdParty/glew/vtkglew/CM
>> akeFiles/vtkglew.dir/src/glew.c.o
>> In file included from /pan20/yzzhang/EGL/egl.h:39,
>>  from /pan20/yzzhang/ParaView-v5.2.0
>> /VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
>> /pan20/yzzhang/EGL/eglplatform.h:37:29: error: KHR/khrplatform.h: No
>> such file or directory
>> In file included from /pan20/yzzhang/EGL/egl.h:39,
>>  from /pan20/yzzhang/ParaView-v5.2.0
>> /VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
>> /pan20/yzzhang/EGL/eglplatform.h:151: error: expected ‘=’, ‘,’, ‘;’,
>> ‘asm’ or ‘__attribute__’ before ‘EGLint’
>> In file included from /pan20/yzzhang/ParaView-v5.2.0
>> /VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
>> /pan20/yzzhang/EGL/egl.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘EGLBoolean’
>> In file included from /pan20/yzzhang/ParaView-v5.2.0
>> /VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
>> /pan20/yzzhang/EGL/egl.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘EGLBoolean’
>> /pan20/yzzhang/EGL/egl.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘EGLContext’
>> /pan20/yzzhang/EGL/egl.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘EGLSurface’
>> /pan20/yzzhang/EGL/egl.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
>> ‘__attribute__’ before ‘EGLSurface’
>> ..
>>
>> Maybe it is clear that there is something wrong with the EGL header file,
>> but I don't know how to fix it. The operation system is CentOS 6.6. There
>> is an integrated graphics and 6 K80 GPUs. I connect to the machine using
>> ssh and have set headless X server using one of the K80 GPUs. I can run the
>> glxgears test in the off screen mode, but I don'n know how to make sure
>> that EGL is correctly setted. I want to know how to use EGL for off screen
>> rendering.
>>
>> Any help would be highly appreciated!
>>
>> -Zhang
>>
>>
>>
>>
>> ___
>> 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] How to configure ParaView 5.2.0 to use off screen rendering?

2017-03-20 Thread Dan Lipsa
It seems you are missing KHR/khrplatform.h
You can download it from the EGL website:
https://www.khronos.org/registry/EGL/

On Sat, Mar 18, 2017 at 3:51 AM, 张驭洲  wrote:

>
>
> Hello,
>
> I'm building ParaView 5.2.0 on a machine that uses NVIDIA Tesla K80 GPUs.
> The K80 GPUs have no interface for monitor, so I have to use off screen
> rendering. It's said that EGL is a pretty good choice for this situation,
> but as I switch VTK_USE_OFFSCREEN and VTK_USE_OFFSCREEN_EGL to "ON" and
> then make,  I get these errors:
>
> Built target vtkIOImage
> [ 16%] Building C object VTK/ThirdParty/glew/vtkglew/
> CMakeFiles/vtkglew.dir/src/glew.c.o
> In file included from /pan20/yzzhang/EGL/egl.h:39,
>  from /pan20/yzzhang/ParaView-v5.2.
> 0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
> /pan20/yzzhang/EGL/eglplatform.h:37:29: error: KHR/khrplatform.h: No such
> file or directory
> In file included from /pan20/yzzhang/EGL/egl.h:39,
>  from /pan20/yzzhang/ParaView-v5.2.
> 0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
> /pan20/yzzhang/EGL/eglplatform.h:151: error: expected ‘=’, ‘,’, ‘;’,
> ‘asm’ or ‘__attribute__’ before ‘EGLint’
> In file included from /pan20/yzzhang/ParaView-v5.2.
> 0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
> /pan20/yzzhang/EGL/egl.h:121: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘EGLBoolean’
> In file included from /pan20/yzzhang/ParaView-v5.2.
> 0/VTK/ThirdParty/glew/vtkglew/src/glew.c:38:
> /pan20/yzzhang/EGL/egl.h:122: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘EGLBoolean’
> /pan20/yzzhang/EGL/egl.h:123: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘EGLContext’
> /pan20/yzzhang/EGL/egl.h:124: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘EGLSurface’
> /pan20/yzzhang/EGL/egl.h:125: error: expected ‘=’, ‘,’, ‘;’, ‘asm’ or
> ‘__attribute__’ before ‘EGLSurface’
> ..
>
> Maybe it is clear that there is something wrong with the EGL header file,
> but I don't know how to fix it. The operation system is CentOS 6.6. There
> is an integrated graphics and 6 K80 GPUs. I connect to the machine using
> ssh and have set headless X server using one of the K80 GPUs. I can run the
> glxgears test in the off screen mode, but I don'n know how to make sure
> that EGL is correctly setted. I want to know how to use EGL for off screen
> rendering.
>
> Any help would be highly appreciated!
>
> -Zhang
>
>
>
>
> ___
> 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] Duplicate Renderview

2017-02-27 Thread Dan Lipsa
Adam,
No, there is no 'create new view as copy of current view' command.

Dan


On Mon, Feb 27, 2017 at 10:56 AM, Adam Dershowitz 
wrote:

> Maybe my question wasn’t clear.  What I want to know is if there is any
> way to copy the settings from one view to another.  For example if I turn
> on the visibility of a few filters (click on the eye) and then turn off
> others, and, finally make some other changes such as coloring of object I
> can  set up a view that I like.  Next, I want to start from that identical
> view to the one that I setup, but just move the camera from that view.  So,
> I want to setup things how I want (filter visibility, colors etc) then make
> a second view that is a copy of that first view.  Then, I want to start
> from that second view to move my camera etc.
>
>
>
> As you indicate below, I can edit things in a view and change the
> visibility in each view.  But, I already have a view that I like, and now I
> want to make that into a split view with the identical visibility etc.  Do,
> I have to manually start turning on and off all of the filter visibility
> etc?
>
> What I am looking for is “copy current pipeline visibility” and then apply
> that to another view.  Or, “create new view as copy of current view”  Then,
> I can start making changes from that point.
>
>
>
> I don’t see a way to do that.
>
>
>
> Thanks,
>
>
>
> -- Adam
>
>
>
>
>
> *From: *Dan Lipsa 
> *Date: *Thursday, February 23, 2017 at 3:35 PM
> *To: *Dershowitz Adam 
> *Cc: *"paraview@paraview.org" 
> *Subject: *Re: [Paraview] Duplicate Renderview
>
>
>
> Adam,
>
> You can show the same data in different views. Just click on the eye next
> to the filter which output you want to see.
>
>
>
> So for instance, if you show the data from the last filter in one view,
> clicking on the eye next to that filter will show the same thing in the
> second view.
>
>
>
> So, the starting point does exactly what you want. Note that the settings
> for how data is displayed in a view are stored per (filter, view) pair.
>
> You can change those by selecting the filter and the view you want and
> changing the display settings.
>
>
>
> I hope this helps,
>
> Dan
>
>
>
>
>
> On Wed, Feb 22, 2017 at 10:16 AM, Adam Dershowitz <
> adershow...@exponent.com> wrote:
>
> I have a pipeline setup, with a good renderview.  I want to then make a
> split view, that is identical, except for the camera angle.  When I try to
> split my view, or create a new view,  they show up empty.  I can then start
> manually turning on, and coloring everything how I want it.  But, it seems
> like there should be an option to “duplicate current pipeline settings” as
> a starting point.  Then, I could move the camera or make any other changes
> that I want from there.
>
> I did search around in Paraview and on the web, but didn’t find anything.
> Is there an easy way to do this?  I did find a few other discussions about
> this, with suggested scripts, but those fail for me as well.
>
> I’m using Paraview 5.2, although I also looked around briefly for a way to
> do this in 5.3RC1.
>
>
>
> Thanks,
>
>
>
> -- Adam
>
>
>
>
> ___
> Powered by www.kitware.com
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com&d=DwMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=oWi4XRXRPfgz4qKaAAQtDqKmOLrqDHEwbLsCwbV_xuU&s=UTmtwcqSbMruMWQNapPgt2pjh8juMpV6fxB4b-veHB8&e=>
>
> Visit other Kitware open-source projects at http://www.kitware.com/
> opensource/opensource.html
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__www.kitware.com_opensource_opensource.html&d=DwMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=oWi4XRXRPfgz4qKaAAQtDqKmOLrqDHEwbLsCwbV_xuU&s=9vxMWTnqgSsfsc-A4qf_xgswkB5j-W886XK5YvwZvEY&e=>
>
> Please keep messages on-topic and check the ParaView Wiki at:
> http://paraview.org/Wiki/ParaView
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__paraview.org_Wiki_ParaView&d=DwMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=oWi4XRXRPfgz4qKaAAQtDqKmOLrqDHEwbLsCwbV_xuU&s=hj2KT97SpIdUPSLX8FgB_VjksbyXDb-pyNMx4RgKqz4&e=>
>
> Search the list archives at: http://markmail.org/search/?q=ParaView
> <https://urldefense.proofpoint.com/v2/url?u=http-3A__markmail.org_search_-3Fq-3DParaView&d=DwMFaQ&c=t0wRGL5ICVzH157W8C8Wew&r=5usL3OGqXabRLtSzGmh8YEvbco28TaiOmWcn6rCn8wM&m=oWi4XRXRPfgz4qKaAAQtDqKmOLrqDHEwbLsCwbV_xuU&s=blQJP-VHJDV6vF-qH55d_ATxF-3XnwQcv

Re: [Paraview] Duplicate Renderview

2017-02-23 Thread Dan Lipsa
Adam,
You can show the same data in different views. Just click on the eye next
to the filter which output you want to see.

So for instance, if you show the data from the last filter in one view,
clicking on the eye next to that filter will show the same thing in the
second view.

So, the starting point does exactly what you want. Note that the settings
for how data is displayed in a view are stored per (filter, view) pair.
You can change those by selecting the filter and the view you want and
changing the display settings.

I hope this helps,
Dan


On Wed, Feb 22, 2017 at 10:16 AM, Adam Dershowitz 
wrote:

> I have a pipeline setup, with a good renderview.  I want to then make a
> split view, that is identical, except for the camera angle.  When I try to
> split my view, or create a new view,  they show up empty.  I can then start
> manually turning on, and coloring everything how I want it.  But, it seems
> like there should be an option to “duplicate current pipeline settings” as
> a starting point.  Then, I could move the camera or make any other changes
> that I want from there.
>
> I did search around in Paraview and on the web, but didn’t find anything.
> Is there an easy way to do this?  I did find a few other discussions about
> this, with suggested scripts, but those fail for me as well.
>
> I’m using Paraview 5.2, although I also looked around briefly for a way to
> do this in 5.3RC1.
>
>
>
> Thanks,
>
>
>
> -- Adam
>
>
>
> ___
> 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] Query on paraview software rendering vs GPU rendering on ubuntu server

2017-02-01 Thread Dan Lipsa
Bishwajit,


On Wed, Feb 1, 2017 at 1:26 PM, Bishwajit Dutta  wrote:

> Hi All,
>
> I am setting up paraview in different modes in my university for research
> and had the below queries on paraview wrt ubuntu. Thanks if anyone can
> answer them.
>
> a) Is it possible to dynamically switch between CPU (mesa software
> rendering) and GPU rendering (openGL). If so, which Paraview version
> supports this and the steps.
>
Not as far as I know. The OpenGL libraries are resolved at configuration
and compilation time.



> Is not then can paraview binaries be used with some commandline option for
> the same.
>

On the same machine, you could run two servers one that renders in software
and one that renders on the GPU. You could save the state, disconnect from
one, connect to the other and load the saved state. But this is not really
dynamic switching.


b) In ubuntu server version (which has no GUI), can paraview use GPU for
> graphics acceleration as there is no GUI.
> I don't get this properly if desktop GUI is must for GPU usage.
>

Yes, if the server has an NVidia card and a recent driver it should be
possible to use EGL.

https://blog.kitware.com/off-screen-rendering-through-the-native-platform-interface-egl/






>
> BR,
> Bishwajit
>
> ___
> 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] Display vector components on Paraview

2016-04-28 Thread Dan Lipsa
Malik,
You can use the Calculator filter to generate a new scalar with the same
value as one of the components of your vector. Then, you can color by that
scalar.

Dan


On Thu, Apr 28, 2016 at 1:43 PM, Malik Shukeir 
wrote:

> Dear all,
>
> Currently, I am a phd student and I am using paraview on Linux, I am
> working on materials crystallography. I am using Paraview to visualize the
> cristallographic orientations inside the material.
>
> How can I display the components of a vector as a text, or at least assign
> a specific color to previously defined orientations
>
> Ex: Directrion <1 1 1> Red
>   Directrion <1 1 2> Blue, etc ...
>
> I would be grateful for any help
>
> Malik SHUKEIR
> UPMC-Paris
>
> ___
> 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] EGL build of ParaView

2016-02-11 Thread Dan Lipsa
Alexandre,
Thanks for the info.

I filed a bug report on disabling the xdisplay test.

http://www.vtk.org/Bug/view.php?id=15992

Best,
Dan

On Thu, Feb 11, 2016 at 12:04 PM, Alexandre Ancel <
alexandre.an...@cemosis.fr> wrote:

> Indeed, when I use an ssh -Y for example with the EGL version of ParaView,
> I end up having this error in the pvserver:
> "
> Waiting for client...
> Connection URL: cs://irma-atlas:1
> Accepting connection(s): irma-atlas:1
> Client connected.
> ERROR: In
> /data/software/src/ParaView/ParaView-v5.0.0-source/VTK/Rendering/OpenGL2/vtkEGLRenderWindow.cxx,
> line 315
> vtkEGLRenderWindow (0x2efe490): Only EGL 1.4 and greater allows OpenGL as
> client API. See eglBindAPI for more information.
>
> ERROR: In
> /data/software/src/ParaView/ParaView-v5.0.0-source/VTK/Rendering/OpenGL2/vtkOpenGLRenderWindow.cxx,
> line 575
> vtkEGLRenderWindow (0x2efe490): GLEW could not be initialized.
> "
> and ParaVIew crashes.
> I noticed that at the beginning so now I make sure to have no DISPLAY
> variable set.
>
>
> Regarding to what is shown in:
> Help, About, Connection Information, OpenGL Renderer
>
> In the OpenGL Renderer section, I have the reference of the graphic card I
> use, either the K80 or GTX 470. So it should be OK.
>
>
> Additionaly, when I built ParaView, I didn't initially put the
> -DPARAVIEW_BUILD_QT_GUI=OFF option, and I ended having errors with
> XCreateWindow during the compilation, which seems normal as I used
> -DVTK_USE_X=OFF.
> Maybe the use of PARAVIEW_BUILD_QT_GUI=ON should be prevented when using
> VTK_USE_X=OFF ? Or if it is already the case, I might have had a mixup in
> my configuration.
>
>
> In any case and if it might help someone else on this list, I wrote some
> notes about how to make everything work together:
>
> https://github.com/aancel/admin/wiki/Compile-ParaView-with-EGL-support-on-Ubuntu-14.04
>
>
> Hope I could have been of some help,
> Regards,
>
> Alexandre Ancel
>
> On Thu, Feb 11, 2016 at 5:33 PM, Dan Lipsa  wrote:
>
>> Alexandre,
>>
>>
>> On Thu, Feb 11, 2016 at 11:13 AM, Alexandre Ancel <
>> alexandre.an...@cemosis.fr> wrote:
>>
>>> Hello Dan,
>>>
>>> Regarding to the values of the variables, I have:
>>>
>>> //No help, variable specified on the command line.
>>> EGL_INCLUDE_DIR:UNINITIALIZED=/data/software/install/EGL/include
>>>
>>> //Path to a library.
>>> EGL_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libEGL.so
>>>
>>> //No help, variable specified on the command line.
>>>
>>> EGL_gldispatch_LIBRARY:UNINITIALIZED=/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
>>>
>>> //Path to a library.
>>> EGL_opengl_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libOpenGL.so
>>>
>>> The libraries are OK (They come from the manual installation of the
>>> Nvidia driver which should be at least 355 if I remember well). I have a
>>> 358.16.
>>>
>>> I didn't previously saw that EGL_INCLUDE_DIR was marked as
>>> UNINITIALIZED, however ParaView was built successfully with the previously
>>> mentioned options.
>>>
>>> I am just not sure about the libGLdispatch.so.0 library, as it is not a
>>> symlink to a libGLdispatch.so.358.16.
>>> When I do a "strings libGLdispatch.so.0", I have gl*NV functions, so I
>>> guess it should be ok.
>>>
>>
>> Al this looks fine.
>>
>>
>>>
>>> As I said before, remote rendering is working but only when I add
>>> "--disable-xdisplay-test" to the pvserver.
>>>
>>
>> I see. It seems your build works fine but we should have authomatically
>> pass that option and now show the option in ParaView at all.
>> When you run through EGL there is no X involved. Opening an X display as
>> this test does probably screws up things.
>>
>> You can also try (with this option passed as you have done) to see what
>> is shown in:
>> Help, About, Connection Information, OpenGL Renderer.
>>
>> It is interesting that I have not seen this problem. I tested on a
>> machine that was already running X. Maybe this made a difference.
>> I will file a bug report as it makes sense to disable the xdisplay test.
>>
>> Dan
>>
>>
>
>
> --
> Alexandre Ancel
> Docteur, Ingénieur de recherche / Phd, Research Engineer
> Cemosis <http://www.cemosis.fr> - alexandre.an...@cemosis.fr
> Tel: +33 (0)3 68 8*5 02 06*
> IRMA - 7, rue René Descartes
> 67 000 Strasbourg, France
>
___
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] EGL build of ParaView

2016-02-11 Thread Dan Lipsa
Alexandre,


On Thu, Feb 11, 2016 at 11:13 AM, Alexandre Ancel <
alexandre.an...@cemosis.fr> wrote:

> Hello Dan,
>
> Regarding to the values of the variables, I have:
>
> //No help, variable specified on the command line.
> EGL_INCLUDE_DIR:UNINITIALIZED=/data/software/install/EGL/include
>
> //Path to a library.
> EGL_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libEGL.so
>
> //No help, variable specified on the command line.
>
> EGL_gldispatch_LIBRARY:UNINITIALIZED=/usr/lib/x86_64-linux-gnu/libGLdispatch.so.0
>
> //Path to a library.
> EGL_opengl_LIBRARY:FILEPATH=/usr/lib/x86_64-linux-gnu/libOpenGL.so
>
> The libraries are OK (They come from the manual installation of the Nvidia
> driver which should be at least 355 if I remember well). I have a 358.16.
>
> I didn't previously saw that EGL_INCLUDE_DIR was marked as UNINITIALIZED,
> however ParaView was built successfully with the previously mentioned
> options.
>
> I am just not sure about the libGLdispatch.so.0 library, as it is not a
> symlink to a libGLdispatch.so.358.16.
> When I do a "strings libGLdispatch.so.0", I have gl*NV functions, so I
> guess it should be ok.
>

Al this looks fine.


>
> As I said before, remote rendering is working but only when I add
> "--disable-xdisplay-test" to the pvserver.
>

I see. It seems your build works fine but we should have authomatically
pass that option and now show the option in ParaView at all.
When you run through EGL there is no X involved. Opening an X display as
this test does probably screws up things.

You can also try (with this option passed as you have done) to see what is
shown in:
Help, About, Connection Information, OpenGL Renderer.

It is interesting that I have not seen this problem. I tested on a machine
that was already running X. Maybe this made a difference.
I will file a bug report as it makes sense to disable the xdisplay test.

Dan
___
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] EGL build of ParaView

2016-02-11 Thread Dan Lipsa
Alexandre,
Can you check

EGL_INCLUDE_DIR
EGL_LIBRARIES

in CMakeCache.txt

and make sure they point to the libraries that come with the NVidia driver.

You will need:
libEGL, libOpenGL and libGLdispatch

On my machine nvidia libraries are inside
/usr/lib32/nvidia-346. (My machine has an older driver that does not
support EGL)

What are whose values?
Thanks,
Dan





On Thu, Feb 11, 2016 at 3:39 AM, Alexandre Ancel  wrote:

> Hello,
>
> I am trying to make the EGL build of ParaView work, but I am encountering
> some issues.
>
> First, here is the configure line I used to build ParaView:
>
> cmake .. \
> -DBUILD_TESTING=OFF -DPARAVIEW_ENABLE_CATALYST=ON -DPARAVIEW_ENABLE_PYTHON=ON 
> \
> -DPARAVIEW_INSTALL_DEVELOPMENT_FILES=ON -DPARAVIEW_USE_MPI=ON \
> -DVTK_RENDERING_BACKEND=OpenGL2 -DVTK_USE_OFFSCREEN_EGL=ON \
> -DVTK_USE_X=OFF -DPARAVIEW_BUILD_QT_GUI=OFF \
> -DEGL_gldispatch_LIBRARY= \
> -DEGL_INCLUDE_DIR= \
> -DCMAKE_INSTALL_PREFIX=
>
> Everything then builds and installs correctly.
>
> But when I start a pvserver (with no X server launched) on the server
> where the data is stored and with a graphic card. I end up having the
> following issue in a ParaView pop-up:
>
> "
>
> OpenGL drivers on the server side don't support
>
> required OpenGL features for basic rendering.
>
> Remote rendering will be disabled.
>
>
> OpenGL Vendor: NVIDIA Corporation
>
> OpenGL Version: 4.5.0 NVIDIA 358.16
>
> OpenGL Renderer: Tesla K80/PCIe/SSE2
> "
>
> And then I tried to use volume rendering, but I end up with this error:
> "
> Some of the representations in this view require remote rendering which,
> however, is not available. Rendering may not work as expected.
> "
> And VR does not work.
>
> I managed to replicate this issue, with both a Nvidia Tesla K80 and GTX
> 470 with the 358.16 driver from NVidia on a Ubuntu 14.04.
>
> However, when I add the "--disable-xdisplay-test" option to the pvserver.
> I don't get the error regarding to OpenGL drivers and I am able to do
> remote rendering on the server side.
>
> I also tried adding the "–egl-device-index=0" instead of
> "--disable-xdisplay-test", but I am getting the OpenGL error.
>
> Is there something I missed in my ParaView build ?
> I guess I should be able to run the pvserver without the
> "--disable-xdisplay-test" option, isn't it ?
>
> Another last question, is the EGL internal rendering resolution available
> for modification or will it fit the current view of ParaView ? (e.g. for
> doing screenshots)
>
>
> Thanks in advance for the answers,
>
> Best regards,
> Alexandre Ancel
>
> --
> Alexandre Ancel
> Docteur, Ingénieur de recherche / Phd, Research Engineer
> Cemosis  - alexandre.an...@cemosis.fr
> Tel: +33 (0)3 68 8*5 02 06*
> IRMA - 7, rue René Descartes
> 67 000 Strasbourg, France
>
> ___
> 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] Parallel unfriendly filters?

2016-02-09 Thread Dan Lipsa
>
>
>
> Cell Data to Point Data is the only way I know of to activate the contour
> filter for silo files.  The results are stored in cell arrays, which
> apparently don't activate the contour filter.  I stumbled upon using Cell
> Data to Point Data by accident, so if there's a better way to do this, I'm
> open to it.
>

I see. I would go with Ken's suggestions, then.  I would also create a new
array called  'vtkGhostType' from 'avtGhostZones'. You could do that
instead of thresholding out the ghost zones. VTK knows about vtkGhostType
name. I think you could leave those in as they should not be rendered.

You can create the new array from avtGhostZone using the Calculator filter.

Dan
___
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] Parallel unfriendly filters?

2016-02-08 Thread Dan Lipsa
David,
Why do you need to do 'cell data to point data'? Can you try without that
step?

On Mon, Feb 8, 2016 at 3:14 PM, David Ortley  wrote:

> I'm running Paraview in client/server mode with the server running on an
> HPC platform across multiple nodes.
>
> My input is a multi-block silo file that contains ghost zone information.
> The way I do a seamless contour when visualizing on my workstation is to do
> the following:
>
> Load the silo file
> -> Threshold out the ghost zones (threshold filter)
> -> Merge the blocks
> -> Cell data to point data
> -> Contour
>
> This works well enough when on a single machine.  But when visualizing
> client/server with the server running across multiple nodes, there appear
> seams on the contours.
>
> Is this an expected behavior given my setup?  Are any of the filters that
> I listed above (Threshold, Merge Blocks, Cell data to point data, and
> Contour) not fully implemented in parallel yet?
>
> nb - I've not spent a lot of time trying to debug the problem, so I don't
> know if the problem exists when a server is running on a single node only.
> It looks like something that is happening at node boundaries, but I could
> be wrong and it could be a per/processor thing.
>
> Thanks.
>
> -David Ortley
>
> ___
> 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] Warning about Version while Reading File

2016-02-04 Thread Dan Lipsa
Great that you figure it out.

Indeed the older readers did not care about the version. With the newer
readers we had to check the version to deal properly with ghosts.

Dan


On Thu, Feb 4, 2016 at 12:58 PM, Fastl, Thomas 
wrote:

> Hello,
>
>
> I'm really sorry for the confusion: When writing a file using ParaView I
> obtain 4.0 in the header, but I had a script to generate file from Matlab
> and for some reason I wrote 4.2 in the header of all my files. This didn't
> cause any problems with an older version of ParaView 4.2.0, but throws a
> warning in ParaView 5.0.0. Problem solved and sorry again, that was
> unnecessary!
>
>
> Best, Thomas
>
> --
> *From:* Dan Lipsa 
> *Sent:* Thursday, February 4, 2016 4:43 PM
> *To:* Berk Geveci
> *Cc:* Cory Quammen; Fastl, Thomas; paraview@paraview.org
> *Subject:* Re: [Paraview] Warning about Version while Reading File
>
> Hi Thomas,
> I am surprised that version 4.2 gets in the file. In our last upgrade to
> the file format we increased the version from 3.0 to 4.0.
> So format 4.2 is not out yet. I wonder if Paraview writes that.
>
> How did you generate the file?
>
> Thanks,
> Dan
>
>
> On Thu, Feb 4, 2016 at 11:20 AM, Berk Geveci 
> wrote:
>
>> Actually, we changed how the ghost levels are handled and had to update
>> the format accordingly. It may be related to that. Dan would know more.
>>
>> Best,
>> -berk
>>
>> On Thu, Feb 4, 2016 at 11:00 AM, Cory Quammen 
>> wrote:
>>
>>> Thomas,
>>>
>>> I'm surprised your file didn't cause a complaint in ParaView 4.2. The
>>> legacy VTK file reader in VTK hasn't changed in quite some years. What
>>> software writes your VTK file? If it were written with VTK (perhaps by
>>> way of ParaView), the file version number should be 4.2.
>>>
>>> By the way, this shouldn't be a problem other than annoying you with
>>> the warning message.
>>>
>>> Cory
>>>
>>> On Thu, Feb 4, 2016 at 8:31 AM, Fastl, Thomas 
>>> wrote:
>>> > Hello Community,
>>> >
>>> >
>>> > I just installed ParaView 5.0.0 and loaded a vtk-file which worked
>>> under
>>> > ParaView 4.2.0! Doing so I receive the warning 'Reading file version:
>>> 4.2
>>> > with older reader version 4.0', suggesting that an outdated vtk
>>> version is
>>> > used to read the file. I should mention that changing the header line
>>> in the
>>> > vtk-file from '# vtk DataFile Version 4.2' to '# vtk DataFile Version
>>> 4.2'
>>> > does the trick, however, I don't understand why ParaView complains? I
>>> read
>>> > that ParaView uses it's own vtk version which seems to be 7.1.0 (see
>>> below),
>>> > so why this warning? Is there anything else I can can do to fix that
>>> or is
>>> > this a bug in ParaView? Thanks!
>>> >
>>> >
>>> > from __future__import print_function
>>> >
>>> > import vtk
>>> >
>>> > print(vtk.vtkVersion.GetVTKSourceVersion())
>>> >
>>> >
>>> > Best wishes, Thomas
>>> >
>>> >
>>> >
>>> > ___
>>> > 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
>>> 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
>>>
>>
>>
>
___
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] Warning about Version while Reading File

2016-02-04 Thread Dan Lipsa
Hi Thomas,
I am surprised that version 4.2 gets in the file. In our last upgrade to
the file format we increased the version from 3.0 to 4.0.
So format 4.2 is not out yet. I wonder if Paraview writes that.

How did you generate the file?

Thanks,
Dan


On Thu, Feb 4, 2016 at 11:20 AM, Berk Geveci 
wrote:

> Actually, we changed how the ghost levels are handled and had to update
> the format accordingly. It may be related to that. Dan would know more.
>
> Best,
> -berk
>
> On Thu, Feb 4, 2016 at 11:00 AM, Cory Quammen 
> wrote:
>
>> Thomas,
>>
>> I'm surprised your file didn't cause a complaint in ParaView 4.2. The
>> legacy VTK file reader in VTK hasn't changed in quite some years. What
>> software writes your VTK file? If it were written with VTK (perhaps by
>> way of ParaView), the file version number should be 4.2.
>>
>> By the way, this shouldn't be a problem other than annoying you with
>> the warning message.
>>
>> Cory
>>
>> On Thu, Feb 4, 2016 at 8:31 AM, Fastl, Thomas 
>> wrote:
>> > Hello Community,
>> >
>> >
>> > I just installed ParaView 5.0.0 and loaded a vtk-file which worked under
>> > ParaView 4.2.0! Doing so I receive the warning 'Reading file version:
>> 4.2
>> > with older reader version 4.0', suggesting that an outdated vtk version
>> is
>> > used to read the file. I should mention that changing the header line
>> in the
>> > vtk-file from '# vtk DataFile Version 4.2' to '# vtk DataFile Version
>> 4.2'
>> > does the trick, however, I don't understand why ParaView complains? I
>> read
>> > that ParaView uses it's own vtk version which seems to be 7.1.0 (see
>> below),
>> > so why this warning? Is there anything else I can can do to fix that or
>> is
>> > this a bug in ParaView? Thanks!
>> >
>> >
>> > from __future__import print_function
>> >
>> > import vtk
>> >
>> > print(vtk.vtkVersion.GetVTKSourceVersion())
>> >
>> >
>> > Best wishes, Thomas
>> >
>> >
>> >
>> > ___
>> > 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
>> 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
>>
>
>
___
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] Why are multiple csv files written?

2015-11-04 Thread Dan Lipsa
Alex,
I assume your exodus file has 5 time steps. Try writer.UpdatePipelien()
without any parameters. It should only write time step 0.
You can also load your exodus file and/or cvs files in ParaView to look at
them.

Dan


On Wed, Nov 4, 2015 at 12:23 PM, Alex Lindsay  wrote:

> I am running this simple script:
>
> from paraview.simple import *
>
> path = "/home/lindsayad/gdrive/MooseOutput/"
> file_name =
> "DCPlasma_argon_energy_variable_trans_for_compare_townsend_spline_new_form_var_iz_var_el_new_ip_trans_coeffs_small_plasma_radius_gold_out"
> inp = path + file_name + ".e"
> out = path + file_name + ".csv"
>
> reader = ExodusIIReader(FileName=inp)
> tsteps = reader.TimestepValues
> writer = CreateWriter(out, reader)
> writer.UpdatePipeline(time=tsteps[len(tsteps)-1])
>
> When I run the script, 5 csv files are written, with suffix *0.csv,
> *1.csv, ..., *4.csv. The *0.csv file contains the data I want; however, the
> other 4 files are empty. Why are these 4 empty files written, and how can I
> prevent it from happening?
>
> 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] Some questions about Catalyst Live Visualization

2015-11-02 Thread Dan Lipsa
Hi Andy,


>  (e.g. images, data extracts or to Catalyst Live via a connected client)
> then RequestDataDescription() should return that there's no work to do so
> that no cycles are wasted generating the VTK object.
>

This is a good idea. I think we could  indeed return that there is no work
on the test for execution frequencies so that the user does not have to do
another test.
Here is the bug report for this:

http://www.vtk.org/Bug/view.php?id=15815

Dan
___
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] Some questions about Catalyst Live Visualization

2015-10-30 Thread Dan Lipsa
Hi Adam,

On Fri, Oct 30, 2015 at 10:20 AM, Adam Lyon  wrote:

> I'd like this code to only run if a ParaView client is actually connected
> (because if there's no client connected then it's making VTK objects that
> no human is looking at, so it's wasting time). So I'd like to know if
> there's a way that my code could ask the adapter if a client is connected.
> I hope I explained that better - let me know if not.
>

Live was added as a way to support catalyst processing: the user can
examine down-sampled data produced by the simulation but also modify the
processing pipeline while the simulation is running. The processing
pipeline is mainly used to save data/images from the simulation. So I don't
think we considered your use case. Looking at the code it does not seem to
be a way to query if there is a connection to ParaView Live. I don't think
it would be too difficult to add it though.

Dan
___
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] Disable NPICAdaptor and ParticleAdaptor builds on Windows

2015-10-29 Thread Dan Lipsa
Hello ParaView Users,
Is there anybody using NPICAdaptor or ParticleAdaptor Catalyst Adaptors on
Windows?
These two adaptors are built on Windows which create unnecessary
maintenance work if nobody is using them on Windows.

We plan to disable their build on Window if nobody is interested in that.

Thanks,
Dan
___
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] Problem with pvd/vtu --> csv convert

2015-09-16 Thread Dan Lipsa
This is an error when trying to open that file for writing: the file system
is full maybe?

On Wed, Sep 16, 2015 at 2:34 AM, David Larsson 
wrote:

> Hi everyone,
>
>
> I'm currently using paraview to simply open a pvd-file (with corresponding
> vtu-files) and saving the data as csv-files (that is Save Data, writing all
> time steps). My file consists of ~1000 time slices so the save data has to
> go through quite a lot of input/output files.
>
>
> When I look at my vtu-files they all look good and I can view the data in
> e.g. spreadsheet format inside Paraview. However, when saving the output it
> manages only the first few files and then prompts on the likes of (in this
> case, solution.28.csv represents the 29th frame):
>
>
> ERROR: In
> /home/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/ParaViewCore/VTKExtensions/Default/vtkCSVWriter.cxx,
> line 82
> vtkCSVWriter (0x6409f60): Unable to open file:
> /path/to/my/output/solution.28.csv
>
>
> This error is then prompted for the rest of the output files.
>
>
> Does anyone know what might cause this problem?
>
>
> Thanks in advance for the help
>
>
> /David
>
> ___
> 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] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-14 Thread Dan Lipsa
I was wandering because I thought you used a different script than what I
sent. If you only changed the palette it should not make a difference. I am
on Linux. Maybe there is a problem with screenshot saving on MacOS. Maybe
someone else with a mac could try this. If not, I am in the process of
getting a mac laptop, I'll try to remember to try this out when I get my
new laptop.

Dan


On Mon, Sep 14, 2015 at 5:43 PM, Ruggiero Guida 
wrote:

> Not sure I said that I'm on Mac OS X.
>
> Re: palette. No reason, I prefer a white background and I was
> experimenting with the colour mappings from colorbrewer
>
>
> Sent from Outlook <http://aka.ms/Ox5hz3>
>
>
>
>
> On Mon, Sep 14, 2015 at 9:51 AM -0700, "Dan Lipsa" 
> wrote:
>
> Hmm,
>> I tried
>> ~/ParaView-4.3.1-Linux-64bit/bin/pvpython test.py
>>
>> and still created the right png - see attached.
>> I notice you have a different color palette. Why is that?
>>
>>
>> On Mon, Sep 14, 2015 at 8:11 AM, Ruggiero Guida > > wrote:
>>
>>> Thanks Dan.
>>>
>>> Run you script through pvpython. No modifications apart from the
>>> filenames. I still have an image with 1000x855 size (see attached).
>>>
>>> I will try to build paraview from source to see if this changes.
>>>
>>> Thanks
>>>
>>> [image: Inline images 1]
>>>
>>> On 12 September 2015 at 02:04, Dan Lipsa  wrote:
>>>
>>>> Ruggiero,
>>>> Attached is the script I used on ParaView master. It saves a 1000x1000
>>>> png. I had to uncomment renderView1.ViewSize and change the magnification
>>>> for SaveScreenshot to 1.
>>>>
>>>> Dan
>>>>
>>>>
>>>>
>>>> On Thu, Sep 10, 2015 at 9:38 PM, Ruggiero Guida <
>>>> ruggiero.gu...@gmail.com> wrote:
>>>>
>>>>> Attached. Thanks for checking.
>>>>>
>>>>> On 11 September 2015 at 09:34, Dan Lipsa 
>>>>> wrote:
>>>>>
>>>>>> If you send me your test.vtk I can try to generate the script on my
>>>>>> machine.
>>>>>>
>>>>>> Dan
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 10, 2015 at 9:10 PM, Ruggiero Guida <
>>>>>> ruggiero.gu...@gmail.com> wrote:
>>>>>>
>>>>>>> I am using the 4.3.1 binary version downloaded from the website. I
>>>>>>> generated my script starting from the trace as you suggest. Uncommenting
>>>>>>> the ViewSize on your script works. The fact is that it does not work on
>>>>>>> mine and i really don't understand why. I guess it is related to the
>>>>>>> settings of the camera.
>>>>>>>
>>>>>>> Have you tried to run my script on your machine? I would expect to
>>>>>>> have a square image with the data fitted perfectly into it, but as soon 
>>>>>>> as
>>>>>>> I increase the ViewSize above 855x855, only the horizontal size 
>>>>>>> increases.
>>>>>>> As you can see from the VTK the source data is 24x24.
>>>>>>>
>>>>>>> Thanks
>>>>>>>
>>>>>>>
>>>>>>>
>>>>>>> On 11 September 2015 at 08:51, Dan Lipsa 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> What version of ParaView do you use? I run the script on a ParaView
>>>>>>>> source build from git master.
>>>>>>>>
>>>>>>>>
>>>>>>>> You should be able to do Tools / Start Trace, open your file and
>>>>>>>> then save it to the desired resolution. The script generated should 
>>>>>>>> tell
>>>>>>>> you what settings you need. You might need to uncomment the setting of 
>>>>>>>> the
>>>>>>>> ViewSize. This is what I had to do.
>>>>>>>>
>>>>>>>> On Thu, Sep 10, 2015 at 6:41 PM, Ruggiero Guida <
>>>>>>>> ruggiero.gu...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> Thanks Dan.
>>>>>>>>>
>>>>>>>>> The image saved is 648 x 639 (see attached). What I am not
>>>>>>>>> understanding is the rela

Re: [Paraview] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-14 Thread Dan Lipsa
Hmm,
I tried
~/ParaView-4.3.1-Linux-64bit/bin/pvpython test.py

and still created the right png - see attached.
I notice you have a different color palette. Why is that?


On Mon, Sep 14, 2015 at 8:11 AM, Ruggiero Guida 
wrote:

> Thanks Dan.
>
> Run you script through pvpython. No modifications apart from the
> filenames. I still have an image with 1000x855 size (see attached).
>
> I will try to build paraview from source to see if this changes.
>
> Thanks
>
> [image: Inline images 1]
>
> On 12 September 2015 at 02:04, Dan Lipsa  wrote:
>
>> Ruggiero,
>> Attached is the script I used on ParaView master. It saves a 1000x1000
>> png. I had to uncomment renderView1.ViewSize and change the magnification
>> for SaveScreenshot to 1.
>>
>> Dan
>>
>>
>>
>> On Thu, Sep 10, 2015 at 9:38 PM, Ruggiero Guida > > wrote:
>>
>>> Attached. Thanks for checking.
>>>
>>> On 11 September 2015 at 09:34, Dan Lipsa  wrote:
>>>
>>>> If you send me your test.vtk I can try to generate the script on my
>>>> machine.
>>>>
>>>> Dan
>>>>
>>>>
>>>> On Thu, Sep 10, 2015 at 9:10 PM, Ruggiero Guida <
>>>> ruggiero.gu...@gmail.com> wrote:
>>>>
>>>>> I am using the 4.3.1 binary version downloaded from the website. I
>>>>> generated my script starting from the trace as you suggest. Uncommenting
>>>>> the ViewSize on your script works. The fact is that it does not work on
>>>>> mine and i really don't understand why. I guess it is related to the
>>>>> settings of the camera.
>>>>>
>>>>> Have you tried to run my script on your machine? I would expect to
>>>>> have a square image with the data fitted perfectly into it, but as soon as
>>>>> I increase the ViewSize above 855x855, only the horizontal size increases.
>>>>> As you can see from the VTK the source data is 24x24.
>>>>>
>>>>> Thanks
>>>>>
>>>>>
>>>>>
>>>>> On 11 September 2015 at 08:51, Dan Lipsa 
>>>>> wrote:
>>>>>
>>>>>> What version of ParaView do you use? I run the script on a ParaView
>>>>>> source build from git master.
>>>>>>
>>>>>>
>>>>>> You should be able to do Tools / Start Trace, open your file and then
>>>>>> save it to the desired resolution. The script generated should tell you
>>>>>> what settings you need. You might need to uncomment the setting of the
>>>>>> ViewSize. This is what I had to do.
>>>>>>
>>>>>> On Thu, Sep 10, 2015 at 6:41 PM, Ruggiero Guida <
>>>>>> ruggiero.gu...@gmail.com> wrote:
>>>>>>
>>>>>>> Thanks Dan.
>>>>>>>
>>>>>>> The image saved is 648 x 639 (see attached). What I am not
>>>>>>> understanding is the relation between ViewSize, camera settings and 
>>>>>>> actual
>>>>>>> image size in pixels.
>>>>>>>
>>>>>>> I would like to use paraview to render some textures that I will be
>>>>>>> using in my code and I need the image ti fit perfectly the content.
>>>>>>>
>>>>>>> On 10 September 2015 at 23:19, Dan Lipsa 
>>>>>>> wrote:
>>>>>>>
>>>>>>>> Ruggiero,
>>>>>>>> The following script saves a 100x100 sphere.
>>>>>>>> I created it using the trace option in ParaView.
>>>>>>>>
>>>>>>>>
>>>>>>>> On Thu, Sep 10, 2015 at 5:07 AM, Ruggiero Guida <
>>>>>>>> ruggiero.gu...@gmail.com> wrote:
>>>>>>>>
>>>>>>>>> I am trying to create a screenshot of a specific size from a [VTK
>>>>>>>>> file][1].
>>>>>>>>> This is the code I am using
>>>>>>>>>
>>>>>>>>> from paraview.simple import *
>>>>>>>>> paraview.simple._DisableFirstRenderCameraReset()
>>>>>>>>> rad_map = LegacyVTKReader(FileNames=['test.vtk'])
>>>>>>>>>
>>>>>>>>> # get active view
>>>>>>>>> renderView1 = G

Re: [Paraview] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-11 Thread Dan Lipsa
Ruggiero,
Attached is the script I used on ParaView master. It saves a 1000x1000 png.
I had to uncomment renderView1.ViewSize and change the magnification for
SaveScreenshot to 1.

Dan



On Thu, Sep 10, 2015 at 9:38 PM, Ruggiero Guida 
wrote:

> Attached. Thanks for checking.
>
> On 11 September 2015 at 09:34, Dan Lipsa  wrote:
>
>> If you send me your test.vtk I can try to generate the script on my
>> machine.
>>
>> Dan
>>
>>
>> On Thu, Sep 10, 2015 at 9:10 PM, Ruggiero Guida > > wrote:
>>
>>> I am using the 4.3.1 binary version downloaded from the website. I
>>> generated my script starting from the trace as you suggest. Uncommenting
>>> the ViewSize on your script works. The fact is that it does not work on
>>> mine and i really don't understand why. I guess it is related to the
>>> settings of the camera.
>>>
>>> Have you tried to run my script on your machine? I would expect to have
>>> a square image with the data fitted perfectly into it, but as soon as I
>>> increase the ViewSize above 855x855, only the horizontal size increases. As
>>> you can see from the VTK the source data is 24x24.
>>>
>>> Thanks
>>>
>>>
>>>
>>> On 11 September 2015 at 08:51, Dan Lipsa  wrote:
>>>
>>>> What version of ParaView do you use? I run the script on a ParaView
>>>> source build from git master.
>>>>
>>>>
>>>> You should be able to do Tools / Start Trace, open your file and then
>>>> save it to the desired resolution. The script generated should tell you
>>>> what settings you need. You might need to uncomment the setting of the
>>>> ViewSize. This is what I had to do.
>>>>
>>>> On Thu, Sep 10, 2015 at 6:41 PM, Ruggiero Guida <
>>>> ruggiero.gu...@gmail.com> wrote:
>>>>
>>>>> Thanks Dan.
>>>>>
>>>>> The image saved is 648 x 639 (see attached). What I am not
>>>>> understanding is the relation between ViewSize, camera settings and actual
>>>>> image size in pixels.
>>>>>
>>>>> I would like to use paraview to render some textures that I will be
>>>>> using in my code and I need the image ti fit perfectly the content.
>>>>>
>>>>> On 10 September 2015 at 23:19, Dan Lipsa 
>>>>> wrote:
>>>>>
>>>>>> Ruggiero,
>>>>>> The following script saves a 100x100 sphere.
>>>>>> I created it using the trace option in ParaView.
>>>>>>
>>>>>>
>>>>>> On Thu, Sep 10, 2015 at 5:07 AM, Ruggiero Guida <
>>>>>> ruggiero.gu...@gmail.com> wrote:
>>>>>>
>>>>>>> I am trying to create a screenshot of a specific size from a [VTK
>>>>>>> file][1].
>>>>>>> This is the code I am using
>>>>>>>
>>>>>>> from paraview.simple import *
>>>>>>> paraview.simple._DisableFirstRenderCameraReset()
>>>>>>> rad_map = LegacyVTKReader(FileNames=['test.vtk'])
>>>>>>>
>>>>>>> # get active view
>>>>>>> renderView1 = GetActiveViewOrCreate('RenderView')
>>>>>>> dpi = 70
>>>>>>> heigth = 24.39846235421442
>>>>>>> width = 24.398462354214413
>>>>>>> width_p = int(width * dpi)
>>>>>>> heigth_p = int(heigth * dpi)
>>>>>>> renderView1.ViewSize = [width_p, heigth_p]
>>>>>>>
>>>>>>> # reset view to fit data
>>>>>>> #renderView1.ResetCamera()
>>>>>>>
>>>>>>> # current camera placement for renderView1
>>>>>>> renderView1.CameraParallelProjection = 1
>>>>>>> renderView1.CameraPosition = [5, 5, 1000]
>>>>>>> renderView1.CameraFocalPoint = [5, 5, 0.0]
>>>>>>> renderView1.CameraViewUp = [0.0, 1.0, 0.0]
>>>>>>> scale = (heigth) / 2.0
>>>>>>> renderView1.CameraParallelScale = scale
>>>>>>>
>>>>>>> Render()
>>>>>>> SaveScreenshot("/Users/ruggiero/dev/test.png", magnification=1)
>>>>>>>
>>>>>>> The problem is that the `

Re: [Paraview] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-10 Thread Dan Lipsa
If you send me your test.vtk I can try to generate the script on my machine.

Dan


On Thu, Sep 10, 2015 at 9:10 PM, Ruggiero Guida 
wrote:

> I am using the 4.3.1 binary version downloaded from the website. I
> generated my script starting from the trace as you suggest. Uncommenting
> the ViewSize on your script works. The fact is that it does not work on
> mine and i really don't understand why. I guess it is related to the
> settings of the camera.
>
> Have you tried to run my script on your machine? I would expect to have a
> square image with the data fitted perfectly into it, but as soon as I
> increase the ViewSize above 855x855, only the horizontal size increases. As
> you can see from the VTK the source data is 24x24.
>
> Thanks
>
>
>
> On 11 September 2015 at 08:51, Dan Lipsa  wrote:
>
>> What version of ParaView do you use? I run the script on a ParaView
>> source build from git master.
>>
>>
>> You should be able to do Tools / Start Trace, open your file and then
>> save it to the desired resolution. The script generated should tell you
>> what settings you need. You might need to uncomment the setting of the
>> ViewSize. This is what I had to do.
>>
>> On Thu, Sep 10, 2015 at 6:41 PM, Ruggiero Guida > > wrote:
>>
>>> Thanks Dan.
>>>
>>> The image saved is 648 x 639 (see attached). What I am not understanding
>>> is the relation between ViewSize, camera settings and actual image size in
>>> pixels.
>>>
>>> I would like to use paraview to render some textures that I will be
>>> using in my code and I need the image ti fit perfectly the content.
>>>
>>> On 10 September 2015 at 23:19, Dan Lipsa  wrote:
>>>
>>>> Ruggiero,
>>>> The following script saves a 100x100 sphere.
>>>> I created it using the trace option in ParaView.
>>>>
>>>>
>>>> On Thu, Sep 10, 2015 at 5:07 AM, Ruggiero Guida <
>>>> ruggiero.gu...@gmail.com> wrote:
>>>>
>>>>> I am trying to create a screenshot of a specific size from a [VTK
>>>>> file][1].
>>>>> This is the code I am using
>>>>>
>>>>> from paraview.simple import *
>>>>> paraview.simple._DisableFirstRenderCameraReset()
>>>>> rad_map = LegacyVTKReader(FileNames=['test.vtk'])
>>>>>
>>>>> # get active view
>>>>> renderView1 = GetActiveViewOrCreate('RenderView')
>>>>> dpi = 70
>>>>> heigth = 24.39846235421442
>>>>> width = 24.398462354214413
>>>>> width_p = int(width * dpi)
>>>>> heigth_p = int(heigth * dpi)
>>>>> renderView1.ViewSize = [width_p, heigth_p]
>>>>>
>>>>> # reset view to fit data
>>>>> #renderView1.ResetCamera()
>>>>>
>>>>> # current camera placement for renderView1
>>>>> renderView1.CameraParallelProjection = 1
>>>>> renderView1.CameraPosition = [5, 5, 1000]
>>>>> renderView1.CameraFocalPoint = [5, 5, 0.0]
>>>>> renderView1.CameraViewUp = [0.0, 1.0, 0.0]
>>>>> scale = (heigth) / 2.0
>>>>> renderView1.CameraParallelScale = scale
>>>>>
>>>>> Render()
>>>>> SaveScreenshot("/Users/ruggiero/dev/test.png", magnification=1)
>>>>>
>>>>> The problem is that the `ViewSize` seems to be ignored and I keep
>>>>> having images of fixed size 1707 × 855. The height 855 seems to be a kind
>>>>> of limit; the only way to get what I want is to limit the `ViewSize` to
>>>>> 855x855.
>>>>>
>>>>> I have checked [this][2] question and [this][3] question, but with no
>>>>> success.
>>>>>
>>>>> Any idea? I am not very confident in the settings for the camera.
>>>>> Could this be the issue?
>>>>>
>>>>>
>>>>>   [1]: https://dl.dropboxusercontent.com/u/1342856/test.vtk
>>>>>   [2]:
>>>>> http://stackoverflow.com/questions/31930448/in-python-script-for-paraview-can-i-specify-the-resolution-when-i-do-a-savescre
>>>>>   [3]:
>>>>> http://stackoverflow.com/questions/27430588/paraview-python-command-to-save-picture-of-defined-size
>>>>>
>>>>> ___
>>>>> 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] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-10 Thread Dan Lipsa
What version of ParaView do you use? I run the script on a ParaView source
build from git master.


You should be able to do Tools / Start Trace, open your file and then save
it to the desired resolution. The script generated should tell you what
settings you need. You might need to uncomment the setting of the ViewSize.
This is what I had to do.

On Thu, Sep 10, 2015 at 6:41 PM, Ruggiero Guida 
wrote:

> Thanks Dan.
>
> The image saved is 648 x 639 (see attached). What I am not understanding
> is the relation between ViewSize, camera settings and actual image size in
> pixels.
>
> I would like to use paraview to render some textures that I will be using
> in my code and I need the image ti fit perfectly the content.
>
> On 10 September 2015 at 23:19, Dan Lipsa  wrote:
>
>> Ruggiero,
>> The following script saves a 100x100 sphere.
>> I created it using the trace option in ParaView.
>>
>>
>> On Thu, Sep 10, 2015 at 5:07 AM, Ruggiero Guida > > wrote:
>>
>>> I am trying to create a screenshot of a specific size from a [VTK
>>> file][1].
>>> This is the code I am using
>>>
>>> from paraview.simple import *
>>> paraview.simple._DisableFirstRenderCameraReset()
>>> rad_map = LegacyVTKReader(FileNames=['test.vtk'])
>>>
>>> # get active view
>>> renderView1 = GetActiveViewOrCreate('RenderView')
>>> dpi = 70
>>> heigth = 24.39846235421442
>>> width = 24.398462354214413
>>> width_p = int(width * dpi)
>>> heigth_p = int(heigth * dpi)
>>> renderView1.ViewSize = [width_p, heigth_p]
>>>
>>> # reset view to fit data
>>> #renderView1.ResetCamera()
>>>
>>> # current camera placement for renderView1
>>> renderView1.CameraParallelProjection = 1
>>> renderView1.CameraPosition = [5, 5, 1000]
>>> renderView1.CameraFocalPoint = [5, 5, 0.0]
>>> renderView1.CameraViewUp = [0.0, 1.0, 0.0]
>>> scale = (heigth) / 2.0
>>> renderView1.CameraParallelScale = scale
>>>
>>> Render()
>>> SaveScreenshot("/Users/ruggiero/dev/test.png", magnification=1)
>>>
>>> The problem is that the `ViewSize` seems to be ignored and I keep having
>>> images of fixed size 1707 × 855. The height 855 seems to be a kind of
>>> limit; the only way to get what I want is to limit the `ViewSize` to
>>> 855x855.
>>>
>>> I have checked [this][2] question and [this][3] question, but with no
>>> success.
>>>
>>> Any idea? I am not very confident in the settings for the camera. Could
>>> this be the issue?
>>>
>>>
>>>   [1]: https://dl.dropboxusercontent.com/u/1342856/test.vtk
>>>   [2]:
>>> http://stackoverflow.com/questions/31930448/in-python-script-for-paraview-can-i-specify-the-resolution-when-i-do-a-savescre
>>>   [3]:
>>> http://stackoverflow.com/questions/27430588/paraview-python-command-to-save-picture-of-defined-size
>>>
>>> ___
>>> 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] Paraview 4.3.1 Python - Screenshot of specific size and ratio

2015-09-10 Thread Dan Lipsa
Ruggiero,
The following script saves a 100x100 sphere.
I created it using the trace option in ParaView.


On Thu, Sep 10, 2015 at 5:07 AM, Ruggiero Guida 
wrote:

> I am trying to create a screenshot of a specific size from a [VTK file][1].
> This is the code I am using
>
> from paraview.simple import *
> paraview.simple._DisableFirstRenderCameraReset()
> rad_map = LegacyVTKReader(FileNames=['test.vtk'])
>
> # get active view
> renderView1 = GetActiveViewOrCreate('RenderView')
> dpi = 70
> heigth = 24.39846235421442
> width = 24.398462354214413
> width_p = int(width * dpi)
> heigth_p = int(heigth * dpi)
> renderView1.ViewSize = [width_p, heigth_p]
>
> # reset view to fit data
> #renderView1.ResetCamera()
>
> # current camera placement for renderView1
> renderView1.CameraParallelProjection = 1
> renderView1.CameraPosition = [5, 5, 1000]
> renderView1.CameraFocalPoint = [5, 5, 0.0]
> renderView1.CameraViewUp = [0.0, 1.0, 0.0]
> scale = (heigth) / 2.0
> renderView1.CameraParallelScale = scale
>
> Render()
> SaveScreenshot("/Users/ruggiero/dev/test.png", magnification=1)
>
> The problem is that the `ViewSize` seems to be ignored and I keep having
> images of fixed size 1707 × 855. The height 855 seems to be a kind of
> limit; the only way to get what I want is to limit the `ViewSize` to
> 855x855.
>
> I have checked [this][2] question and [this][3] question, but with no
> success.
>
> Any idea? I am not very confident in the settings for the camera. Could
> this be the issue?
>
>
>   [1]: https://dl.dropboxusercontent.com/u/1342856/test.vtk
>   [2]:
> http://stackoverflow.com/questions/31930448/in-python-script-for-paraview-can-i-specify-the-resolution-when-i-do-a-savescre
>   [3]:
> http://stackoverflow.com/questions/27430588/paraview-python-command-to-save-picture-of-defined-size
>
> ___
> 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
>
>
 import the simple module from the paraview
from paraview.simple import *
 disable automatic camera reset on 'Show'
paraview.simple._DisableFirstRenderCameraReset()

# create a new 'Sphere'
sphere1 = Sphere()

# get active view
renderView1 = GetActiveViewOrCreate('RenderView')
# uncomment following to set a specific view size
renderView1.ViewSize = [100, 100]

# show data in view
sphere1Display = Show(sphere1, renderView1)
# trace defaults for the display properties.
sphere1Display.ColorArrayName = [None, '']
sphere1Display.DiffuseColor = [0.0, 0.65, 1.0]

# reset view to fit data
renderView1.ResetCamera()

# current camera placement for renderView1
renderView1.CameraPosition = [0.0, 0.0, 3.2903743041222895]
renderView1.CameraParallelScale = 0.8516115354228021

# save screenshot
SaveScreenshot('/home/danlipsa/Desktop/a.png', magnification=1, quality=100, view=renderView1)

 saving camera placements for all active views

# current camera placement for renderView1
renderView1.CameraPosition = [0.0, 0.0, 3.2903743041222895]
renderView1.CameraParallelScale = 0.8516115354228021

 uncomment the following to render all views
# RenderAllViews()
# alternatively, if you want to write images, you can use SaveScreenshot(...).
___
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] python changes 4.0/4.1 to 4.3?

2015-08-31 Thread Dan Lipsa
Anton,
I think the relevant change in ParaView 4.3 is that it now colors data
resulted from a threshold operation using the default color map. This makes
sense as you may see data with different values within a given threshold.
(this is not the case in your particular case).

This is why your DiffuseColor settings have no effect.
If you want to color you threshold data with a plain color as you have done
in the past you have to add

ColorBy(DataRepresentationX, None) after you set
DataRepresentationx.DifuseColor = ...

Where X is 2, 3 and 4.

Dan





On Tue, Jun 9, 2015 at 2:40 PM, Anton Shterenlikht  wrote:

> There is no error, just instead of the requested colours:
>
> DataRepresentation2.DiffuseColor = [ 1, 0, 1 ]<- purple
> DataRepresentation3.DiffuseColor = [1.0, 1.0, 0.0] <- yellow
> DataRepresentation4.DiffuseColor = [0.0, 1.0, 0.5] <- greenish
>
> I get red and blue.
>
> The colours I had with pv 4.0/4.1 can be seen here:
>  http://eis.bris.ac.uk/~mexas/cgpack/201502res/cr.png
>  http://eis.bris.ac.uk/~mexas/cgpack/201503res/gb.png
>
> The colours I'm getting now with 4.3 (with the same script)
> can be seen here:
>  http://eis.bris.ac.uk/~mexas/cgpack/201506res/cr.png
>  http://eis.bris.ac.uk/~mexas/cgpack/201506res/gb.png
>
> The 2 data files I used are:
>  http://eis.bris.ac.uk/~mexas/zg0.raw
>  http://eis.bris.ac.uk/~mexas/zf5.raw
>
> The files are raw binary, 40MB each.
>
> I might have done something really stupid,
> in which case I apologise for wasting your time.
>
> Thanks for your help
>
> Anton
>
>
> On 09/06/2015, Utkarsh Ayachit  wrote:
> > Anton,
> >
> > DiffuseColor still exists. Can you post the full error message that
> you're
> > getting? If you can share the dataset you're using to test this script,
> > that'll be even better!
> >
> > Utkarsh
> >
> >
> > On Mon, Jun 8, 2015 at 7:39 PM Anton Shterenlikht 
> wrote:
> >
> >> I've a script that used to work ok on 4.0 and 4.1,
> >> but now something is wrong with the colours.
> >> Has anything changed between 4.0/4.1 to 4.3 to make
> >>
> >> DataRepresentation3.DiffuseColor = [1.0, 1.0, 0.0]
> >>
> >> not understood?
> >>
> >>
> >> The full script:
> >>
> >> ##72
> >> # Adjust these parameters
> >> ext1= 220 # data extent along 1
> >> ext2= 220 # data extent along 2
> >> ext3= 220# data extent along 3
> >> ffile   = "zf5.raw" # fracture file
> >> gfile   = "zg0.raw"   # grain file
> >> imsize1 = 1000# size, in pixels, of the resulting image along 1
> >> imsize2 = 1000# size, in pixels, of the resulting image along 2
> >>
> >> # End of adjustable parameters
> >> ##72
> >>
> >> # define the centre of rotation (cor)
> >> cor1 = 0.5 * ext1
> >> cor2 = 0.5 * ext2
> >> cor3 = 0.5 * ext3
> >>
> >> from paraview.simple import *
> >>
> >> # the extents start from zero, so need to lower
> >> # the upper extents by 1
> >> cracks = ImageReader( FilePrefix= ffile )
> >> cracks.DataExtent=[ 0, ext1-1, 0, ext2-1, 0, ext3-1 ]
> >> cracks.DataByteOrder = 'LittleEndian'
> >> cracks.DataScalarType = 'int'
> >>
> >> RenderView1 = GetRenderView()
> >> DataRepresentation1 = Show()
> >>
> >> DataRepresentation1.Representation = 'Outline'
> >> DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5]
> >>
> >> # grain boundaries, cell state 2
> >>
> >> Threshold1 = Threshold()
> >> Threshold1.Scalars = ['POINTS', 'ImageFile']
> >> Threshold1.ThresholdRange = [ 2, 2 ]
> >> Threshold1.AllScalars = 0
> >>
> >> DataRepresentation2 = Show()
> >> DataRepresentation2.ScalarOpacityUnitDistance = 1.0
> >> DataRepresentation2.SelectionPointFieldDataArrayName = 'ImageFile'
> >> DataRepresentation2.DiffuseColor = [ 1, 0, 1 ]
> >>
> >> camera = GetActiveCamera()
> >> camera.SetViewUp(-1,0,0)
> >> camera.Azimuth(30)
> >> camera.Elevation(30)
> >>
> >> RenderView1.ResetCamera()
> >>
> >> # gradient background colour
> >> RenderView1.UseGradientBackground = 1
> >> RenderView1.Background2 = [0.0, 0.0, 0.16470588235294117]
> >> RenderView1.Background = [0.3215686274509804, 0.3411764705882353,
> >> 0.43137254901960786]
> >>
> >> RenderView1.CenterAxesVisibility = 0
> >> RenderView1.OrientationAxesVisibility = 1
> >> RenderView1.CenterOfRotation = [ cor1, cor2, cor3 ]
> >> RenderView1.CameraFocalPoint = [ cor1, cor2, cor3 ]
> >> RenderView1.ViewSize = [ imsize1, imsize2 ]
> >> RenderView1.CameraViewAngle = 30
> >>
> >> # do all crack states from the main dataset
> >> SetActiveSource( cracks )
> >>
> >> # (100) cracks
> >> cracks100 = Threshold()
> >> cracks100.Scalars = ['POINTS', 'ImageFile']
> >> cracks100.ThresholdRange = [ 0, 0 ]
> >> cracks100.AllScalars = 0
> >>
> >> DataRepresentation3 = Show()
> >> DataRepresentation3.ScalarOpacityUnitDistance = 1.0
> >> DataRepresentation3.SelectionPointFieldDataArrayName = 'ImageFile'
> >> DataRepresentation3.DiffuseColor = [1.0, 1.0, 0.0]
> >>
> >> 

Re: [Paraview] Writing a Paraview Reader - Only part of the data available

2015-08-26 Thread Dan Lipsa
James,
Great. I am glad you found the problem.

You set scalar data by
1. create and fill a vtkDataArray
2. dataset->GetPointData()->SetScalars(vtkDataArray*)




On Wed, Aug 26, 2015 at 10:49 AM, James Furness 
wrote:

> Thanks Dan,
>
> I found the problem whilst cleaning up the code to send you a copy. Funny
> how that happens…
>
> It turned out to be an old
>
> int extent[6] = {0, 1, 0, 1, 0, 1};
> outInfo->Set
>  (vtkStreamingDemandDrivenPipeline::WHOLE_EXTENT(), extent, 6);
>
> call in RequestInformation( … ) that was wrongly setting the extent to
> [0,1,0,1,0,1].
>
> Fixing that seemed to fix the problem of only 8 points showing up.
>
> I’ve been looking now at using the vtkRectilinearGrid class, I’ve set the
> X, Y and Z coordinates using the respective
> SetXCoordinates (vtkDataArray *) methods. But I can’t work out from the
> documentation how to enter my scalar data into this grid for use within
> paraview.
>
> Can you offer any advice on this? Or better point me to an example to
> learn from?
>
> Many thanks,
> James
>
> On 25 Aug 2015, at 15:39, Dan Lipsa  wrote:
>
> Hi James,
> I was used to the old style and it kind of made sense with the problem you
> are seeing, but you are right, setDimensions does not seem to be the
> problem.
>
> Is it any way I can get the code and a sample data so that I can run it
> through a debugger. I cannot see anything else in the code.
>
> Dan
>
>
> On Tue, Aug 25, 2015 at 9:20 AM, James Furness 
> wrote:
>
>> Thanks for your advice, however it hasn’t quite solved my problem.
>>
>> You are missing image->SetDimensions() - that may be a reason why your
>> scalar does not have all values.
>>
>>
>> The documentation marks vtkImageData::SetDimensions( ... ) as
>>  depreciated, and instead vtkImageData::SetExtent( ... ) should be used. It
>> remarks that SetDimension is equivalent to SetExtent(0, i-1, 0, j-1, 0,
>> k-1).
>>
>> (( doc page -
>> http://www.vtk.org/doc/nightly/html/classvtkImageData.html#a42bc5faee908c50407e9d9ec97f74238
>>  ))
>>
>> Regardless, I tried using SetDimensions in this way, and resulted in some
>> nasty set-fault crashes. Whilst now 64 elements were found correctly, all
>> passed the first 8 were memory junk. When I use SetExtent( … ) the
>> information print on the image object happily reports dimensions of 4, 4, 4
>> as expected. So it seems this is set by SetExtent( … ).
>>
>> vtkRectilinear grid is like an image data with variable extents and
>> warped grid.
>>
>>
>> I’ll look into this class. It’s possible that I am mangling this reader
>> by trying to shoehorn my problem into an inappropriate class at the moment.
>> Thanks for pointing this out.
>>
>> Many thanks,
>> James
>>
>> On 24 Aug 2015, at 15:31, Dan Lipsa  wrote:
>>
>> James,
>> You are missing image->SetDimensions() - that may be a reason why your
>> scalar does not have all values.
>>
>> vtkRectilinear grid is like an image data with variable extents and
>> warped grid.
>>
>>
>> On Fri, Aug 21, 2015 at 6:55 AM, James Furness 
>> wrote:
>>
>>> Hello,
>>>
>>> I have a program that will produce an output either in csv, or a binary
>>> format (which I have written and can alter).
>>>
>>> The data points are constructed by taking 3 vectors, and stepping at set
>>> intervals along these vectors to construct a 3D set of data. Ultimately
>>> there shouldn’t be a restriction on the three vectors, so the data may not
>>> be in a rectilinear array. But I’m leaving this for now and assuming the
>>> data is constructed from 3 orthogonal Axis aligned vectors to create a
>>> rectilinear structured grid. When I have a better grasp of preview readers
>>> I’ll update the reader to account for this. I guess it would require an
>>> unstructured data type to handle non-orthogonal grids?
>>>
>>> Also, the user is free to select what data they save from the program.
>>> This could be many fields, both vector and scalar quantities. What has been
>>> selected is stored in a header to the file, and known on reading. For my
>>> toy example I save only one scalar quantity.
>>>
>>> I’ve been trying to write a reader for paraview to import the binary
>>> files output. The csv format works ok, but the files can become large and
>>> it is a pain to have to construct the vector quantities from 3 scalars in
>>> each case, I want to avoid the user having to do this work. Another reason

Re: [Paraview] Writing a Paraview Reader - Only part of the data available

2015-08-25 Thread Dan Lipsa
Hi James,
I was used to the old style and it kind of made sense with the problem you
are seeing, but you are right, setDimensions does not seem to be the
problem.

Is it any way I can get the code and a sample data so that I can run it
through a debugger. I cannot see anything else in the code.

Dan


On Tue, Aug 25, 2015 at 9:20 AM, James Furness 
wrote:

> Thanks for your advice, however it hasn’t quite solved my problem.
>
> You are missing image->SetDimensions() - that may be a reason why your
> scalar does not have all values.
>
>
> The documentation marks vtkImageData::SetDimensions( ... ) as
>  depreciated, and instead vtkImageData::SetExtent( ... ) should be used. It
> remarks that SetDimension is equivalent to SetExtent(0, i-1, 0, j-1, 0,
> k-1).
>
> (( doc page -
> http://www.vtk.org/doc/nightly/html/classvtkImageData.html#a42bc5faee908c50407e9d9ec97f74238
>  ))
>
> Regardless, I tried using SetDimensions in this way, and resulted in some
> nasty set-fault crashes. Whilst now 64 elements were found correctly, all
> passed the first 8 were memory junk. When I use SetExtent( … ) the
> information print on the image object happily reports dimensions of 4, 4, 4
> as expected. So it seems this is set by SetExtent( … ).
>
> vtkRectilinear grid is like an image data with variable extents and warped
> grid.
>
>
> I’ll look into this class. It’s possible that I am mangling this reader by
> trying to shoehorn my problem into an inappropriate class at the moment.
> Thanks for pointing this out.
>
> Many thanks,
> James
>
> On 24 Aug 2015, at 15:31, Dan Lipsa  wrote:
>
> James,
> You are missing image->SetDimensions() - that may be a reason why your
> scalar does not have all values.
>
> vtkRectilinear grid is like an image data with variable extents and warped
> grid.
>
>
> On Fri, Aug 21, 2015 at 6:55 AM, James Furness 
> wrote:
>
>> Hello,
>>
>> I have a program that will produce an output either in csv, or a binary
>> format (which I have written and can alter).
>>
>> The data points are constructed by taking 3 vectors, and stepping at set
>> intervals along these vectors to construct a 3D set of data. Ultimately
>> there shouldn’t be a restriction on the three vectors, so the data may not
>> be in a rectilinear array. But I’m leaving this for now and assuming the
>> data is constructed from 3 orthogonal Axis aligned vectors to create a
>> rectilinear structured grid. When I have a better grasp of preview readers
>> I’ll update the reader to account for this. I guess it would require an
>> unstructured data type to handle non-orthogonal grids?
>>
>> Also, the user is free to select what data they save from the program.
>> This could be many fields, both vector and scalar quantities. What has been
>> selected is stored in a header to the file, and known on reading. For my
>> toy example I save only one scalar quantity.
>>
>> I’ve been trying to write a reader for paraview to import the binary
>> files output. The csv format works ok, but the files can become large and
>> it is a pain to have to construct the vector quantities from 3 scalars in
>> each case, I want to avoid the user having to do this work. Another reason
>> for writing a custom reader is to include additional information into the
>> binary file for visualisation (e.g. the position of atoms, not a field
>> quantity).
>>
>> With that background and reasoning I have managed to follow the
>> documentation enough to read a basic test file, get the origin and point
>> spacing, and read a single scalar quantity into a vtkDataArray owned by a
>> vtkImageData object. Paraview picks this up seemingly correctly, with one
>> flaw:
>>
>> It only takes 2 elements from each dimension, 0 and 1 displaying 8
>> elements in total. I am confident it has read the other values correctly as
>> the Information tab reports “X extent 0 to 3” “X range: -1 to 1” (as
>> expected) and similar for the other dimensions. If I view the data in
>> spreadsheet layout the 8 values it has seem correct, but the others are
>> missing.
>>
>> The code I am using in the reader’s RequestData(  ) function is added
>> below.
>>
>> Does anyone know why this may be happening and how to fix it? Also, any
>> advice on how I should structure the reader to handle the non-orthogonal
>> data?
>>
>> Thanks for your time, and thank you for such a stellar program. The
>> results paraview produces for this data is brilliant, hence my want to make
>> it convenient for our users!
>>
>> Regards,
>> James Furness
>>
>>
>> CODE

Re: [Paraview] Writing a Paraview Reader - Only part of the data available

2015-08-24 Thread Dan Lipsa
James,
You are missing image->SetDimensions() - that may be a reason why your
scalar does not have all values.

vtkRectilinear grid is like an image data with variable extents and warped
grid.


On Fri, Aug 21, 2015 at 6:55 AM, James Furness 
wrote:

> Hello,
>
> I have a program that will produce an output either in csv, or a binary
> format (which I have written and can alter).
>
> The data points are constructed by taking 3 vectors, and stepping at set
> intervals along these vectors to construct a 3D set of data. Ultimately
> there shouldn’t be a restriction on the three vectors, so the data may not
> be in a rectilinear array. But I’m leaving this for now and assuming the
> data is constructed from 3 orthogonal Axis aligned vectors to create a
> rectilinear structured grid. When I have a better grasp of preview readers
> I’ll update the reader to account for this. I guess it would require an
> unstructured data type to handle non-orthogonal grids?
>
> Also, the user is free to select what data they save from the program.
> This could be many fields, both vector and scalar quantities. What has been
> selected is stored in a header to the file, and known on reading. For my
> toy example I save only one scalar quantity.
>
> I’ve been trying to write a reader for paraview to import the binary files
> output. The csv format works ok, but the files can become large and it is a
> pain to have to construct the vector quantities from 3 scalars in each
> case, I want to avoid the user having to do this work. Another reason for
> writing a custom reader is to include additional information into the
> binary file for visualisation (e.g. the position of atoms, not a field
> quantity).
>
> With that background and reasoning I have managed to follow the
> documentation enough to read a basic test file, get the origin and point
> spacing, and read a single scalar quantity into a vtkDataArray owned by a
> vtkImageData object. Paraview picks this up seemingly correctly, with one
> flaw:
>
> It only takes 2 elements from each dimension, 0 and 1 displaying 8
> elements in total. I am confident it has read the other values correctly as
> the Information tab reports “X extent 0 to 3” “X range: -1 to 1” (as
> expected) and similar for the other dimensions. If I view the data in
> spreadsheet layout the 8 values it has seem correct, but the others are
> missing.
>
> The code I am using in the reader’s RequestData(  ) function is added
> below.
>
> Does anyone know why this may be happening and how to fix it? Also, any
> advice on how I should structure the reader to handle the non-orthogonal
> data?
>
> Thanks for your time, and thank you for such a stellar program. The
> results paraview produces for this data is brilliant, hence my want to make
> it convenient for our users!
>
> Regards,
> James Furness
>
>
> CODE for RequestData( ) Method:
> ———
>
> int LondonReader::RequestData(
> vtkInformation*,
> vtkInformationVector**,
> vtkInformationVector *outputVector)
> {
> vtkWarningMacro("Requesting the data!");
>
>
> ifstream finp;
> finp.open(this->FileName, ios::in | ios::binary);
>
> if (finp.is_open()) {
> cerr << "File is open without problem!" << endl;
> }   else{
> cerr << "File failed to open :(" << endl;
> return 0;
> }
>
> // size of real numbers may not be 8. Check for this from file header
> int realSize;
> finp.read((char*)&realSize, sizeof(int));
> if(realSize != 8)   {
> cerr << "Not implimented yet!" << endl;
> return 0;
> }
>
> // number of data fields
> int nFields;
> finp.read((char*)&nFields, sizeof(int));
>
> vtkImageData* image = vtkImageData::GetData(outputVector);
>
> // Read the dimensions of the grid and set the extent accordingly
> int gridDim[3];
> finp.read((char*)&gridDim, 3*sizeof(int));
> int extent[6] = {0, gridDim[0]-1, 0, gridDim[1]-1, 0, gridDim[2]-1};
> image->SetExtent(extent);
>
>
> // Read the field names from the file
> std::vector fields;
> std::string strBuf;
> for (int i = 0; i < nFields; i++)   {
> std::getline( finp, strBuf, '\0');
> fields.push_back(strBuf);
> cerr << "Printing Fields (" << i << "): " << fields[i] << endl;
> }
>
> // setup image for only one field for test case
> image->AllocateScalars(VTK_FLOAT, 1);
> vtkDataArray* scalars = image->GetPointData()->GetScalars();
>
> // currently there is only one field 'rho'
> scalars->SetName(fields[3].c_str());
>
> double x, y, z, rho;
> double oX, oY, oZ;  //origin coordinates
> double sX, sY, sZ;  //spacing of points
>
> for (vtkIdType itx = 0; itx < gridDim[0]; itx++){
> for (vtkIdType ity = 0; ity < gridDim[1]; ity++){
> for (vtkIdType itz = 0; itz < gridDim[2]; itz++){
> finp.read((char*)&x, realSize);
> finp

Re: [Paraview] How to change value of index for time

2015-08-24 Thread Dan Lipsa
Denis,
Try renaming the files name-01.vtu, name-02.vtu, ...

On Mon, Aug 24, 2015 at 2:59 AM, denis cohen  wrote:

> Hello,
> I have several vtu files with the same file names.
> I'd like to make a movie of all these files so how can I increment the
> value of index (for time) in these files.
> How can I do that?
>
> Thank you
>
> Denis
>
> ___
> 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] colormaps: white is not really white

2015-08-18 Thread Dan Lipsa
Turn off the checkmark next to "Light Kit" and turn on the one
> next to "Additional Headlight." Your object should look white now.
>

Great tip! I was wondering what this additional light is good for. :-)
___
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] colormaps: white is not really white

2015-08-18 Thread Dan Lipsa
The ivory color comes from OpenGL lighting. The only way to get plain white
is to disable OpenGL lighting - it does not seem to be a way to do this in
ParaView.
This would only make sense if you have a 2D only scene.


On Tue, Aug 18, 2015 at 10:10 AM, Tanaka Simon  wrote:

> Hello,
>
> please see attachment.
>
> for example, i have a colormap which is plain white. but the rendering
> of the values (in the background of the color legend) would always be in
> a dirty ivory.
>
> how can i get a real white rendering?
>
> thanks
> s
>
>
>
>
> ___
> 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] [vtkusers] (no subject)

2015-08-14 Thread Dan Lipsa
Here is the bug I filed for this:

http://www.vtk.org/Bug/view.php?id=15653

On Fri, Aug 7, 2015 at 12:39 PM, Dan Lipsa  wrote:

> Raphael,
> In talking to Dave, it seems that indeed you have found a bug in the
> writer (and in the specification). It does not seem to be a way to save
> field data unless your dataset is of type FIELD (a collection of arrays).
> The arrays attached to POINT_DATA (or CELL_DATA) which are designated as
> FIELD have to have the same number of tuples as the points (or cells). The
> terminology is kind of confusing as well. Would you mind filing a bug
> report. Thanks,
> Dan
>
>
> On Fri, Aug 7, 2015 at 10:16 AM Dan Lipsa  wrote:
>
>> Hi Raphael,
>>
>> On Fri, Aug 7, 2015 at 5:02 AM Schubert, Raphael <
>> raphael.schub...@iwm.fraunhofer.de> wrote:
>>
>>> The way I understand the file format specification it should be illegal
>>> to define a FIELD dataset in addition to, e.g, STRUCTURED_POINTS, as I can
>>> find it neither explicitly allowed (there is only mention of one dataset
>>> per file) nor presented in an example. It therefore seems like an
>>> accidental feature in vtk that I can actually read back the produced files.
>>>
>>
>> A FIELD dataset is a way to specify data without topological or
>> geometrical structure. One can also define FIELD arrays after CELL_DATA or
>> POINT_DATA for a dataset. Look at the first example on page 7. In the
>> CELL_DATA section there is a field arrays.
>>
>>
>>
>>>
___
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] [vtkusers] (no subject)

2015-08-07 Thread Dan Lipsa
Raphael,
In talking to Dave, it seems that indeed you have found a bug in the writer
(and in the specification). It does not seem to be a way to save field data
unless your dataset is of type FIELD (a collection of arrays). The arrays
attached to POINT_DATA (or CELL_DATA) which are designated as FIELD have to
have the same number of tuples as the points (or cells). The terminology is
kind of confusing as well. Would you mind filing a bug report. Thanks,
Dan


On Fri, Aug 7, 2015 at 10:16 AM Dan Lipsa  wrote:

> Hi Raphael,
>
> On Fri, Aug 7, 2015 at 5:02 AM Schubert, Raphael <
> raphael.schub...@iwm.fraunhofer.de> wrote:
>
>> The way I understand the file format specification it should be illegal
>> to define a FIELD dataset in addition to, e.g, STRUCTURED_POINTS, as I can
>> find it neither explicitly allowed (there is only mention of one dataset
>> per file) nor presented in an example. It therefore seems like an
>> accidental feature in vtk that I can actually read back the produced files.
>>
>
> A FIELD dataset is a way to specify data without topological or
> geometrical structure. One can also define FIELD arrays after CELL_DATA or
> POINT_DATA for a dataset. Look at the first example on page 7. In the
> CELL_DATA section there is a field arrays.
>
>
>
>>
___
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] [vtkusers] (no subject)

2015-08-07 Thread Dan Lipsa
Hi Raphael,

On Fri, Aug 7, 2015 at 5:02 AM Schubert, Raphael <
raphael.schub...@iwm.fraunhofer.de> wrote:

> The way I understand the file format specification it should be illegal to
> define a FIELD dataset in addition to, e.g, STRUCTURED_POINTS, as I can
> find it neither explicitly allowed (there is only mention of one dataset
> per file) nor presented in an example. It therefore seems like an
> accidental feature in vtk that I can actually read back the produced files.
>

A FIELD dataset is a way to specify data without topological or geometrical
structure. One can also define FIELD arrays after CELL_DATA or POINT_DATA
for a dataset. Look at the first example on page 7. In the CELL_DATA
section there is a field arrays.



>
___
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] (no subject)

2015-08-06 Thread Dan Lipsa
Raphael,
Indeed, the FIELD definitions have to be after the dataset details
according to:

http://www.vtk.org/wp-content/uploads/2015/04/file-formats.pdf



On Thu, Aug 6, 2015 at 11:14 AM Schubert, Raphael <
raphael.schub...@iwm.fraunhofer.de> wrote:

> I use the following script to generate three vtk files containing
> different dataset types and an additional FIELD.
>
> import numpy as np
> import vtk
> from vtk.util.numpy_support import numpy_to_vtk
>
> for dataset in (vtk.vtkStructuredPoints,
> vtk.vtkRectilinearGrid,
> vtk.vtkPolyData):
>
> vtkData = dataset()
>
> if dataset is vtk.vtkStructuredPoints:
> vtkWriter = vtk.vtkStructuredPointsWriter()
>
> vtkData.SetOrigin(0.0, 0.0, 0.0)
> vtkData.SetSpacing(1.0, 1.0, 1.0)
> vtkData.SetExtent(0, 1, 0, 1, 0, 1)
>
> elif dataset is vtk.vtkPolyData:
> vtkWriter = vtk.vtkPolyDataWriter()
>
> vtkPoints = vtk.vtkPoints()
> vtkPoints.SetData(numpy_to_vtk(np.asarray(
> [[0.0, 0.0, 0.0],
>  [1.0, 0.0, 0.0],
>  [0.0, 1.0, 0.0],
>  [1.0, 1.0, 0.0],
>  [0.0, 0.0, 1.0],
>  [1.0, 0.0, 1.0],
>  [0.0, 1.0, 1.0],
>  [1.0, 1.0, 1.0]])))
> vtkData.SetPoints(vtkPoints)
>
> elif dataset is vtk.vtkRectilinearGrid:
> vtkWriter = vtk.vtkRectilinearGridWriter()
>
> vtkData.SetDimensions(2,2,2)
> vtkData.SetXCoordinates(numpy_to_vtk(np.asarray([0.0, 1.0])))
> vtkData.SetYCoordinates(numpy_to_vtk(np.asarray([0.0, 1.0])))
> vtkData.SetZCoordinates(numpy_to_vtk(np.asarray([0.0, 1.0])))
>
> # file scope definition of Pi
> vtkArray = numpy_to_vtk(np.asarray(3.141).reshape(1,1),deep=1)
> vtkArray.SetName("Pi")
> vtkData.GetFieldData().AddArray(vtkArray)
>
> vtkWriter.SetFileName(str(dataset) + ".vtk")
> vtkWriter.SetHeader("")
> vtkWriter.SetFileTypeToASCII()
>
> vtkWriter.SetInput(vtkData)
> vtkWriter.Write()
>
> /endscript
>
> The files generated from this are
> # vtk DataFile Version 3.0
>
> ASCII
> DATASET POLYDATA
> FIELD FieldData 1
> Pi 1 1 double
> 3.141
> POINTS 8 double
> 0 0 0 1 0 0 0 1 0
> 1 1 0 0 0 1 1 0 1
> 0 1 1 1 1 1
>
> # vtk DataFile Version 3.0
>
> ASCII
> DATASET RECTILINEAR_GRID
> FIELD FieldData 1
> Pi 1 1 double
> 3.141
> DIMENSIONS 2 2 2
> X_COORDINATES 2 double
> 0 1
> Y_COORDINATES 2 double
> 0 1
> Z_COORDINATES 2 double
> 0 1
>
> # vtk DataFile Version 3.0
>
> ASCII
> DATASET STRUCTURED_POINTS
> FIELD FieldData 1
> Pi 1 1 double
> 3.141
> DIMENSIONS 2 2 2
> SPACING 1 1 1
> ORIGIN 0 0 0
>
> Note the FIELD preceding the dataset details. All files can be read back
> into python without problems, but when trying to view each file in using
> Paraview 4.3.1, things get interesting:
>
> - POLYDATA works.
> - RECTILINEAR_GRID produces an error (which, btw, contains a typo),
> refuses to render anything but displays everything correctly in the
> Information tab.
>
> ERROR: In
> /home/kitware/Dashboards/buildbot/paraview-debian4dash-linux-shared-release_qt4_superbuild/source-paraview/VTK/IO/Parallel/vtkPDataSetReader.cxx,
> line 701
> vtkPDataSetReader (0x8874010): Expecting 'DIMENSIONS' insted of: FIELD
>
> - STRUCTURED_POINTS does not produce any errors, still refuses to render
> but displays everything correctly in the Information tab.
>
> If I now (manually) put the FIELDS definition after the dataset details,
> everything works fine.
>
> Is this  problem with Paraview, or am I doing something with the vtk
> format that should not be possible at all? I got the idea from
> http://www.visitusers.org/index.php?title=Time_and_Cycle_in_VTK_files.
>
> Thanks
> Raphael
>
> Software versions:
>
> Paraview 4.3.1 Linux 64bit
>
> Python 2.7.8 |Anaconda 2.1.0 (64-bit)| (default, Aug 21 2014, 18:22:21)
> [GCC 4.4.7 20120313 (Red Hat 4.4.7-1)] on linux2
>
> vtk.vtkVersion().GetVTKVersion()
> '5.10.1'
>
> ___
> 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] How to detect valid read in Programmable filter

2015-08-03 Thread Dan Lipsa
Hi Dennis,
Try
 isinstance(displ, vtk.numpy_interface.dataset_adapter.VTKNoneArray)

Dan


On Mon, Aug 3, 2015 at 4:40 PM Dennis Conklin 
wrote:

> All,
>
>
>
> I want to try to read some point arrays in the Programmable Filter and
> take action based on whether or not the arrays have been loaded into
> Paraview.I am pretty lost in the PF, so take that for what it’s worth.
>
>
>
> If I try something like
>
>
>
> try:
>
>displ=block.PointData[‘DISPL’]
>
>Print displ
>
> except:
>
>Print ‘DISPL read failed’
>
> else:
>
>Print ‘DISPL read succeeded’
>
>
>
> The try never fails – it always prints “DISPL read succeeded, whether I
> actually loaded the DISPL array or not.
>
>
>
> If I print displ, I get an array of values if I loaded the DISPL array
> into Paraview and a vtk.numpy_interface.dataset_adapter.VTKNoneArray object
> if I haven’t loaded the array.
>
>
>
> Not to be too dense, but how do I test to see if I got an array or a
> VTKNoneArray object?
>
>
>
> Thanks
>
>
>
> Dennis
> ___
> 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] Update data after timestep is taken

2015-08-03 Thread Dan Lipsa
Christopher,
See the following wiki page

http://www.paraview.org/Wiki/ParaView/Python/Dealing_with_time


On Mon, Aug 3, 2015 at 8:58 PM Neal,Christopher R  wrote:

> Hi,
>
>
> I have a Python script that opens an ENSIGHT data file that contains cell
> data for several timesteps. I'd like to be able to perform an operation on
> one timestep and then advance to the next timetstep.  I have tried using
> the  GoToNext() method on the animation scene like it shows when I do a
> Python trace of stepping through timesteps, but that isn't working.  It
> looks like it just never updates the cell data to match the data for the
> timesteps that I'm iterating over. I only ever get data for the first
> timestep. I've tried to use the UpdatePipeline() method as well, but it
> didn't fix my issue. Does anyone have experience with iterating over
> timesteps and updating the data set for each timestep?
>
>
> Thank you,
>
>
> Christopher R. Neal
> Graduate Student
> Center for Compressible Multiphase Turbulence
> Mechanical and Aerospace Engineering Department
> University of Florida
> Cell: (863)-697-1958
> E-mail:  chrisn...@ufl.edu
> ___
> 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] Custom animation help? (Corrected image)

2015-07-10 Thread Dan Lipsa
Jesse,
See also the following thread:

http://markmail.org/search/?q=+programmimg+the+camera+position+using+python#query:%20programmimg%20the%20camera%20position%20using%20python+page:1+mid:nkm5rmw2hz52egnk+state:results

On Fri, Jul 10, 2015 at 5:19 PM Cory Quammen 
wrote:

> Hi Jesse,
>
> It should be possible to do this. See Chapter 7 of the ParaView User Guide
> [1] or Section 2.13 or the ParaView Tutorial [2] for more information.
>
> [1] http://www.paraview.org/paraview-guide/
> [2] http://www.paraview.org/Wiki/images/f/f4/ParaViewTutorial42.pdf
>
> HTH,
> Cory
>
> On Mon, Jul 6, 2015 at 8:56 AM, Jesse Samluk  wrote:
>
>> Greetings all,
>>
>>   I sent this message last week, but errantly sent the .tif image which
>> made it a huge file. The JPG is now attached.
>>
>>I’m trying to make an animation in Paraview. I took a stab at it
>> before with Paraview, but I recall it as being tedious. Maybe I can get
>> some pointers from the experts.
>>
>>   So, the attached imaged is a cube view of the electromagnetic response
>> over sea ice. What Im trying to do with this animation is two things:
>>
>>   1.) Move the horizontal slice and Y-Z vertical slice (the slice without
>> the tubes) up and down, and side to side, respectively, such that as if you
>> selected the particular slide in the Pipeline browser, you could drag the
>> slice in question and move it manually to see the different responses.
>> Therefore I’m trying to automate it.
>>
>>   2.) Rotate it about the z-axis 5 degrees (to about 180) at each
>> iteration and return, then rotate it 5 degrees at each iteration about the
>> y-axis (till about 45 degrees) and return. These rotations will occur while
>> “action item" 1 is happening.
>>
>>Any thoughts/suggestions?
>>
>> Thanks!
>> Jesse
>>
>> ___
>> 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
> 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
>
___
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] Visualization error

2015-06-15 Thread Dan Lipsa
Hi Jennifer,
The file for time step 0 does not have Displacement or other point arrays.
If I rename time step 0 to vtu_ I can load the rest of the files fine in
paraview. This is also reflected in the size of the files. The first one is
17MB, the rest around 40MB.
Dan



On Mon, Jun 15, 2015 at 3:52 PM Dan Lipsa  wrote:

> Yes, sure. Send me a link.
>
> On Mon, Jun 15, 2015 at 3:47 PM Jennifer Mary Tarnowski 
> wrote:
>
>> Dan,
>>
>> The files are output from a finite element model and a file for each time
>> step is ~41 MB. My attachment size limit is 25 MB. Could I share it with
>> you through something like GoogleDrive?
>>
>> A cursory glance through the files with a text editor doesn't show any
>> significant differences between the time steps that are good and those that
>> throw the error.
>>
>> On Mon, Jun 15, 2015 at 11:48 AM, Dan Lipsa 
>> wrote:
>>
>>> Jennifer,
>>> It is quite possible that the files for time steps 0-2 specify a certain
>>> number of elements in the data array but the data array itself has fewer
>>> elements. You can see this by opening the file with a text editor. Can you
>>> share the file that produces the error?
>>>
>>> So the bug could be in program that writes those files.
>>> Dan
>>>
>>>
>>> On Sun, Jun 14, 2015 at 7:23 PM Jennifer Mary Tarnowski <
>>> jtarn...@ucr.edu> wrote:
>>>
>>>> Hi,
>>>>
>>>> I'm receiving the following error when I try to visualize data that is
>>>> saved in 10 time steps.
>>>>
>>>> ERROR: In
>>>> /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-Python27/paraview/src/paraview/VTK/IO/XML/vtkXMLDataReader.cxx,
>>>> line 434
>>>>
>>>> vtkXMLUnstructuredGridReader (0x7faff494d5c0): Cannot read point data
>>>> array "Displacement" from PointData in piece 0. The data array in the
>>>> element may be too short.
>>>>
>>>>
>>>>  After about the 4th time step, I stop receiving the error and things
>>>> like displacement, stress, etc. display properly.  Is this a bug in
>>>> ParaView or is there something I need to change in my settings somewhere to
>>>> allow visualization of the first 3 time steps?
>>>>
>>>>
>>>> Thanks,
>>>>
>>>>
>>>> Jennifer
>>>> ___
>>>> 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] Visualization error

2015-06-15 Thread Dan Lipsa
Yes, sure. Send me a link.

On Mon, Jun 15, 2015 at 3:47 PM Jennifer Mary Tarnowski 
wrote:

> Dan,
>
> The files are output from a finite element model and a file for each time
> step is ~41 MB. My attachment size limit is 25 MB. Could I share it with
> you through something like GoogleDrive?
>
> A cursory glance through the files with a text editor doesn't show any
> significant differences between the time steps that are good and those that
> throw the error.
>
> On Mon, Jun 15, 2015 at 11:48 AM, Dan Lipsa  wrote:
>
>> Jennifer,
>> It is quite possible that the files for time steps 0-2 specify a certain
>> number of elements in the data array but the data array itself has fewer
>> elements. You can see this by opening the file with a text editor. Can you
>> share the file that produces the error?
>>
>> So the bug could be in program that writes those files.
>> Dan
>>
>>
>> On Sun, Jun 14, 2015 at 7:23 PM Jennifer Mary Tarnowski 
>> wrote:
>>
>>> Hi,
>>>
>>> I'm receiving the following error when I try to visualize data that is
>>> saved in 10 time steps.
>>>
>>> ERROR: In
>>> /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-Python27/paraview/src/paraview/VTK/IO/XML/vtkXMLDataReader.cxx,
>>> line 434
>>>
>>> vtkXMLUnstructuredGridReader (0x7faff494d5c0): Cannot read point data
>>> array "Displacement" from PointData in piece 0. The data array in the
>>> element may be too short.
>>>
>>>
>>>  After about the 4th time step, I stop receiving the error and things
>>> like displacement, stress, etc. display properly.  Is this a bug in
>>> ParaView or is there something I need to change in my settings somewhere to
>>> allow visualization of the first 3 time steps?
>>>
>>>
>>> Thanks,
>>>
>>>
>>> Jennifer
>>> ___
>>> 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] Visualization error

2015-06-15 Thread Dan Lipsa
Jennifer,
It is quite possible that the files for time steps 0-2 specify a certain
number of elements in the data array but the data array itself has fewer
elements. You can see this by opening the file with a text editor. Can you
share the file that produces the error?

So the bug could be in program that writes those files.
Dan


On Sun, Jun 14, 2015 at 7:23 PM Jennifer Mary Tarnowski 
wrote:

> Hi,
>
> I'm receiving the following error when I try to visualize data that is
> saved in 10 time steps.
>
> ERROR: In
> /Users/kitware/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release-Python27/paraview/src/paraview/VTK/IO/XML/vtkXMLDataReader.cxx,
> line 434
>
> vtkXMLUnstructuredGridReader (0x7faff494d5c0): Cannot read point data
> array "Displacement" from PointData in piece 0. The data array in the
> element may be too short.
>
>
>  After about the 4th time step, I stop receiving the error and things like
> displacement, stress, etc. display properly.  Is this a bug in ParaView or
> is there something I need to change in my settings somewhere to allow
> visualization of the first 3 time steps?
>
>
> Thanks,
>
>
> Jennifer
> ___
> 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] Filters in paraview

2015-06-12 Thread Dan Lipsa
Also checkout ParaView Tutorial
http://www.paraview.org/tutorials/

ParaView Catalyst user guide has a section on VTK datatypes (section 3.3)
http://www.paraview.org/files/catalyst/docs/ParaViewCatalystUsersGuide_v2.pdf

For a comprehensive study of VTK and visualization check out
VTK User's Guide and/or The Visualization Toolkit. These are printed books.

Dan


On Fri, Jun 12, 2015 at 10:23 AM Vishnubharathi T 
wrote:

> Dear Paraviewer's,
>
> Learning paraview by following paraview-guide(
> http://www.paraview.org/paraview-guide/).   I understood how to follow
> and implement a filter. But, I didnt understood the following below.
> Please could you help me in this regard. I searched many places in internet
> but couldnt find answers for these nor I could find tutorial videos for
> this.
>
>
> 1. I have been going through filters in paraview.   I counldnt understand
> the Data arrays namely *points, cells, field data arrays.*
>
> 1.2  What is meant by Dataset in paraview(few examples for data set?)
>
> 2.Partial arrays- What is meant by this? couldnt get what that meant.
> (practical example for partial array data set)
>
> 3. Mapping Data-  How it affects the cell normals time line gap?  any
> example for this?
>
> 4. Calculator Filter: When can we use it & whats the function of this
> filter?
>   Below are the terms I saw in properties tab of Calculator
> Filter: What if refers  to?
> 1.  Scalars & Vectors in Property option
> 2. Attribute mode:  Point data,  cell data
>
> [Example for above will be helpful in learning, In pdf I see how to use
> it, but what its actual meaning I couldnt understand]
>
> 5.Plot over Line Filter:  Requiremnt- we need arrays and attribute type to
> use this.  what is meant by *arrays here*. I know arrays as a parameter
> holding large values, but can  you give me an example here.
>
> 6.Extract subset Filter  & Append Dataset Filter:   for both these, I can
> implement by following tutorial pdf. What it actually does I couldnt
> understand. Please  help in this.
>
> 7.Threshold Filter:  For this we selects scalars and specify range.Can
> you give me some practical example to understand?
>  Datatype used: Point data & cell data( example for these data types)
>
> 8.What are seed points?  what are Point Cloud & Line source?  These I
> could see in Stream Trace Filter(checked the pdf and dist_out_ref.ex2 file)
> but couldnt  understand what that disk_out_ref.ex2 file actually is?
>
> PS: share any material/source for the above points.
>
> Previously referred sites:
>
> http://www.paraview.org/paraview-guide/
>
> http://www.paraview.org/Wiki/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] paraview for a "new" application

2015-06-07 Thread Dan Lipsa
You are right, ParaView does not read hdf5 directly but rather hdf5 based
formats (hdf5 + additional info):  both netcdf and xdmf have readers.
You can get a list of all readers supported by your ParaView installation
using Help in ParaView. Additional readers can be enabled with
compile time options.

You can write Xdmf data using vtkXdmfWriter or vtkXdm3Writer (you'll have
to link with the VTK library). These writers have tests which is a good way
to see an example of how to use the class. You can also take a look at the
VTK XML based formats: vtkXMLPolyDataWriter, vtkXMLImageDataWriter,
vtkXMLUnstructuredGridWriter/Reader. Probably you could write data with a
library that comes with that format and then read it with ParaView.

Do you need parallel writing/reading?

Dan




On Sun, Jun 7, 2015 at 4:26 AM Paul Anton Letnes  wrote:

> Hi Dan!
>
> I’m familiar with the HDF5 library and documentation, but thanks anyway
> for the link.
>
> I don’t see how I can have ParaView read and understand HDF5 files. That
> is, there are several readers (e.g. H5Nimrod) that use HDF5 as the
> underlying format, but I don’t see how to get paraview to understand which
> arrays are coordinates (nodes?), which are results, etc. for my application.
>
> Perhaps I should stress again that I have limited experience with
> ParaView, and since the supported file formats and possibilities seem
> endless, I have trouble getting an overview of sensible choices.
>
> My preference for hdf5 is partly due to other software in my organization
> supporting this format, and my own familiarity with it.
>
> Paul
>
> > On 7. jun. 2015, at 04.07, Dan Lipsa  wrote:
> >
> > Hi Paul,
> > Indeed #2 makes sense, especially if you want to change the in-house
> format. To write the file (from the simulation) it seems to me you should
> checkout
> >
> > https://www.hdfgroup.org/HDF5/doc/fortran/index.html
> >
> > I don't see why ParaView would be used in that process. Am I missing
> something?
> > Dan
> >
> >
> >
> > On Sat, Jun 6, 2015 at 8:04 AM Paul Anton Letnes  wrote:
> > Hi, fellow paraviewers!
> >
> > I’ve spent some time playing with tutorials and user manuals, and so far
> I’m impressed with what paraview can do.
> >
> > I am working on a specialized structural engineering program that,
> mainly, performs simulations of pipes with circular cross sections. Each
> pipe is split into nodes and 1D elements, and results are reported at
> points (or, less commonly, elements) along the pipe.
> >
> > Some results are reported once per cross section; e.g, the tension in
> the pipe has a single value for the entire cross section. Other results,
> e.g. plastic strain, is reported for a number of points along the
> circumference of the pipe (say, 5-50 points), for each of the cross
> sections. The results can be either “snapshots” or time series.
> >
> > After what I’ve seen from the paraview documentation, possible
> approaches include:
> > 1. Create a paraview plugin to read our current in-house file format.
> > 2. Directly write output files in an already supported format.
> > 3. Write pvpython scripts that perform the conversion on the fly.
> >
> > Approach 1 is probably a lot of work and the file format is not of
> interest to anyone else (optimally, I’d like to replace it), so this seems
> less attractive. Approach 3 is probably less user-friendly for our users.
> >
> > The second approach seems sensible, but the paraview documentation does
> not give many examples of how to do this. Optimally, I’d like to write a
> hdf5-based format (xdmf? netcdf? raw hdf5?) directly from Fortran, but I
> haven’t found documentation on how to do this. Using hdf5 seems attractive
> as it’s so widely supported by e.g. matlab, python, and other
> postprocessing tools used in the industry. Getting a single results
> database would simplify a lot of workflows!
> >
> > What would you guys do?
> >
> > Cheers
> > Paul
> > ___
> > 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] paraview for a "new" application

2015-06-06 Thread Dan Lipsa
Hi Paul,
Indeed #2 makes sense, especially if you want to change the in-house
format. To write the file (from the simulation) it seems to me you should
checkout

https://www.hdfgroup.org/HDF5/doc/fortran/index.html

I don't see why ParaView would be used in that process. Am I missing
something?
Dan



On Sat, Jun 6, 2015 at 8:04 AM Paul Anton Letnes  wrote:

> Hi, fellow paraviewers!
>
> I’ve spent some time playing with tutorials and user manuals, and so far
> I’m impressed with what paraview can do.
>
> I am working on a specialized structural engineering program that, mainly,
> performs simulations of pipes with circular cross sections. Each pipe is
> split into nodes and 1D elements, and results are reported at points (or,
> less commonly, elements) along the pipe.
>
> Some results are reported once per cross section; e.g, the tension in the
> pipe has a single value for the entire cross section. Other results, e.g.
> plastic strain, is reported for a number of points along the circumference
> of the pipe (say, 5-50 points), for each of the cross sections. The results
> can be either “snapshots” or time series.
>
> After what I’ve seen from the paraview documentation, possible approaches
> include:
> 1. Create a paraview plugin to read our current in-house file format.
> 2. Directly write output files in an already supported format.
> 3. Write pvpython scripts that perform the conversion on the fly.
>
> Approach 1 is probably a lot of work and the file format is not of
> interest to anyone else (optimally, I’d like to replace it), so this seems
> less attractive. Approach 3 is probably less user-friendly for our users.
>
> The second approach seems sensible, but the paraview documentation does
> not give many examples of how to do this. Optimally, I’d like to write a
> hdf5-based format (xdmf? netcdf? raw hdf5?) directly from Fortran, but I
> haven’t found documentation on how to do this. Using hdf5 seems attractive
> as it’s so widely supported by e.g. matlab, python, and other
> postprocessing tools used in the industry. Getting a single results
> database would simplify a lot of workflows!
>
> What would you guys do?
>
> Cheers
> Paul
> ___
> 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] Latex preamble (bold math ) in paraview

2015-06-01 Thread Dan Lipsa
\mathbf also works.

See
http://tex.stackexchange.com/questions/595/how-can-i-get-bold-math-symbols
second answer.

On Mon, Jun 1, 2015 at 10:15 AM, Dan Lipsa  wrote:

> Try using \bf instead of \bm.
>
> On Mon, Jun 1, 2015 at 10:06 AM, Raj Kumar Manna  > wrote:
>
>> In paraview text, ${x/a}$ gives the latex font but $\bm{x/a}$ does not
>> work. Whereas in matplotlib we can set the latex preamble like I mentioned.
>>
>> Raj
>>
>> On Mon, Jun 1, 2015 at 7:14 PM, Dan Lipsa  wrote:
>>
>>> Does this help?
>>>
>>> http://www.kitware.com/blog/home/post/509
>>>
>>>
>>> On Mon, Jun 1, 2015 at 4:48 AM, Raj Kumar Manna <
>>> rajphysics@gmail.com> wrote:
>>>
>>>> Hi,
>>>>
>>>> I want to use bold math like $\bm{x/a}$ in Paraview text. Is it
>>>> possible to inclue latex preamble like we do in matplotlib
>>>>
>>>> plt.rc('text', usetex=True)
>>>> plt.rcParams['text.latex.preamble']=[r"\usepackage{bm}"]
>>>>
>>>>
>>>> Is there any other way to include bold math?
>>>>
>>>> Thanks
>>>> Raj
>>>>
>>>>
>>>> --
>>>> ##
>>>> Raj Kumar Manna
>>>> Complex Fluid & Biological Physics Lab
>>>> IIT Madras
>>>>
>>>> Ph. No. 8144637401
>>>>
>>>> alternate email: r...@physics.iitm.ac.in 
>>>> 
>>>>
>>>> ___
>>>> 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
>>>>
>>>>
>>>
>>
>>
>> --
>> ##
>> Raj Kumar Manna
>> Complex Fluid & Biological Physics Lab
>> IIT Madras
>>
>> Ph. No. 8144637401
>>
>> alternate email: r...@physics.iitm.ac.in 
>> 
>>
>
>
___
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] Latex preamble (bold math ) in paraview

2015-06-01 Thread Dan Lipsa
Try using \bf instead of \bm.

On Mon, Jun 1, 2015 at 10:06 AM, Raj Kumar Manna 
wrote:

> In paraview text, ${x/a}$ gives the latex font but $\bm{x/a}$ does not
> work. Whereas in matplotlib we can set the latex preamble like I mentioned.
>
> Raj
>
> On Mon, Jun 1, 2015 at 7:14 PM, Dan Lipsa  wrote:
>
>> Does this help?
>>
>> http://www.kitware.com/blog/home/post/509
>>
>>
>> On Mon, Jun 1, 2015 at 4:48 AM, Raj Kumar Manna > > wrote:
>>
>>> Hi,
>>>
>>> I want to use bold math like $\bm{x/a}$ in Paraview text. Is it possible
>>> to inclue latex preamble like we do in matplotlib
>>>
>>> plt.rc('text', usetex=True)
>>> plt.rcParams['text.latex.preamble']=[r"\usepackage{bm}"]
>>>
>>>
>>> Is there any other way to include bold math?
>>>
>>> Thanks
>>> Raj
>>>
>>>
>>> --
>>> ##
>>> Raj Kumar Manna
>>> Complex Fluid & Biological Physics Lab
>>> IIT Madras
>>>
>>> Ph. No. 8144637401
>>>
>>> alternate email: r...@physics.iitm.ac.in 
>>> 
>>>
>>> ___
>>> 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
>>>
>>>
>>
>
>
> --
> ##
> Raj Kumar Manna
> Complex Fluid & Biological Physics Lab
> IIT Madras
>
> Ph. No. 8144637401
>
> alternate email: r...@physics.iitm.ac.in 
> 
>
___
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] Latex preamble (bold math ) in paraview

2015-06-01 Thread Dan Lipsa
Does this help?

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


On Mon, Jun 1, 2015 at 4:48 AM, Raj Kumar Manna 
wrote:

> Hi,
>
> I want to use bold math like $\bm{x/a}$ in Paraview text. Is it possible
> to inclue latex preamble like we do in matplotlib
>
> plt.rc('text', usetex=True)
> plt.rcParams['text.latex.preamble']=[r"\usepackage{bm}"]
>
>
> Is there any other way to include bold math?
>
> Thanks
> Raj
>
>
> --
> ##
> Raj Kumar Manna
> Complex Fluid & Biological Physics Lab
> IIT Madras
>
> Ph. No. 8144637401
>
> alternate email: r...@physics.iitm.ac.in 
> 
>
> ___
> 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] Utilizing ParaView Server

2015-05-27 Thread Dan Lipsa
On Wed, May 27, 2015 at 5:49 PM, Dean, Kevin <
kevin.d...@decisionsciencescorp.com> wrote:

> Hey what's up?
>
> I have a couple questions about using ParaView server?
>
> 1. I have figured out how to connect to the localhost as an example. I am
> trying to understand/figure out how paraview can actually update live
> images once data is being published to whatever port is specified? Is there
> any documentation that you can lead me to? I'd appreciate it.
>

Not sure I understand your question. Data generation or reading and data
processing happens on the server and images (or open gl commands) are sent
back to the client.
For documentation check out:

http://www.paraview.org/paraview-guide/


> 2. Also, I have to deal with CoreDX DDS socket communication. Is there any
> support with that from ParaView or is there a way to create a plugin that
> can manipulate the "middleground" between my  types and paraview's types
> over the server?
>

I am not familiar with CoreDX DDS.
ParaView uses TCP sockets and MPI. You can re-implement a few classes make
ParaView use any communication protocol.


> Thanks again Guys!
>
> Kevin E. Dean
>
> This email and its contents are confidential. If you are not the intended
> recipient, please do not disclose or use the information within this email
> or its attachments. If you have received this email in error, please report
> the error to the sender by return email and delete this communication from
> your records.
> ___
> 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] PV 4.1.0 programmimg the camera position using python

2015-05-26 Thread Dan Lipsa
Stephen,
Here is another cool feature added recently (thanks Utkarsh for the tip)
that allows one to add a custom Python animation to time-dependent data:
Open the animation view:

View > Animation View
Next to the + sign, choose Python and then click +
Double-click on the timeline to the right of Pyton.

You'll get a skeleton script that you can fill in. Here is a sample script
that just moves the
camera closer and father from the data.

from paraview.simple import *

from math import *


def start_cue(self):

self.camera = GetActiveView().GetActiveCamera()

self.start = 0

pass


def tick(self):

self.camera.Dolly(1 + sin(self.start * pi / 6) / 2)

self.start = self.start + 1

pass


def end_cue(self): pass




On Sun, May 24, 2015 at 5:27 PM, Christopher Snyder <22csny...@gmail.com>
wrote:

> Steven,
>
> Not sure if your question has been answered. Why not try turning on the
> trace (tools>trace) then moving the camera, then turning off the trace? I
> think that'll get you want you want and is a generally helpful technique.
>
> -Chris
>
> On Fri, May 22, 2015 at 12:40 PM, Dan Lipsa  wrote:
>
>> Stephen,
>>
>> See ParaView User Guide section 4.4.3, section Interactions.
>>
>> Dan
>>
>>
>> On Fri, May 22, 2015 at 12:06 PM, Stephen Wornom > > wrote:
>>
>>> Are there some examples available showing how to programming the camera
>>> position using python?
>>> The position would be a function (x,y,z,t).
>>> Hope my question is clear.
>>> Stephen
>>>
>>> --
>>> stephen.wor...@inria.fr
>>> 2004 route des lucioles - BP93
>>> Sophia Antipolis
>>> 06902 CEDEX
>>>
>>> Tel: 04 92 38 50 54
>>> Fax: 04 97 15 53 51
>>>
>>>
>>> ___
>>> 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] Number of cells don't match error

2015-05-25 Thread Dan Lipsa
Your grid has 2x2x2 points which means it has 1x1x1 cells.
You'll need 3x3x3 points to get 2x2x2 cells.

Dan


On Sun, May 24, 2015 at 3:18 PM, Dmitry Grebennikov 
wrote:

>  Hello!
>
> What I want to be displayed as an illustration of LUT usage is the cube
> composed of 8 multicolored cubes...
> Could you please explain me the following error, which I get trying to
> load the corresponding vtk file?
>
> > ERROR: In
> /home/coincoin/build/paraview/src/ParaView-v4.3.1-source/VTK/IO/Legacy/vtkStructuredGridReader.cxx,
> line 285
> > vtkStructuredGridReader (0x4d0f700): Number of cells don't match!
>
> The file in ASCII format is the following:
>
> # vtk DataFile Version 2.0
> header
> ASCII
> DATASET STRUCTURED_GRID
> DIMENSIONS 2 2 2
> POINTS 8 int
> 0 0 0
> 1 0 0
> 0 1 0
> 1 1 0
> 0 0 1
> 1 0 1
> 0 1 1
> 1 1 1
> CELL_DATA 8
> SCALARS scalars int 1
> LOOKUP_TABLE mytable
> 1 2 3 4 5 6 7 8
> LOOKUP_TABLE mytable 8
> 0 0 0 1
> 1 0 0 1
> 0 1 0 1
> 1 1 0 1
> 0 0 1 1
> 1 0 1 1
> 0 1 1 1
> 1 1 1 1
>
> Thank you in advance!
>
> Dmitry Grebennikov
>
> ___
> 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] PV 4.1.0 programmimg the camera position using python

2015-05-22 Thread Dan Lipsa
Stephen,

See ParaView User Guide section 4.4.3, section Interactions.

Dan


On Fri, May 22, 2015 at 12:06 PM, Stephen Wornom 
wrote:

> Are there some examples available showing how to programming the camera
> position using python?
> The position would be a function (x,y,z,t).
> Hope my question is clear.
> Stephen
>
> --
> stephen.wor...@inria.fr
> 2004 route des lucioles - BP93
> Sophia Antipolis
> 06902 CEDEX
>
> Tel: 04 92 38 50 54
> Fax: 04 97 15 53 51
>
>
> ___
> 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] Ghost and Blanking (Visibility) Changes

2015-04-02 Thread Dan Lipsa
Dear VTK and ParaView developers,
We would like to draw your attention to the following updates to
VTK/ParaView that change the way one interfaces to Ghost and Blanking cells
and points.

These changes have just been merged into master repositories for
VTK/ParaView.

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

We welcome suggestions and/or bug reports on these changes.

Best regards,
Dan
___
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] vtkBlockColors legend should show correct sideset IDs

2015-03-12 Thread Dan Lipsa
Hi  Ondřej,

On Tue, Mar 10, 2015 at 4:59 PM, Ondřej Čertík 
wrote:

> Hi,
>
> I am testing the new vtkBlockColors feature in the latest Paraview (I
> am using 0a4ad038370beb6d30f51f43e32555b3adcea123), as introduced in
> the blog post: http://www.kitware.com/blog/home/post/859
>
> Currently the legend shows colors with numbers 0-6. However, many
> times the sidesets in an ExodusII file are not labeled like that. I am
> attaching a screenshot with an example. As you can see, both the
> Properties as well as Multi-block Inspector shows the correct side set
> ID numbers (1, 5, 10, 15), but the vtkBlockColors legend shows numbers
> 0-6.
>
> Note that if I color by vtkCompositeIndex, the legend shows the
> correct side set ID, but the problem is that it's a continuous legend,
> and the colors are close to each other, so it's hard (essentially
> impossible) to tell what the ID is from the color.
>

Could you set 'Interpret Values as Categories' in the Color Map Editor?
Than, in the Annotations panel press 'Add active values from Selected
Source' and
then 'Choose preset' to to desired color palette.



>
> I understand the user case when there is thousands of blocks. But I
> think there is also a use case when there is relatively few (~10)
> boundary conditions, and you just want to see them all at once using a
> legend, so that you can take a screenshot and send it to somebody.
> Maybe there can be some check-box that would switch the two modes of
> the legend.


See the previous suggestion. I think that will give you the desired result.


>
> Currently the best way seems to be to use vtkBlockColors, and then
> send a screenshot that includes the Multi-block Inspector window,
> which also shows the colors and proper IDs.
>
> There is also the issue of Block ID versus Side Set ID (as a side set
> can have the same id as a block set), I usually turn one or the other
> off in Multi-block Inspector, then they are not mixed.
>

Indeed, the ID we use is the index resulted from traversing the block tree.

Dan
___
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] Fwd: Catalyst simple test

2015-02-20 Thread Dan Lipsa
I am glad you made it work. Indeed using python would be a lot easier.

Dan


On Fri, Feb 20, 2015 at 7:25 AM, Felipe Bordeu 
wrote:

>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi,
>
> I make it work but using the python interface(vtkCPPythonScriptPipeline).
> I think for my case is easier to build pipelines with the Catalyst plugin
> for paraview. And anyway my paraview is already compiled with python.
>
> Thanks to all for this great feature.
>
> Felipe
>
>
> Le 18/02/2015 16:18, Dan Lipsa a écrit :
> > Hi Felipe,
> > I'll try to take a look at it today.
> >
> > Dan
> >
> >
> > On Wed, Feb 18, 2015 at 9:58 AM, Felipe Bordeu <
> felipe.bor...@ec-nantes.fr <mailto:felipe.bor...@ec-nantes.fr>
> > wrote:
> >
> >
> > Hi Dan,
> >
> > Yes I already saw the post, but is with python. I just want to send my
> data to paraview.
> >
> > I translated the related code for the live visu from python to c++. But
> I still missing something.
> >
> > Can some one look at the code (attached). It is a very simple adaptor
> with a very simple vtkCPVTKPipeline.
> >
> > The thing is I don't understand the way the vtkLiveInsituLink class know
> about the vtkPBTrivialProducer.
> >
> > Thanks to all.
> >
> > Felipe
> >
> >
> > Le 17/02/2015 21:43, Dan Lipsa a écrit :
> > > (just a forward of my previous response to the list)
> >
> > > -- Forwarded message --
> > > From: *Dan Lipsa*  <mailto:dan.li...@kitware.com> 
> <mailto:dan.li...@kitware.com> 
> <mailto:dan.li...@kitware.com> >
> > > Date: Tue, Feb 17, 2015 at 12:19 PM
> > > Subject: Re: [Paraview] Catalyst simple test
> > > To: Felipe Bordeu  <mailto:felipe.bor...@ec-nantes.fr> 
> <mailto:felipe.bor...@ec-nantes.fr> 
> <mailto:felipe.bor...@ec-nantes.fr> >
> >
> >
> > > Hi Felipe,
> > > Have you seen: http://www.kitware.com/blog/home/post/722?
> >
> > > This blog post shows you how to setup a live connection and describe a
> simple pipeline using python.
> > > The pipeline was generated from Tools/Manage Plugins, Catalyst Script
> Generator Plugin, Load Selected. Then you can build your pipeline and
> export it using CoProcessing, Export State.
> >
> > > We don't have an example with only C++.
> > > Setting up the visualization pipeline as well as the connection to
> catalyst live, while possible, is more involved in C++.
> > > Basically, you'll have write in C++ some of the code in simple.py and
> coprocessing.py.
> >
> > > In your specific case, maybe you are missing the calls to
> >
> > > coprocessor.DoLiveVisualization(datadescription, "localhost", 2)
> >
> > > or
> > > coprocessor.EnableLiveVisualization(True, 1)
> >
> > > These are lines from the python coprocessing script that you'll have
> to rewrite in C++.
> >
> > > Dan
> >
> >
> > > On Tue, Feb 17, 2015 at 10:54 AM, Felipe Bordeu <
> felipe.bor...@ec-nantes.fr <mailto:felipe.bor...@ec-nantes.fr>
>  <mailto:felipe.bor...@ec-nantes.fr>
>  <mailto:felipe.bor...@ec-nantes.fr>
> > wrote:
> >
> >
> > > Hi everybody,
> >
> > > I 'm trying to connect  my simulation code (a dummy simulation code for
> > > the moment) to paraview using Catalyst to do live visualization. Just
> > > make a mesh (2D structured, with 1 field), and send it to paraview
> > > without python. But I something is not working. The code runs, I can
> > > connect to paraview, pause the simulation but unable to sent the data
> > > for the visualization.
> >
> > > So I'm doing this : for initialization
> >
> > > create a vtkCPProcessor object and call Initialize();
> > > create a vtkCPPipeline derived object class and added to the processor
> (
> > > Processor->AddPipeline(pipeline.GetPointer());  ) .
> > > (why do I need a Pipeline if I'm going to send my raw data (in vtk
> > > format of course) to paraview?)
> > > in the CoProcess( vtkCPDataDescription* dataDescription) member
> function
> > > the only relevant lines are :
> > >   vtkNew producer;
> > >   vtkImageData* grid =
> > >
> vtkImageData::SafeDownCast(dataDescription->GetInputDescriptionByName("input")->GetGrid());
> > >producer->SetOutput(grid,dataDescription->GetTime());
> >
> > &

Re: [Paraview] Fwd: Catalyst simple test

2015-02-18 Thread Dan Lipsa
Hi Felipe,
I'll try to take a look at it today.

Dan


On Wed, Feb 18, 2015 at 9:58 AM, Felipe Bordeu 
wrote:

>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi Dan,
>
> Yes I already saw the post, but is with python. I just want to send my
> data to paraview.
>
> I translated the related code for the live visu from python to c++. But I
> still missing something.
>
> Can some one look at the code (attached). It is a very simple adaptor with
> a very simple vtkCPVTKPipeline.
>
> The thing is I don't understand the way the vtkLiveInsituLink class know
> about the vtkPBTrivialProducer.
>
> Thanks to all.
>
> Felipe
>
>
> Le 17/02/2015 21:43, Dan Lipsa a écrit :
> > (just a forward of my previous response to the list)
> >
> > -- Forwarded message --
> > From: *Dan Lipsa* mailto:dan.li...@kitware.com>
> >
> > Date: Tue, Feb 17, 2015 at 12:19 PM
> > Subject: Re: [Paraview] Catalyst simple test
> > To: Felipe Bordeu  <mailto:felipe.bor...@ec-nantes.fr> >
> >
> >
> > Hi Felipe,
> > Have you seen: http://www.kitware.com/blog/home/post/722?
> >
> > This blog post shows you how to setup a live connection and describe a
> simple pipeline using python.
> > The pipeline was generated from Tools/Manage Plugins, Catalyst Script
> Generator Plugin, Load Selected. Then you can build your pipeline and
> export it using CoProcessing, Export State.
> >
> > We don't have an example with only C++.
> > Setting up the visualization pipeline as well as the connection to
> catalyst live, while possible, is more involved in C++.
> > Basically, you'll have write in C++ some of the code in simple.py and
> coprocessing.py.
> >
> > In your specific case, maybe you are missing the calls to
> >
> > coprocessor.DoLiveVisualization(datadescription, "localhost", 2)
> >
> > or
> > coprocessor.EnableLiveVisualization(True, 1)
> >
> > These are lines from the python coprocessing script that you'll have to
> rewrite in C++.
> >
> > Dan
> >
> >
> > On Tue, Feb 17, 2015 at 10:54 AM, Felipe Bordeu <
> felipe.bor...@ec-nantes.fr <mailto:felipe.bor...@ec-nantes.fr>
> > wrote:
> >
> >
> > Hi everybody,
> >
> > I 'm trying to connect  my simulation code (a dummy simulation code for
> > the moment) to paraview using Catalyst to do live visualization. Just
> > make a mesh (2D structured, with 1 field), and send it to paraview
> > without python. But I something is not working. The code runs, I can
> > connect to paraview, pause the simulation but unable to sent the data
> > for the visualization.
> >
> > So I'm doing this : for initialization
> >
> > create a vtkCPProcessor object and call Initialize();
> > create a vtkCPPipeline derived object class and added to the processor (
> > Processor->AddPipeline(pipeline.GetPointer());  ) .
> > (why do I need a Pipeline if I'm going to send my raw data (in vtk
> > format of course) to paraview?)
> > in the CoProcess( vtkCPDataDescription* dataDescription) member function
> > the only relevant lines are :
> >   vtkNew producer;
> >   vtkImageData* grid =
> >
> vtkImageData::SafeDownCast(dataDescription->GetInputDescriptionByName("input")->GetGrid());
> >producer->SetOutput(grid,dataDescription->GetTime());
> >
> > create a vtkLiveInsituLink
> >LiveLink = vtkLiveInsituLink::New();
> >LiveLink->SetInsituPort(2);
> >LiveLink->SetHostname("localhost");
> >LiveLink->SetProcessType(vtkLiveInsituLink::INSITU);
> >vtkSMProxyManager* proxyManager =
> vtkSMProxyManager::GetProxyManager();
> >vtkSMSessionProxyManager* sessionProxyManager =
> > proxyManager->GetActiveSessionProxyManager();
> >LiveLink->Initialize(sessionProxyManager);
> >
> >
> > then in each time-step I do :
> >
> >   vtkCPDataDescription* dataDescription = vtkCPDataDescription::New();
> >   dataDescription->AddInput("input");
> >   dataDescription-> SetTimeData(time, timeStep);
> >   if(Processor->RequestDataDescription(dataDescription) != 0){
> >// Create a uniform grid
> >vtkImageData* grid = vtkImageData::New();
> >
> >   ""setextent, create DoubleArray, fill the array, put the array in the
> > grid""
> >...
> >dataDescription->GetInputDescriptionByName("input")->SetGrid(grid);
> >grid->Delet

[Paraview] Fwd: Catalyst simple test

2015-02-17 Thread Dan Lipsa
(just a forward of my previous response to the list)

-- Forwarded message --
From: Dan Lipsa 
Date: Tue, Feb 17, 2015 at 12:19 PM
Subject: Re: [Paraview] Catalyst simple test
To: Felipe Bordeu 


Hi Felipe,
Have you seen: http://www.kitware.com/blog/home/post/722?

This blog post shows you how to setup a live connection and describe a
simple pipeline using python.
The pipeline was generated from Tools/Manage Plugins, Catalyst Script
Generator Plugin, Load Selected. Then you can build your pipeline and
export it using CoProcessing, Export State.

We don't have an example with only C++.
Setting up the visualization pipeline as well as the connection to catalyst
live, while possible, is more involved in C++.
Basically, you'll have write in C++ some of the code in simple.py and
coprocessing.py.

In your specific case, maybe you are missing the calls to

coprocessor.DoLiveVisualization(datadescription, "localhost", 2)

or
coprocessor.EnableLiveVisualization(True, 1)

These are lines from the python coprocessing script that you'll have to
rewrite in C++.

Dan


On Tue, Feb 17, 2015 at 10:54 AM, Felipe Bordeu 
wrote:

>
> -BEGIN PGP SIGNED MESSAGE-
> Hash: SHA1
>
> Hi everybody,
>
> I 'm trying to connect  my simulation code (a dummy simulation code for
> the moment) to paraview using Catalyst to do live visualization. Just
> make a mesh (2D structured, with 1 field), and send it to paraview
> without python. But I something is not working. The code runs, I can
> connect to paraview, pause the simulation but unable to sent the data
> for the visualization.
>
> So I'm doing this : for initialization
>
> create a vtkCPProcessor object and call Initialize();
> create a vtkCPPipeline derived object class and added to the processor (
> Processor->AddPipeline(pipeline.GetPointer());  ) .
> (why do I need a Pipeline if I'm going to send my raw data (in vtk
> format of course) to paraview?)
> in the CoProcess( vtkCPDataDescription* dataDescription) member function
> the only relevant lines are :
>   vtkNew producer;
>   vtkImageData* grid =
>
> vtkImageData::SafeDownCast(dataDescription->GetInputDescriptionByName("input")->GetGrid());
>producer->SetOutput(grid,dataDescription->GetTime());
>
> create a vtkLiveInsituLink
>LiveLink = vtkLiveInsituLink::New();
>LiveLink->SetInsituPort(2);
>LiveLink->SetHostname("localhost");
>LiveLink->SetProcessType(vtkLiveInsituLink::INSITU);
>vtkSMProxyManager* proxyManager = vtkSMProxyManager::GetProxyManager();
>vtkSMSessionProxyManager* sessionProxyManager =
> proxyManager->GetActiveSessionProxyManager();
>LiveLink->Initialize(sessionProxyManager);
>
>
> then in each time-step I do :
>
>   vtkCPDataDescription* dataDescription = vtkCPDataDescription::New();
>   dataDescription->AddInput("input");
>   dataDescription-> SetTimeData(time, timeStep);
>   if(Processor->RequestDataDescription(dataDescription) != 0){
>// Create a uniform grid
>vtkImageData* grid = vtkImageData::New();
>
>   ""setextent, create DoubleArray, fill the array, put the array in the
> grid""
>...
>dataDescription->GetInputDescriptionByName("input")->SetGrid(grid);
>grid->Delete();
>
>   Processor->CoProcess(dataDescription);
>
>
> (and also the LiveLink code, not sure about this) this is similar to the
> coprocessing.py
>
>while(true){
>  LiveLink->InsituUpdate(timeStep, time);
>
>  LiveLink->InsituPostProcess(time, timeStep);
>
>   if (LiveLink->GetSimulationPaused()){
>  if (LiveLink->WaitForLiveChange()){
>break;
>  }
>   } else {
>break;
>   }
>}
>
>
> I'm pretty sure I'm mixing the code for the different examples I found
> on the web and in the sources. I didn't find an example with pure c++
> and live viz.
> How I can tell to the LiveLink with data I want to sent to paraview???
>
> using ParaView 4.3.1 compiled from git source in linux.
>
> Thanks to all.
>
> - --
> Felipe Bordeu Weldt
> Ingénieur de Recherche
> - -
> Tél. : 33 (0)2 40 37 16 57
> Fax. : 33 (0)2 40 74 74 06
> felipe.bor...@ec-nantes.fr
> Institut GeM - UMR CNRS 6183
> École Centrale Nantes
> 1 Rue de La Noë, 44321 Nantes, FRANCE
> - -
> -BEGIN PGP SIGNATURE-
> Version: GnuPG v1
>
> iQEcBAEBAgAGBQJU42QZAAoJEE/fMfNgU9/DCR8IAIfD2dR2h2RBx5vfpgii6N5q
> ws5vkG9AZf1Jsqdf3fxk25pcB2BJs615I3iEPmlY4SDTUkVmbVzVFvEXX4HXh8+2
> AGX3yNSjfUfAX9RFPsz13

Re: [Paraview] error building silo reader

2015-02-17 Thread Dan Lipsa
Hi Jeff,
You'll need Qt version 4.8.6.

https://download.qt.io/archive/qt/4.8/


QList<>::reserve has been introduced in version 4.7 so probably you have
something earlier than that.

See also
http://www.paraview.org/Wiki/ParaView/Binaries
for required versions for ParaView libraries.

Dan


On Tue, Feb 17, 2015 at 11:58 AM, Jeff Becker 
wrote:

>  On 02/17/2015 08:30 AM, Jeff Becker wrote:
>
> On 02/16/2015 07:03 AM, Utkarsh Ayachit wrote:
>
> Which version of Silo did you build? Can you attach your CMakeCache.txt
> please?
>
>
> Progress! I figured out that the version of silo I was using (4.10.2) was
> causing the error due to an incompatibility with the way ParaView was
> calling it. Thus I went to silo 4.9.1. Now I get the following QT related
> error.
>
> [ 88%] Building CXX object
> Qt/Core/CMakeFiles/pqCore.dir/pqOutputWindowModel.cxx.o
> /u/wk/jcbecker/ParaView/Qt/Core/pqOutputWindowModel.cxx: In member
> function ‘void pqOutputWindowModel::ShowMessages(bool*)’:
> /u/wk/jcbecker/ParaView/Qt/Core/pqOutputWindowModel.cxx:246:14: error:
> ‘class QList’ has no member named ‘reserve’
>this->Rows.reserve(_rowCount);
>   ^
> make[2]: *** [Qt/Core/CMakeFiles/pqCore.dir/pqOutputWindowModel.cxx.o]
> Error 1
> make[1]: *** [Qt/Core/CMakeFiles/pqCore.dir/all] Error 2
> make: *** [all] Error 2
>
> Any ideas here? Thanks. I've attached CMakeCache.txt in case it helps.
>
>
> Looking at my CMakeCache.txt, it looks like setting a correct path for
> qmake isn't enough for ccmake to find the associated library paths. I'll
> try again with adding the correct path to LD_LIBRARY_PATH.
>
> -jeff
>
>
> -jeff
>
>
> Thanks
>
> On Wed, Feb 11, 2015 at 7:19 PM, Jeff Becker 
>  wrote:
>
> Please help me understand and fix the following build error. Thanks.
>
> -jeff
>
> [ 26%] Building CXX object
> Utilities/VisItBridge/databases/CMakeFiles/vtkIOVisItBridge.dir/Silo/avtSiloWriter.C.o
>
>
> [ 26%] Building CXX object
> Utilities/VisItBridge/databases/CMakeFiles/vtkIOVisItBridge.dir/Silo/avtSiloFileFormat.C.o
>
>
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:
>
> In member function ‘virtual void
> avtSiloFileFormat::PopulateDatabaseMetaData(avtDatabaseMetaData*)’:
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:1195:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:1195:
>
> error:
> ‘DBSetDataReadMask_is_replaced_with_DBSetDataReadMask2_using_unsigned_long_long’
>
> was not declared in this scope
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:1211:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:
>
> In member function ‘void avtSiloFileFormat::ReadCSGmeshes(DBfile*, int,
> char**, const char*, avtDatabaseMetaData*)’:
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:2532:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:2533:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:2533:
>
> error:
> ‘DBSetDataReadMask_is_replaced_with_DBSetDataReadMask2_using_unsigned_long_long’
>
> was not declared in this scope
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:2535:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:
>
> In member function ‘void
> avtSiloFileFormat::FindMultiMeshAdjConnectivity(DBfile*, int&, int*&,
> int*&,
> int&, int*&, int&, int*&, bool, bool)’:
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5442:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5443:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5443:
>
> error:
> ‘DBSetDataReadMask_is_replaced_with_DBSetDataReadMask2_using_unsigned_long_long’
>
> was not declared in this scope
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5450:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:
>
> In member function ‘void avtSiloFileFormat::AddCSGMultimesh(const char*,
> const char*, avtDatabaseMetaData*, avtSiloMultiMeshCacheEntry*, DBfile*)’:
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5883:
>
> error: expected primary-expression before ‘,’ token
> /u/wk/jcbecker/ParaView/Utilities/VisItBridge/databases/Silo/avtSiloFileFormat.C:5884:
>
> error: expected primary-expressi

Re: [Paraview] EnSightReader: Change input file

2015-01-05 Thread Dan Lipsa
On Sat, Dec 20, 2014 at 4:09 AM, Ian Krukow 
wrote:

> Hi Dan,
>
> thanks for the patch, but unfortunately I have not been able to test it
> yet, though I tried different things.
>
> I work with pvpython on a compute server with Ubuntu 12.04. For
> configuration I have CMake 2.8.7, and I built ParaView 3.14.1 a while ago.
> For ParaView 4.2, I need at least CMake 2.8.8, but I could not get it to
> work on that system. Our admin supposed that there might be library
> problems between Ubuntu 12.04 and newer CMake versions, and it may not work
> at all. Therefore I could not build ParaView 4.2.
>


What is the problem you see with the new cmake? cmake is tested on many
platforms so it should work on ubuntu 12.04 as well.


> I tried applying the patch to ParaView 3.14.1 instead, but I had the same
> result as before. Maybe it is just not the right thing to do, I am not
> familiar with these things.
>
> Then I switched to my desktop PC with Windows 7, where I set up the
> building process. When I run the configuration in CMake, as soon as I
> enable python, I get the error
>
> CMake Error at VTK/CMake/ExternalData.cmake:176 (add_test):
>   add_test given test NAME "pvpythonPython-TestAnnotateAttributeData"
>   which already exists in this directory.
> Call Stack (most recent call first):
>   VTK/CMake/vtkTestingMacros.cmake:431 (ExternalData_add_test)
>   CMake/ParaViewTestingMacros.cmake:44 (vtk_add_test_python)
>   Applications/ParaView/Testing/Python/CMakeLists.txt:82
> (paraview_add_test_pvbatch)
>
> even without the patch. Can you tell me what to do about it?
>

Do you do the config/build in the source directory? If yes, could you try
it in a separate build directory?

Dan
___
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] EnSightReader: Change input file

2014-12-11 Thread Dan Lipsa
Hi Ian,
I have the following patch that fixes the EnSightReader for the files you
sent to Utkarsh. Would you mind trying it out? If you have other files you
can try it on, please do so.

You'll have to build ParaView from the repository:

http://www.paraview.org/Wiki/ParaView:Build_And_Install
http://www.paraview.org/Wiki/ParaView/Git

And then apply this patch in ParaView/VTK

git apply --stat ensight.patch


Thanks,
Dan


On Fri, Nov 14, 2014 at 10:39 PM, Utkarsh Ayachit <
utkarsh.ayac...@kitware.com> wrote:

> Ability to change filenames depends on specific reader
> implementations. I am not entire familiar with the internal
> implementation, but if you have a couple of sample datasets/script to
> reproduce the segfault, I can check if its a minor fix to the reader
> to enable this or if it just can't support it.
>
> Either case, you should be able to call Delete(reader) to delete old
> reader once you're done with it to avoid memory bloat.
>
> Utkarsh
>
> On Tue, Nov 11, 2014 at 8:39 AM, Ian Krukow 
> wrote:
> > Hi all,
> >
> > I want to apply the same pipeline to a series of Ensight data files in
> order
> > to save extractions in a different format. For the first file, this works
> > fine. For the second file, I thought I could change the input file by
> > changing the CaseFileName attribute:
> >
> > reader.CaseFileName = nextfile
> >
> > But when I run
> >
> > reader.UpdatePipeline()
> >
> > I get a segmentation fault. This depends neither on the file, nor on the
> > pipeline following.
> >
> > I tried a workaround by building up a new pipeline for each file. It
> works,
> > and as I have only two files by now, it is ok to do that, but for more
> > files, memory usage would explode. Therefore, my question is: Is it
> possible
> > only to change the input file of the EnSightReader, while keeping the
> > pipeline?
> >
> > Kind regards
> > Ian
> > ___
> > 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
> >
> > 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
>
> Follow this link to subscribe/unsubscribe:
> http://public.kitware.com/mailman/listinfo/paraview
>
From c2694aff73b86ec3d2fe0514fa7a294a0c997b4e Mon Sep 17 00:00:00 2001
From: Dan Lipsa 
Date: Thu, 11 Dec 2014 13:01:38 -0500
Subject: [PATCH] FIX: EnSightReader does not crash if you change CaseFileName

Change-Id: Ieee311ef497b505d468e63f61592fc5f435ee859
---
 IO/EnSight/vtkEnSightReader.cxx| 7 +++
 IO/EnSight/vtkEnSightReader.h  | 2 ++
 IO/EnSight/vtkGenericEnSightReader.cxx | 7 +++
 IO/EnSight/vtkGenericEnSightReader.h   | 6 ++
 4 files changed, 22 insertions(+)

diff --git a/IO/EnSight/vtkEnSightReader.cxx b/IO/EnSight/vtkEnSightReader.cxx
index 4913d18..60dd27a 100644
--- a/IO/EnSight/vtkEnSightReader.cxx
+++ b/IO/EnSight/vtkEnSightReader.cxx
@@ -160,6 +160,13 @@ vtkEnSightReader::~vtkEnSightReader()
 }
 
 //
+void vtkEnSightReader::ClearForNewCaseFileName()
+{
+  this->UnstructuredPartIds->Reset();
+  vtkGenericEnSightReader::ClearForNewCaseFileName();
+}
+
+//
 int vtkEnSightReader::RequestData(
   vtkInformation *vtkNotUsed(request),
   vtkInformationVector **vtkNotUsed(inputVector),
diff --git a/IO/EnSight/vtkEnSightReader.h b/IO/EnSight/vtkEnSightReader.h
index 8e8d8ce..ffd0a0f 100644
--- a/IO/EnSight/vtkEnSightReader.h
+++ b/IO/EnSight/vtkEnSightReader.h
@@ -116,6 +116,8 @@ protected:
   vtkInformationVector**,
   vtkInformationVector*);
 
+  virtual void ClearForNewCaseFileName();
+
   // Description:
   // Set the Measured file name.
   vtkSetStringMacro(MeasuredFileName);
diff --git a/IO/EnSight/vtkGenericEnSightReader.cxx b/IO/EnSight/vtkGenericEnSightReader.cxx
index c3ac7df..67bc9df 100644
--- a/IO/EnSight/vtkGenericEnSightReader.cxx
+++ b/IO/EnSight/vtkGenericEnSightReader.cxx
@@ -599,6 +599,12 @@ int vtkGenericEnSightReader::DetermineEnSightVersion(int quiet)
 }
 
 //-

Re: [Paraview] Data set Size limit in ParaView/HDF5

2014-12-05 Thread Dan Lipsa
Diff will give you the details: mainly integrate the library into
vtk,paraview build system and fixing any issues on platforms an external
library was not tested on (but VTK/ParaView is)

On Fri, Dec 5, 2014 at 2:44 PM, Michael Jackson  wrote:

>
> On Dec 5, 2014, at 2:14 PM, Dan Lipsa  wrote:
>
>
> THanks for the update. Just FYI, they just released 1.8.14 a few weeks
>> back.
>>
>
> Yes, I have seen that. It happened just after we completed the update to
> 1.8.13.
>
>
> Any chances of just jumping to that version?
>>
>
> Just a guess: It would take a while to update again, unless there is a
> paying customer that wants it or
> there is another compelling reason.
>
> Compelling? No, But it just means that you are one version back already.
> Out of curiosity, what all is involved in bringing in HDF5?
>
> Thanks
> Mike Jackson
>
>
___
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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Data set Size limit in ParaView/HDF5

2014-12-05 Thread Dan Lipsa
> THanks for the update. Just FYI, they just released 1.8.14 a few weeks
> back.
>

Yes, I have seen that. It happened just after we completed the update to
1.8.13.


Any chances of just jumping to that version?
>

Just a guess: It would take a while to update again, unless there is a
paying customer that wants it or
there is another compelling reason.
___
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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Data set Size limit in ParaView/HDF5

2014-12-04 Thread Dan Lipsa
Mike,
hd5 1.8.13 is now the version bundled with ParaView (the git version and
superbuild).

Best regards,
Dan




On Wed, Nov 5, 2014 at 4:01 PM, Utkarsh Ayachit  wrote:

> > Not recent enough.
>
> Noted.
>
> > PS: We are just trying to get everyone to build ParaView on their
> systems. The issue with the SuperBuild is that you can not seem to set an
> "external" hdf5 build. It will always use the bundled version.
>
> There's a topic awaiting review to fix that. So you should be able to
> use "external hdf5" soon.
>
> Utkarsh
> ___
> 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
>
> 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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Interfacing with FE simulation using Catalyst

2014-11-21 Thread Dan Lipsa
On Fri, Nov 21, 2014 at 12:14 PM, Dan Lipsa  wrote:

>
>> When I click on the icon located near the producer to visualize the data,
>> I get an Extract component added to the pipeline. Trying to visualize this,
>> then throws me the following errors:
>>
>> ---
>> ERROR: In
>> /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
>> line 810
>> vtkPVPostFilterExecutive (0x3efc890): Input for connection index 0 on
>> input port index 0 for algorithm vtkPVPostFilter(0x3efbe70) is of type
>> vtkDataObject, but a vtkPolyData is required.
>>
>>
>> ERROR: In
>> /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
>> line 810
>> vtkPVPostFilterExecutive (0x3efc890): Input for connection index 0 on
>> input port index 0 for algorithm vtkPVPostFilter(0x3efbe70) is of type
>> vtkDataObject, but a vtkPolyData is required.
>>
>>
>> ERROR: In
>> /home/ancel/Downloads/ParaView-v4.2.0-source/ParaViewCore/ServerManager/Rendering/vtkSMParaViewPipelineControllerWithRendering.cxx,
>> line 504
>> vtkSMParaViewPipelineControllerWithRendering (0x38bbc00): Data cannot be
>> shown in the defaulted render view!!
>> ---
>>
>
> I have not run an example for an unstructured grid. It should work
> similarly though.
> I recently wrote a Catalyst adapter for an unstructured grid. I will run
> Catalyst Live with that to see how that works.
>
> You could try however to save images or entire data from the pipeline
> script as it is done in the Catalyst examples.
>
>
Hello Alexandre,
Live View runs fine with an unstructured grid. Try to write data out to
disk as it is done in the Catalyst examples as it is a simpler code path.
Does that work?

Dan
___
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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Interfacing with FE simulation using Catalyst

2014-11-21 Thread Dan Lipsa
>
>
> When I click on the icon located near the producer to visualize the data,
> I get an Extract component added to the pipeline. Trying to visualize this,
> then throws me the following errors:
>
> ---
> ERROR: In
> /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
> line 810
> vtkPVPostFilterExecutive (0x3efc890): Input for connection index 0 on
> input port index 0 for algorithm vtkPVPostFilter(0x3efbe70) is of type
> vtkDataObject, but a vtkPolyData is required.
>
>
> ERROR: In
> /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Common/ExecutionModel/vtkDemandDrivenPipeline.cxx,
> line 810
> vtkPVPostFilterExecutive (0x3efc890): Input for connection index 0 on
> input port index 0 for algorithm vtkPVPostFilter(0x3efbe70) is of type
> vtkDataObject, but a vtkPolyData is required.
>
>
> ERROR: In
> /home/ancel/Downloads/ParaView-v4.2.0-source/ParaViewCore/ServerManager/Rendering/vtkSMParaViewPipelineControllerWithRendering.cxx,
> line 504
> vtkSMParaViewPipelineControllerWithRendering (0x38bbc00): Data cannot be
> shown in the defaulted render view!!
> ---
>

I have not run an example for an unstructured grid. It should work
similarly though.
I recently wrote a Catalyst adapter for an unstructured grid. I will run
Catalyst Live with that to see how that works.

You could try however to save images or entire data from the pipeline
script as it is done in the Catalyst examples.



> A few more questions come in my mind now:
> - If I understand correctly and if the user wants to pause the simulation,
> for example when he has only 1 timestep, he would have to do the following
> steps:
> * Connect with catalyst in Paraview
> * Set a breakpoint for time step 0
> * launch the simulation
> Is that alright ?
> Would it be possible to do this with the play/next frame paraview buttons ?
>

The communication between catalyst and the simulation happens only at time
steps. Because of that, Catalyst could only stop the simulation at time
step 2.


- Looking at the last lines of the blog post concerning pvserver. Is
> pvserver catalyst enabled by default ?
>
Yes.


> Does it mean that I can build the following pipeline ?
> Paraview (local computer) <-> pvserver (cluster frontal node) <-> catalyst
> enabled simulation (cluster nodes)
>

 You need to enable MPI to be able to run this. pvserver is the paraview
server that does all the rendering, only images are sent to ParaView (GUI).

Dan
___
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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Interfacing with FE simulation using Catalyst

2014-11-21 Thread Dan Lipsa
Hi Alexandre,
The following blog post describes how to pause the simulation and how to
manipulate data in Catalyst Live.

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

Could you try the scripts attached in the blog post? Do those work?
Thanks,
Dan


On Fri, Nov 21, 2014 at 8:30 AM, Alexandre Ancel  wrote:

> Hello,
>
> I am trying to use catalyst in our Finite Element framework, but I can't
> get it to work right now. For background information, I would like to
> inferface a parallel simulation, running with MPI, with paraview to display
> the results, thus do live visualization.
>
> I compiled Paraview from the 4.2 sources (from the website) to ensure that
> our library compiles with the same library as the ParaView I'm launching.
>
> The problem I have is similar to the one reported in:
> http://public.kitware.com/pipermail/paraview/2013-June/028497.html
>
>
> In our application, we have an exporter interface that allows to write VTK
> data (vtkUnstructuredGrid) with field data (scalar, vectorial). I built the
> catalyst interoperation on top of it, by using the Cxx example provided in:
>
> https://github.com/Kitware/ParaViewCatalystExampleCode/tree/master/CxxFullExample
> 
> I'm am using a modified version of the feslicescript.py
> 
> that should enable live visualization IMHO (enclosed with this email).
>
> The excerpt of C++ code running the coprocessing is the following one:
> 
> vtkSmartPointer dataDescription =
> vtkSmartPointer::New();
> dataDescription->AddInput("input");
>
> if(inSituProcessor->RequestDataDescription(dataDescription.GetPointer())
> != 0)
> {
>   dataDescription->GetInputDescriptionByName("input")->SetGrid(out);
>   dataDescription->SetForceOutput(true);
>   std::cout << "CoProcess " <<
> inSituProcessor->CoProcess(dataDescription.GetPointer())<< std::endl;
> }
> 
> where out is the unstructured grid data.
>
> I then launch Paraview and allow connection for catalyst via the menu.
> Eventually I launch our simulation that interfaces with Catalyst.
>
> I then get the following error in Paraview:
> ERROR: In
> /home/ancel/Downloads/ParaView-v4.2.0-source/VTK/Parallel/Core/vtkSocketCommunicator.cxx,
> line 812
> vtkSocketCommunicator (0x2b1f940): Could not receive tag. 1
>
> And the coprocessing stops in Paraview, altough I can see the catalyst
> server in the Pipeline browser and a PVTrivialProducer1 appearing in the
> background, but no data appear in the visualization window of Paraview.
>
> I tried instrumenting the code in Paraview to locate where the problem
> would be, but it appears that the problem happens outside of the
> vtkLiveInsituLink class, which (correct me If I'm wrong) should handle the
> link between the application and Paraview.
>
> The different questions that I have would be summed up as:
> - Can you give me some pointer as to where the problem might be located ?
> Coding mistake on my side ? Did I miss something in the issue I referred to
> before ?
> - Is it possible to pause the simulation while the user manipulates data
> in Paraview ? How ?
>
> Sorry for the long mail, but I tried to be as precise as I could be,
> Thanks in advance for the help and your time,
>
> Best regards,
> Alexandre Ancel
>
> --
> Alexandre Ancel
> Docteur, Ingénieur de recherche / Phd, Research Engineer
> Cemosis  - alexandre.an...@cemosis.fr
> Tel: +33 (0)3 68 8*5 02 06*
> IRMA - 7, rue René Descartes
> 67 000 Strasbourg, France
>
> ___
> 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
>
> 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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Catalyst question

2014-10-16 Thread Dan Lipsa
Hi John,

I had imagined that I’d run a simulation on N ranks, have catalyst bound to
> them and be able to do vis on those N ranks. But in fact, when I connect to
> a live simulation, I have to “extract” results from them and then render
> them back on the client.
>
>
>
> Is this the case or did I miss something?
>

Just to confirm Andy's answer, you can do the rendering on a separate
ParaView server (pvserver), which can be the same as the server you run the
simulation on. Catalyst will send extracts to this server which will render
them.
Only images will be send back to the client.

We show that use case at the end of our article.

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

Dan




>
>
> The parallel image generation appears to work as advertised, but the
> images go off to disk and not to the renderwindow. Is there a way on
> configuring it so that I can see the actual rendering taking place in the
> renderview? I wanted to display the contents of a custom render plugin
> using cuda based rendering on many GPUs and be able to interact with it,
> but I am obviously missing something in my setup.
>
>
>
> thanks
>
>
>
> JB
>
>
>
> *From:* Andy Bauer [mailto:andy.ba...@kitware.com]
> *Sent:* 26 August 2014 15:34
> *To:* Biddiscombe, John A.
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Catalyst question
>
>
>
> Hi John,
>
>
> This live capability is now available and recently has been cleaned up
> quite a bit. There are still a couple more small changes that are waiting a
> code review process before they go into the master branch. The user's guide
> needs an update for a bunch of new information (live, catalyst editions,
> zero-copy arrays) that's important for Catalyst. We're also doing some
> preliminary testing with a newly developed ADIOS writer for better IO
> performance as well.
>
>  Getting back to the live viz stuff, when you create a Catalyst Python
> script and export it using the wizard you'll have the option to enable live
> viz (it's the same wizard page as the screenshot output specification).
> Then, while your simulation is running use the Catalyst->Connect option to
> connect. There are two tests (pv.CatalystLiveSetBreakpoint and
> pvcs.CatalystLiveSetBreakpoint) that demonstrate the newly implemented live
> functionality which now includes the option to set a breakpoint in the
> simulation.
>
> If you get a chance to try it out, let me know what you think.
>
> Andy
>
>
>
> On Tue, Aug 26, 2014 at 3:40 AM, Biddiscombe, John A. 
> wrote:
>
> Dear Catalyst people
>
>
>
> I dragged out an old simulation demo I created some time ago and got it
> working with paraview/catalyst from git master branch - my plan was to test
> a live visualization of the simulation with the paraview GUI connected to
> the simulation. I had thought this capability was now possible, but I have
> not been following development closely and it looks like I was mistaken.
>
>
>
> Is it possible to visualize the simulation live - rather than just
> generate images (which works fine). (I had a quick skim through the user
> manual, but didn’t see this feature mentioned).
>
>
>
> Thanks
>
>
>
> JB
>
>
>
> --
>
> John Biddiscombe,email:biddisco @.at.@ cscs.ch
>
> http://www.cscs.ch/
>
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
>
> Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82
>
>
>
>
> ___
> 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
>
> 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
>
> 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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] Catalyst question

2014-09-29 Thread Dan Lipsa
Hi John,
We just posted more information about Catalyst Live features that went into
ParaView 4.2.

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

Regards,
Dan


On Tue, Aug 26, 2014 at 9:39 AM, Biddiscombe, John A. 
wrote:

>  Andy
>
>
>
> Thanks for the info, great news that the live stuff is ongoing. My current
> test uses cxx only, so I didn’t play with the python pipelines and hadn’t
> noticed the live viz option. I will experiment and get back to you.
>
>
>
> I saw a bunch of questions recently about doing GPU based stuff inside
> catalyst and it is my aim to get my cuda/piston based renderers working
> in-situ. I’ll let you know how I get on.
>
> If there are commits on branches you think I might want to test, please
> say.
>
>
>
> thanks again
>
>
>
> JB
>
>
>
>
>
>
>
>
>
> *From:* Andy Bauer [mailto:andy.ba...@kitware.com]
> *Sent:* 26 August 2014 15:34
> *To:* Biddiscombe, John A.
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Catalyst question
>
>
>
> Hi John,
>
> This live capability is now available and recently has been cleaned up
> quite a bit. There are still a couple more small changes that are waiting a
> code review process before they go into the master branch. The user's guide
> needs an update for a bunch of new information (live, catalyst editions,
> zero-copy arrays) that's important for Catalyst. We're also doing some
> preliminary testing with a newly developed ADIOS writer for better IO
> performance as well.
>
> Getting back to the live viz stuff, when you create a Catalyst Python
> script and export it using the wizard you'll have the option to enable live
> viz (it's the same wizard page as the screenshot output specification).
> Then, while your simulation is running use the Catalyst->Connect option to
> connect. There are two tests (pv.CatalystLiveSetBreakpoint and
> pvcs.CatalystLiveSetBreakpoint) that demonstrate the newly implemented live
> functionality which now includes the option to set a breakpoint in the
> simulation.
>
> If you get a chance to try it out, let me know what you think.
>
> Andy
>
>
>
> On Tue, Aug 26, 2014 at 3:40 AM, Biddiscombe, John A. 
> wrote:
>
> Dear Catalyst people
>
>
>
> I dragged out an old simulation demo I created some time ago and got it
> working with paraview/catalyst from git master branch - my plan was to test
> a live visualization of the simulation with the paraview GUI connected to
> the simulation. I had thought this capability was now possible, but I have
> not been following development closely and it looks like I was mistaken.
>
>
>
> Is it possible to visualize the simulation live - rather than just
> generate images (which works fine). (I had a quick skim through the user
> manual, but didn’t see this feature mentioned).
>
>
>
> Thanks
>
>
>
> JB
>
>
>
> --
>
> John Biddiscombe,email:biddisco @.at.@ cscs.ch
>
> http://www.cscs.ch/
>
> CSCS, Swiss National Supercomputing Centre  | Tel:  +41 (91) 610.82.07
>
> Via Trevano 131, 6900 Lugano, Switzerland   | Fax:  +41 (91) 610.82.82
>
>
>
>
> ___
> 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
>
> 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
>
> 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

Follow this link to subscribe/unsubscribe:
http://public.kitware.com/mailman/listinfo/paraview


Re: [Paraview] how to draw domain boundary lines‏

2014-05-02 Thread Dan Lipsa
Click on the eye next to the data source and then choose for Display,
Representation: Outline.

Dan



On Fri, May 2, 2014 at 9:31 AM, Michel Dupront wrote:

> To make my question easier to understand I added a screen shot
> of the paraview windows.
> Thanks.
>
> ___
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Optimise PNGs

2014-04-16 Thread Dan Lipsa
Hi Joe,
We recently solved a bug related to PNG optimization.

http://vtk.org/Bug/view.php?id=14426

So you might need to upgrade ParaView.

Dan



On Wed, Apr 16, 2014 at 12:17 PM, Joe Borġ  wrote:

> Currently, when running pvbatch, I am running a thread with optipng
> running.  When an image is saved from ParaView, optipng picks the image up
> and optimises it.
>
> Just wondering why there is no built in PNG optimisation?  I'm saving ~50%
> per image.
>
>
> Regards,
> Joseph David Borġ
> josephb.org
>
> ___
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] ParticleTracer particle lifetime

2014-01-14 Thread Dan Lipsa
Hi Ryan,
The following thread might be useful in trying to get pathlines/streaklines
to work in paraview.

http://paraview.markmail.org/search/?q=Dan%20Lipsa#query:Dan%20Lipsa+page:1+mid:lr6wjdwan2ixidlg+state:results

Dan



On Tue, Jan 14, 2014 at 2:20 PM, Ryan Abernathey
wrote:

> Hello,
>
> I am continuing my ongoing quest to do something like this
>
> http://earth.nullschool.net/#current/wind/isobaric/1000hPa/orthographic=267.73,5.54,350
> or this
> http://www.youtube.com/watch?v=xusdWPuWAoU
> in Paraview using ***time dependent velocity vectors***.
>
> While the LIC plugin is very cool, it does something different. I followed
> the previous suggestion and tried to use the streamline filter:
> http://paraview.org/Wiki/ParaView/Custom_Filters
> Unfortunately that is not quite right either.
>
> The problem with the streamline filter is that it treats each timestep as
> completely independent and regenerates the streamlines whenever the
> velocity field changes. (This is the correct behavior: streamlines are
> defined by the *instantaneous* flow.)
>
> What we see in those videos are truly particle trajectories. In particular:
> - particles are seeded randomly (in space and time)
> - they leave a decaying trail (sometimes called a streaklet)
> - the particles disappear after a short lifetime
> This is the combination of ingredients I need to reproduce in paraview.
>
> The best candidate is clearly the ParticleTracer filter. However, I have
> hit a serious problem: it doesn't appear that this filter is able to make
> the particles "die" after a temporal lifetime. Compare the v 3.3
> documentation
> http://paraview.org/OnlineHelpCurrent/ParticleTracer.html
> with the current documentation
>
> http://paraview.org/Wiki/ParaView/Users_Guide/List_of_filters#ParticleTracer
> In the old version, there was an option called "Termination Time" that is
> missing from the new version.
>
> Without such an option, the particles will never disappear, the domain
> will get more and more crowded, and the computational expense will grow
> with time.
>
> Let me know if you have any suggestions or if you know how to re-enable
> this Termination Time option.
>
> Thanks a lot,
> Ryan
>
> ___
> 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
>
> Follow this link to subscribe/unsubscribe:
> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Fwd: Particle tracer

2012-11-20 Thread Dan Lipsa
Leo,
Thank you very much. That was the problem.

I am also very happy to see that vtkParticleTracer, vtkParticlePathFilter
and vtkStreaklineFilter now have tests in the nightly build (it was not the
case for
vtkTemporalPathLineFilter in VTK 5.10 release).

Thank you very much for your answers and for the improvements in streamline
tracing.

Best,
Dan





On Tue, Nov 20, 2012 at 3:17 PM, Yuanxin Liu  wrote:

> For Pathline/Streakline filters, did you set the TerminationTime
> parameter? The default is zero. By the way, unlike the ParticleTracer,
> these two do not work immediately with the animation control. You must
> explicitly animate the TerminationTime parameter.
>
> Leo
>
>
> On Tue, Nov 20, 2012 at 5:43 AM, Dan Lipsa  wrote:
>
>> Leo,
>> Thanks for the suggestion with the calculator filter. I was able to use
>> it to increase the velocity and see the particles moving as they should
>> (ParticleTracer).
>> Just a small note here, I see an warning when I use the First Frame (0)
>> button. The warning does not seem to have any ill effects however.
>>
>>
>> Warning: In
>> /home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Filters/FlowPaths/vtkParticleTracerBase.cxx,
>> line 1372
>>
>> vtkPParticleTracer (0x6a93c50): Can't go backward
>>
>>
>>
>> I still had no luck with the ParticlePath filter. I follow the same steps
>> as for the ParticleTracer but the Information box shows me 'Number of
>> Cells': 0 and 'Number of Points': 7 and no points or traces are displayed.
>> Do you have any suggestions on what might be wrong with the ParticlePath
>> filter.
>>
>> For the StreakLine filter the number of cells is 7 and number of points
>> is 7 which seems correct. However no tracing of streaklines happens either.
>> Paraview goes very fast through the time steps when I press the Play button
>> (the same as for the ParticlePath filter). Do you have any suggestions for
>> the StreakLine filter?
>>
>> Dan
>>
>>
>>
>>
>> On Mon, Nov 19, 2012 at 9:06 PM, Yuanxin Liu  wrote:
>>
>>> Yes. Please try to put the source at the high velocity region.  You can
>>> also use the calculator filter to increase the velocity.
>>>
>>> Unlike the previous ParaView,  you don't attach another filter after
>>> ParticleTracer to get path lines/streak lines.  Just use ParticlePath
>>> filter / StreakLine filter.  You can find a summary these features on
>>> page of 11 the Kitware Source July 
>>> issue<http://www.kitware.com/media/thesource/jul2012.html>.
>>>
>>>
>>>
>>> Leo
>>>
>>>  have recently made a number of changes to the particle tracing.  You
>>> can find a summary on page of 11 the Kitware Source July 
>>> issue<http://www.kitware.com/media/thesource/jul2012.html>
>>> .
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 3:47 PM, Dan Lipsa wrote:
>>>
>>>>
>>>>
>>>> -- Forwarded message --
>>>> From: Dan Lipsa 
>>>> Date: Mon, Nov 19, 2012 at 8:47 PM
>>>> Subject: Re: [Paraview] Particle tracer
>>>> To: Yuanxin Liu 
>>>>
>>>>
>>>> Yuanxin,
>>>> Thanks for your reply,
>>>>  When I press play, the particles seem to stay in the same place.
>>>>  However, they do change color as they are colored by velocity magnitude.
>>>> Maybe the velocity is very small and the particles don't move much - I
>>>> trace only 43 time steps. I will try to trace the particles in an region of
>>>> higher velocity tomorrow (is night here in UK). Do I need to apply another
>>>> filter to get a pathline?
>>>>
>>>> Thank you,
>>>> Dan
>>>>
>>>>
>>>>
>>>>
>>>>
>>>> On Mon, Nov 19, 2012 at 6:43 PM, Yuanxin Liu wrote:
>>>>
>>>>> The particle tracer works with the animation time.  What happens when
>>>>> you press "play" in the animation control?
>>>>>
>>>>>
>>>>>
>>>>> On Mon, Nov 19, 2012 at 12:31 PM, Dan Lipsa wrote:
>>>>>
>>>>>> Hi all,
>>>>>> I have found this thread after I tried unsuccessfully to trace
>>>>>> pathlines from a list of vti files using 

Re: [Paraview] Fwd: Particle tracer

2012-11-20 Thread Dan Lipsa
Andy,
Thanks for your reply. For ParticleTracer there are 7 cells and 7 points
which is correct. My problem was that the velocity was too small so the
particles were moved a very small distance. Using a Calculator filter to
increase the velocity (using Leo Liu suggestion) allowed me to see the
particles moved by the filter.

ParticlePath and StreakLine still don't work for me (see my other email to
the list). Any suggestions would be greatly appreciated.

Thank you,
Dan


On Mon, Nov 19, 2012 at 9:03 PM, Andy Bauer  wrote:

> You may want to check out the information tab in the gui to see how many
> points and cells there are as the particle tracer iterates through the time
> series. By default I believe the vti files will assume a time step of 1
> between files, which may not be appropriate for your velocity field and
> domain size.
>
> Andy
>
> On Mon, Nov 19, 2012 at 3:47 PM, Dan Lipsa  wrote:
>
>
>>
>> ------ Forwarded message --
>> From: Dan Lipsa 
>> Date: Mon, Nov 19, 2012 at 8:47 PM
>> Subject: Re: [Paraview] Particle tracer
>> To: Yuanxin Liu 
>>
>>
>> Yuanxin,
>> Thanks for your reply,
>>  When I press play, the particles seem to stay in the same place.
>>  However, they do change color as they are colored by velocity magnitude.
>> Maybe the velocity is very small and the particles don't move much - I
>> trace only 43 time steps. I will try to trace the particles in an region of
>> higher velocity tomorrow (is night here in UK). Do I need to apply another
>> filter to get a pathline?
>>
>> Thank you,
>> Dan
>>
>>
>>
>>
>>
>> On Mon, Nov 19, 2012 at 6:43 PM, Yuanxin Liu  wrote:
>>
>>> The particle tracer works with the animation time.  What happens when
>>> you press "play" in the animation control?
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 12:31 PM, Dan Lipsa wrote:
>>>
>>>> Hi all,
>>>> I have found this thread after I tried unsuccessfully to trace
>>>> pathlines from a list of vti files using paraview 3.98.0-RC1-2-ge3fcf70
>>>> 64-bit on Linux.
>>>>
>>>> http://www.paraview.org/pipermail/paraview/2012-April/024587.html
>>>>
>>>> I execute the following steps:
>>>> 1. add the temporal, regular dataset (list of vti files)
>>>> 2. add a line source for seeds
>>>> 3. add a ParticleTracer filter with input my regular vector data and
>>>> seeds generated by the line.
>>>>
>>>> I only see the starting points, no tracing occurs.
>>>>
>>>> Any help would be greatly appreciated.
>>>>
>>>> Dan
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Fwd: Particle tracer

2012-11-20 Thread Dan Lipsa
Leo,
Thanks for the suggestion with the calculator filter. I was able to use it
to increase the velocity and see the particles moving as they should
(ParticleTracer).
Just a small note here, I see an warning when I use the First Frame (0)
button. The warning does not seem to have any ill effects however.


Warning: In
/home/utkarsh/Dashboards/MyTests/NightlyMaster/ParaViewSuperbuild-Release/paraview/src/paraview/VTK/Filters/FlowPaths/vtkParticleTracerBase.cxx,
line 1372

vtkPParticleTracer (0x6a93c50): Can't go backward



I still had no luck with the ParticlePath filter. I follow the same steps
as for the ParticleTracer but the Information box shows me 'Number of
Cells': 0 and 'Number of Points': 7 and no points or traces are displayed.
Do you have any suggestions on what might be wrong with the ParticlePath
filter.

For the StreakLine filter the number of cells is 7 and number of points is
7 which seems correct. However no tracing of streaklines happens either.
Paraview goes very fast through the time steps when I press the Play button
(the same as for the ParticlePath filter). Do you have any suggestions for
the StreakLine filter?

Dan



On Mon, Nov 19, 2012 at 9:06 PM, Yuanxin Liu  wrote:

> Yes. Please try to put the source at the high velocity region.  You can
> also use the calculator filter to increase the velocity.
>
> Unlike the previous ParaView,  you don't attach another filter after
> ParticleTracer to get path lines/streak lines.  Just use ParticlePath
> filter / StreakLine filter.  You can find a summary these features on
> page of 11 the Kitware Source July 
> issue<http://www.kitware.com/media/thesource/jul2012.html>.
>
>
>
> Leo
>
>  have recently made a number of changes to the particle tracing.  You can
> find a summary on page of 11 the Kitware Source July 
> issue<http://www.kitware.com/media/thesource/jul2012.html>
> .
>
>
>
> On Mon, Nov 19, 2012 at 3:47 PM, Dan Lipsa  wrote:
>
>>
>>
>> -- Forwarded message --
>> From: Dan Lipsa 
>> Date: Mon, Nov 19, 2012 at 8:47 PM
>> Subject: Re: [Paraview] Particle tracer
>> To: Yuanxin Liu 
>>
>>
>> Yuanxin,
>> Thanks for your reply,
>>  When I press play, the particles seem to stay in the same place.
>>  However, they do change color as they are colored by velocity magnitude.
>> Maybe the velocity is very small and the particles don't move much - I
>> trace only 43 time steps. I will try to trace the particles in an region of
>> higher velocity tomorrow (is night here in UK). Do I need to apply another
>> filter to get a pathline?
>>
>> Thank you,
>> Dan
>>
>>
>>
>>
>>
>> On Mon, Nov 19, 2012 at 6:43 PM, Yuanxin Liu  wrote:
>>
>>> The particle tracer works with the animation time.  What happens when
>>> you press "play" in the animation control?
>>>
>>>
>>>
>>> On Mon, Nov 19, 2012 at 12:31 PM, Dan Lipsa wrote:
>>>
>>>> Hi all,
>>>> I have found this thread after I tried unsuccessfully to trace
>>>> pathlines from a list of vti files using paraview 3.98.0-RC1-2-ge3fcf70
>>>> 64-bit on Linux.
>>>>
>>>> http://www.paraview.org/pipermail/paraview/2012-April/024587.html
>>>>
>>>> I execute the following steps:
>>>> 1. add the temporal, regular dataset (list of vti files)
>>>> 2. add a line source for seeds
>>>> 3. add a ParticleTracer filter with input my regular vector data and
>>>> seeds generated by the line.
>>>>
>>>> I only see the starting points, no tracing occurs.
>>>>
>>>> Any help would be greatly appreciated.
>>>>
>>>> Dan
>>>>
>>>>
>>>> ___
>>>> 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
>>>>
>>>> Follow this link to subscribe/unsubscribe:
>>>> http://www.paraview.org/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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


[Paraview] Fwd: Particle tracer

2012-11-19 Thread Dan Lipsa
-- Forwarded message --
From: Dan Lipsa 
Date: Mon, Nov 19, 2012 at 8:47 PM
Subject: Re: [Paraview] Particle tracer
To: Yuanxin Liu 


Yuanxin,
Thanks for your reply,
When I press play, the particles seem to stay in the same place.  However,
they do change color as they are colored by velocity magnitude. Maybe the
velocity is very small and the particles don't move much - I trace only 43
time steps. I will try to trace the particles in an region of higher
velocity tomorrow (is night here in UK). Do I need to apply another filter
to get a pathline?

Thank you,
Dan





On Mon, Nov 19, 2012 at 6:43 PM, Yuanxin Liu  wrote:

> The particle tracer works with the animation time.  What happens when you
> press "play" in the animation control?
>
>
>
> On Mon, Nov 19, 2012 at 12:31 PM, Dan Lipsa  wrote:
>
>> Hi all,
>> I have found this thread after I tried unsuccessfully to trace pathlines
>> from a list of vti files using paraview 3.98.0-RC1-2-ge3fcf70 64-bit on
>> Linux.
>>
>> http://www.paraview.org/pipermail/paraview/2012-April/024587.html
>>
>> I execute the following steps:
>> 1. add the temporal, regular dataset (list of vti files)
>> 2. add a line source for seeds
>> 3. add a ParticleTracer filter with input my regular vector data and
>> seeds generated by the line.
>>
>> I only see the starting points, no tracing occurs.
>>
>> Any help would be greatly appreciated.
>>
>> Dan
>>
>>
>> ___
>> 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
>>
>> Follow this link to subscribe/unsubscribe:
>> http://www.paraview.org/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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview


Re: [Paraview] Particle tracer

2012-11-19 Thread Dan Lipsa
Hi all,
I have found this thread after I tried unsuccessfully to trace pathlines
from a list of vti files using paraview 3.98.0-RC1-2-ge3fcf70 64-bit on
Linux.

http://www.paraview.org/pipermail/paraview/2012-April/024587.html

I execute the following steps:
1. add the temporal, regular dataset (list of vti files)
2. add a line source for seeds
3. add a ParticleTracer filter with input my regular vector data and seeds
generated by the line.

I only see the starting points, no tracing occurs.

Any help would be greatly appreciated.

Dan
___
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

Follow this link to subscribe/unsubscribe:
http://www.paraview.org/mailman/listinfo/paraview