[Paraview] creating subdomain/cells/sections

2017-08-22 Thread Muhammad Kashif Saeed
Hi,

I am working on mixing of particles in a cylindrical mixer using DEM in
open source software liggghts and for post processing, i am using paraview.

I want to calculate the non-sampling mixing index for that purpose it
requires to divide the cylindrical portion of the domain into a different
subdomain (sections/cells) of the known number.

and want to find the number of particles in each subdomain/cell/section.

 Kindly first help me how to divide into different subdomains.

my simulation consists of a cylinder in which 4 bladed impeller rotates to
mix the two different size particle beds mix together.

thanks in advance

-- 

*Muhammad Kashif Saeed*
Chemical Engineer
Cell: +92-300-7328139
___
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] Point Dataset Interpolator - EllipsoidalGaussianKernel

2017-08-22 Thread M P
hmm, reading the vtkEllipsoidalGaussianKernel documentation, it seems it is
not suitable for my purpose after all. Not possible to achieve constant
weight inside the sampling cylinder. Also the use of word "normal" in the
documentation confuses me, e.g.: "z is the distance of the current voxel
sample point along the local normal N"

W(x) = S * exp( -( Sharpness^2 * ((rxy/E)**2 + z**2)/R**2) )

- I would expect that it should be direction of the curve, not normal. When
I display Normals on my spline curve it is as expected perpendicular to the
curve and that I believe should not be the z coordinate of the kernel.

Will make some simple Programmable Filter for that.

Best regards,

Martin

On Tue, Aug 22, 2017 at 11:36 AM, M P  wrote:

> Hello all,
>
> I am trying to setup this filter to sample a point volume dataset along a
> defined spline curve. The ideal "kernel" for my purpose would be a short
> cylinder with some relatively big radius and constant weight in the whole
> volume of the cylinder (the axis of this cylinder should follow the
> direction vector of the spline). From all the kernels available for this
> filter the "EllipsoidalGaussianKernel" seems to be the most suitable. But I
> have a problem understanding what some of the parameters exactly mean.
>
> --
> "Use Normals": Specify whether vector values should be used to affect the
> shape of the Gaussian distribution.
>
> ?: What Normals vector values are meant here? Is it the normal to the
> spline or some vector from dataset? And how is then the kernel oriented if
> this option is not used?
> --
> "Use Scalars"
>
> ?: Similar question, what scalar is meant here and how is the weighting
> done? But I guess this is not important for my use case
> --
> "Sharpness": Specify the sharpness (i.e., falloff) of the Gaussian. By
> default Sharpness=2. As the sharpness increases the effects of distant
> points are reduced.
>
> ?: I would like all the dataset points have the same weight - so I guess I
> need maximum sharpness (like 20) - but this parameter help comment indicate
> that it works the opposite way - higher value means lower weight of distant
> points
> --
> "Eccentricity": Specify the eccentricity of the ellipsoidal Gaussian. A
> value=1.0 produces a spherical distribution. Values less than 1 produce a
> needle like distribution (in the direction of the normal); values greater
> than 1 produce a pancake like distribution (orthogonal to the normal.
>
> ?: Here I am confused by the word "normal", should I understand that it
> actually means direction vector?
> --
>
> Is there some paper or book where this parameters are exactly explained,
> or could someone point me to a source code where this is implemented (and
> hopefully it would be possible to understand from there)?
>
> Best regards,
>
> Martin
>
>
___
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] Removing wire frame from Ensight Gold Case Data format

2017-08-22 Thread Andrew
Hello, Niaz.
I also noticed the same problem in some cases with export from Fluent. I
suspect that Fluent write files incorrectly, as if every cell was a
separate domain. It explains why ParaView becomes very slow with such files
and why we cannot remove mesh lines from representation. Sorry, cannot
suggest something useful, because didn't remember details. Maybe exporting
in CGNS or changing export options will help. Or, maybe, providing a sample
dataset to ParaView developers will help them to identify the problem and
introduce some tweak/workaround in reader.

Actually, there are various problems with exporting from Fluent and CFX in
neutral formats. Apart from the bug you mentioned, ParaView (4.3, 5.0, 5.2
for Win64) cannot open CGNS files written by CFX 18.0 Solver Manager: there
are no variables in list (I tweaked export settings without effect). At the
same time, it reads successfully CGNS written by CFX 14.5 Solver Manager.
___
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] Removing wire frame from Ensight Gold Case Data format

2017-08-22 Thread Niaz M. via ParaView
Hello:
I am exporting Fluent simulation results as Ensight gold case. Then
importing in paraview. Then I am plotting a slice . I am selecting
Representation as Surface (not surface with edge). But I can't get rid of
Mesh (or wireframe) . Is there any way I can get rid of wire frame.
Thanks in advance


[image: Inline image 1]


Niaz
___
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] Running a simple example using ParaviewWeb

2017-08-22 Thread Léo Pessanha
Thank you, Sebastien!

It worked! The correct path should also have a '/' at the end so:

dataModel = new QueryDataModel(jsonData, '/data/'),
>

instead of

dataModel = new QueryDataModel(jsonData, '/data'),
>

Thanks again!

Leonardo Pessanha
Laboratory of Computational Methods in Engineering
Federal University of Rio de Janeiro - COPPE
Rio de Janeiro, RJ, Brasil


2017-08-22 15:30 GMT-03:00 Sebastien Jourdain <
sebastien.jourd...@kitware.com>:

> Almost, the missing part is for "dataModel = new QueryDataModel(jsonData,
> 'path/to/dist/data')"
>
> 'path/to/dist/data' should be '/data' since your web server is serving
> path/to/dist as /
>
> On Tue, Aug 22, 2017 at 12:23 PM, Léo Pessanha <
> leonardopessanh...@gmail.com> wrote:
>
>> So, just to be clear in order for me to understand
>>
>> I should copy the content of 
>> 'node_modules/tonic-arctic-sample-data/data/probe/'
>> to 'dist/data' and use
>>
>> dataModel = new QueryDataModel(jsonData, 'path/to/dist/data'),
>>>
>>
>> in the src/index.js ?
>>
>> Thanks in advance!
>>
>> Leonardo Pessanha
>> Laboratory of Computational Methods in Engineering
>> Federal University of Rio de Janeiro - COPPE
>> Rio de Janeiro, RJ, Brasil
>>
>>
>> 2017-08-22 15:01 GMT-03:00 Sebastien Jourdain <
>> sebastien.jourd...@kitware.com>:
>>
>>> __BASE_PATH__ is meant to dynamically define the http endpoint. This
>>> should not be a file path...
>>> You can remove it from your code and provide a proper endpoint. For us
>>> it is used on to allow local and github.io deployment.
>>>
>>> In your case, you need to copy that data by yourself to the dist/data
>>> directory so you can access it via http...
>>>
>>> Hope that helps,
>>>
>>> Seb
>>>
>>> On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha <
>>> leonardopessanh...@gmail.com> wrote:
>>>
 Thank you, Sebastien.

 I am able to build the example but the data don't show up yelding in
 the browser debugger

 ReferenceError: __BASE_PATH__ is not defined[Learn More]
>

 In the following line of MyWebApp.js

 dataModel = new _QueryDataModel2.default(_index2.default,
> __BASE_PATH__ + '/data/probe/'),
>

 Do you know what path should be resolved by (__BASE_PATH__ +
 'data/probe') ?

 I looked upon the the example webpage and repositories of
 paraviewweb/vtk.js and in then the resolve is

  dataModel = new _QueryDataModel2.default(_index2.default,
> ('/paraviewweb') + '/data/probe/'),
>

 but this path does not exists after

 npm install paraviewweb  --save
> npm install kw-web-suite  --save-dev
>

 In the repositories, __BASE_PATH__ shows up in karma.config. Not using
 and not knowing how to use karma the problem?

 I tried defining __BASE_PATH__ in

 var path = require('path'),
 webpack = require('webpack'),
 loaders = require('./node_modules/paravi
 ewweb/config/webpack.loaders.js'),
 plugins =
 [ new webpack.DefinePlugin(
   {
 __BASE_PATH__: ''' a lot of paths '"
   }),
 ],


 but of the lot of paths I tried, none worked.

 Hope you can help me here!
 Thanks in advance!


 Leonardo Pessanha
 Laboratory of Computational Methods in Engineering
 Federal University of Rio de Janeiro - COPPE
 Rio de Janeiro, RJ, Brasil


 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <
 sebastien.jourd...@kitware.com>:

> I think your import is correct.
>
> Regarding the sample data, this is the way you can download it via npm
> (when doing "npm install")
> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>
> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
> leonardopessanh...@gmail.com> wrote:
>
>> Hi! Thank you for the help! Because of it I was able to build and
>> start the example correctly. Now I am trying different examples such as
>> MultiLayoutViewer https://kitware.github.io/para
>> viewweb/examples/MultiLayoutViewer.html .
>> I am still a little doubtful about my imports but I believe
>>
>> import MultiLayoutViewer from '..';
>>>
>> should be
>>
>> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
>>> /MultiLayoutViewer'
>>
>>
>> Right?
>>
>> I couldn't find the package *tonic-arctic-sample-data *that holds
>> the content needed in MultiLayoutViewer, MultiLayoutRenderer and
>> Probe3DViewer examples in trough npm.
>>
>> Do you know how to do proceed?
>>
>> Thanks in advance.
>>
>> Leonardo Pessanha
>> Laboratory of Computational Methods in Engineering
>> Federal University of Rio de Janeiro - COPPE
>> Rio de Janeiro, RJ, Brasil
>>
>>
>> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
>> sebastien.jourd...@kitware.com>:
>>
>>> With ParaViewWeb, we force the user to pick

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Sebastien Jourdain
Almost, the missing part is for "dataModel = new QueryDataModel(jsonData,
'path/to/dist/data')"

'path/to/dist/data' should be '/data' since your web server is serving
path/to/dist as /

On Tue, Aug 22, 2017 at 12:23 PM, Léo Pessanha  wrote:

> So, just to be clear in order for me to understand
>
> I should copy the content of 
> 'node_modules/tonic-arctic-sample-data/data/probe/'
> to 'dist/data' and use
>
> dataModel = new QueryDataModel(jsonData, 'path/to/dist/data'),
>>
>
> in the src/index.js ?
>
> Thanks in advance!
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-22 15:01 GMT-03:00 Sebastien Jourdain  com>:
>
>> __BASE_PATH__ is meant to dynamically define the http endpoint. This
>> should not be a file path...
>> You can remove it from your code and provide a proper endpoint. For us it
>> is used on to allow local and github.io deployment.
>>
>> In your case, you need to copy that data by yourself to the dist/data
>> directory so you can access it via http...
>>
>> Hope that helps,
>>
>> Seb
>>
>> On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Thank you, Sebastien.
>>>
>>> I am able to build the example but the data don't show up yelding in the
>>> browser debugger
>>>
>>> ReferenceError: __BASE_PATH__ is not defined[Learn More]

>>>
>>> In the following line of MyWebApp.js
>>>
>>> dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__
 + '/data/probe/'),

>>>
>>> Do you know what path should be resolved by (__BASE_PATH__ +
>>> 'data/probe') ?
>>>
>>> I looked upon the the example webpage and repositories of
>>> paraviewweb/vtk.js and in then the resolve is
>>>
>>>  dataModel = new _QueryDataModel2.default(_index2.default,
 ('/paraviewweb') + '/data/probe/'),

>>>
>>> but this path does not exists after
>>>
>>> npm install paraviewweb  --save
 npm install kw-web-suite  --save-dev

>>>
>>> In the repositories, __BASE_PATH__ shows up in karma.config. Not using
>>> and not knowing how to use karma the problem?
>>>
>>> I tried defining __BASE_PATH__ in
>>>
>>> var path = require('path'),
>>> webpack = require('webpack'),
>>> loaders = require('./node_modules/paravi
>>> ewweb/config/webpack.loaders.js'),
>>> plugins =
>>> [ new webpack.DefinePlugin(
>>>   {
>>> __BASE_PATH__: ''' a lot of paths '"
>>>   }),
>>> ],
>>>
>>>
>>> but of the lot of paths I tried, none worked.
>>>
>>> Hope you can help me here!
>>> Thanks in advance!
>>>
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com>:
>>>
 I think your import is correct.

 Regarding the sample data, this is the way you can download it via npm
 (when doing "npm install")
 => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48

 On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
 leonardopessanh...@gmail.com> wrote:

> Hi! Thank you for the help! Because of it I was able to build and
> start the example correctly. Now I am trying different examples such as
> MultiLayoutViewer https://kitware.github.io/para
> viewweb/examples/MultiLayoutViewer.html .
> I am still a little doubtful about my imports but I believe
>
> import MultiLayoutViewer from '..';
>>
> should be
>
> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
>> /MultiLayoutViewer'
>
>
> Right?
>
> I couldn't find the package *tonic-arctic-sample-data *that holds the
> content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
> examples in trough npm.
>
> Do you know how to do proceed?
>
> Thanks in advance.
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
> sebastien.jourd...@kitware.com>:
>
>> With ParaViewWeb, we force the user to pick the version of the
>> dependencies they wants to install instead of forcing them.
>>
>> Regarding your import path they are still wrong.
>>
>> from paraviewweb/src/Component/Native/Composite/example/index.js
>>
>> when you import '..' that resolve to paraviewweb/src/Component/Nati
>> ve/Composite
>>
>> which means your imports should be:
>>
>> import CompositeComponent   from 'paraviewweb/src/Component/Nat
>> ive/Composite';
>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>> ive/BackgroundColor';
>>
>> On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
>> leonardopessanh...@

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Léo Pessanha
So, just to be clear in order for me to understand

I should copy the content of
'node_modules/tonic-arctic-sample-data/data/probe/' to 'dist/data' and use

dataModel = new QueryDataModel(jsonData, 'path/to/dist/data'),
>

in the src/index.js ?

Thanks in advance!

Leonardo Pessanha
Laboratory of Computational Methods in Engineering
Federal University of Rio de Janeiro - COPPE
Rio de Janeiro, RJ, Brasil


2017-08-22 15:01 GMT-03:00 Sebastien Jourdain <
sebastien.jourd...@kitware.com>:

> __BASE_PATH__ is meant to dynamically define the http endpoint. This
> should not be a file path...
> You can remove it from your code and provide a proper endpoint. For us it
> is used on to allow local and github.io deployment.
>
> In your case, you need to copy that data by yourself to the dist/data
> directory so you can access it via http...
>
> Hope that helps,
>
> Seb
>
> On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha <
> leonardopessanh...@gmail.com> wrote:
>
>> Thank you, Sebastien.
>>
>> I am able to build the example but the data don't show up yelding in the
>> browser debugger
>>
>> ReferenceError: __BASE_PATH__ is not defined[Learn More]
>>>
>>
>> In the following line of MyWebApp.js
>>
>> dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__
>>> + '/data/probe/'),
>>>
>>
>> Do you know what path should be resolved by (__BASE_PATH__ +
>> 'data/probe') ?
>>
>> I looked upon the the example webpage and repositories of
>> paraviewweb/vtk.js and in then the resolve is
>>
>>  dataModel = new _QueryDataModel2.default(_index2.default,
>>> ('/paraviewweb') + '/data/probe/'),
>>>
>>
>> but this path does not exists after
>>
>> npm install paraviewweb  --save
>>> npm install kw-web-suite  --save-dev
>>>
>>
>> In the repositories, __BASE_PATH__ shows up in karma.config. Not using
>> and not knowing how to use karma the problem?
>>
>> I tried defining __BASE_PATH__ in
>>
>> var path = require('path'),
>> webpack = require('webpack'),
>> loaders = require('./node_modules/paraviewweb/config/webpack.loaders.
>> js'),
>> plugins =
>> [ new webpack.DefinePlugin(
>>   {
>> __BASE_PATH__: ''' a lot of paths '"
>>   }),
>> ],
>>
>>
>> but of the lot of paths I tried, none worked.
>>
>> Hope you can help me here!
>> Thanks in advance!
>>
>>
>> Leonardo Pessanha
>> Laboratory of Computational Methods in Engineering
>> Federal University of Rio de Janeiro - COPPE
>> Rio de Janeiro, RJ, Brasil
>>
>>
>> 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <
>> sebastien.jourd...@kitware.com>:
>>
>>> I think your import is correct.
>>>
>>> Regarding the sample data, this is the way you can download it via npm
>>> (when doing "npm install")
>>> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>>>
>>> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
>>> leonardopessanh...@gmail.com> wrote:
>>>
 Hi! Thank you for the help! Because of it I was able to build and start
 the example correctly. Now I am trying different examples such as
 MultiLayoutViewer https://kitware.github.io/para
 viewweb/examples/MultiLayoutViewer.html .
 I am still a little doubtful about my imports but I believe

 import MultiLayoutViewer from '..';
>
 should be

 import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
> /MultiLayoutViewer'


 Right?

 I couldn't find the package *tonic-arctic-sample-data *that holds the
 content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
 examples in trough npm.

 Do you know how to do proceed?

 Thanks in advance.

 Leonardo Pessanha
 Laboratory of Computational Methods in Engineering
 Federal University of Rio de Janeiro - COPPE
 Rio de Janeiro, RJ, Brasil


 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
 sebastien.jourd...@kitware.com>:

> With ParaViewWeb, we force the user to pick the version of the
> dependencies they wants to install instead of forcing them.
>
> Regarding your import path they are still wrong.
>
> from paraviewweb/src/Component/Native/Composite/example/index.js
>
> when you import '..' that resolve to paraviewweb/src/Component/Nati
> ve/Composite
>
> which means your imports should be:
>
> import CompositeComponent   from 'paraviewweb/src/Component/Nat
> ive/Composite';
> import BGColorComponent from 'paraviewweb/src/Component/Nat
> ive/BackgroundColor';
>
> On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
> leonardopessanh...@gmail.com> wrote:
>
>> So, I was able to build using 'paraviewweb/src/' and installing
>> forcibly mout, axios and hammerjs packages.
>>
>> Now there's other js errors that I am going after like /plotly.js\
>> and global reference ones !
>>
>> It's definitely not a simple task to build an example of paraviewweb
>> as a standalone app.
>>
>> 

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Sebastien Jourdain
__BASE_PATH__ is meant to dynamically define the http endpoint. This should
not be a file path...
You can remove it from your code and provide a proper endpoint. For us it
is used on to allow local and github.io deployment.

In your case, you need to copy that data by yourself to the dist/data
directory so you can access it via http...

Hope that helps,

Seb

On Tue, Aug 22, 2017 at 11:45 AM, Léo Pessanha  wrote:

> Thank you, Sebastien.
>
> I am able to build the example but the data don't show up yelding in the
> browser debugger
>
> ReferenceError: __BASE_PATH__ is not defined[Learn More]
>>
>
> In the following line of MyWebApp.js
>
> dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__ +
>> '/data/probe/'),
>>
>
> Do you know what path should be resolved by (__BASE_PATH__ + 'data/probe')
> ?
>
> I looked upon the the example webpage and repositories of
> paraviewweb/vtk.js and in then the resolve is
>
>  dataModel = new _QueryDataModel2.default(_index2.default,
>> ('/paraviewweb') + '/data/probe/'),
>>
>
> but this path does not exists after
>
> npm install paraviewweb  --save
>> npm install kw-web-suite  --save-dev
>>
>
> In the repositories, __BASE_PATH__ shows up in karma.config. Not using and
> not knowing how to use karma the problem?
>
> I tried defining __BASE_PATH__ in
>
> var path = require('path'),
> webpack = require('webpack'),
> loaders = require('./node_modules/paraviewweb/config/webpack.
> loaders.js'),
> plugins =
> [ new webpack.DefinePlugin(
>   {
> __BASE_PATH__: ''' a lot of paths '"
>   }),
> ],
>
>
> but of the lot of paths I tried, none worked.
>
> Hope you can help me here!
> Thanks in advance!
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-14 18:38 GMT-03:00 Sebastien Jourdain  com>:
>
>> I think your import is correct.
>>
>> Regarding the sample data, this is the way you can download it via npm
>> (when doing "npm install")
>> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>>
>> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
>> leonardopessanh...@gmail.com> wrote:
>>
>>> Hi! Thank you for the help! Because of it I was able to build and start
>>> the example correctly. Now I am trying different examples such as
>>> MultiLayoutViewer https://kitware.github.io/para
>>> viewweb/examples/MultiLayoutViewer.html .
>>> I am still a little doubtful about my imports but I believe
>>>
>>> import MultiLayoutViewer from '..';

>>> should be
>>>
>>> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
 /MultiLayoutViewer'
>>>
>>>
>>> Right?
>>>
>>> I couldn't find the package *tonic-arctic-sample-data *that holds the
>>> content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
>>> examples in trough npm.
>>>
>>> Do you know how to do proceed?
>>>
>>> Thanks in advance.
>>>
>>> Leonardo Pessanha
>>> Laboratory of Computational Methods in Engineering
>>> Federal University of Rio de Janeiro - COPPE
>>> Rio de Janeiro, RJ, Brasil
>>>
>>>
>>> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
>>> sebastien.jourd...@kitware.com>:
>>>
 With ParaViewWeb, we force the user to pick the version of the
 dependencies they wants to install instead of forcing them.

 Regarding your import path they are still wrong.

 from paraviewweb/src/Component/Native/Composite/example/index.js

 when you import '..' that resolve to paraviewweb/src/Component/Nati
 ve/Composite

 which means your imports should be:

 import CompositeComponent   from 'paraviewweb/src/Component/Nat
 ive/Composite';
 import BGColorComponent from 'paraviewweb/src/Component/Nat
 ive/BackgroundColor';

 On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
 leonardopessanh...@gmail.com> wrote:

> So, I was able to build using 'paraviewweb/src/' and installing
> forcibly mout, axios and hammerjs packages.
>
> Now there's other js errors that I am going after like /plotly.js\ and
> global reference ones !
>
> It's definitely not a simple task to build an example of paraviewweb
> as a standalone app.
>
> Definitely will come back with updates.
>
> Best regards,
>
>
> Leonardo Pessanha
> Laboratory of Computational Methods in Engineering
> Federal University of Rio de Janeiro - COPPE
> Rio de Janeiro, RJ, Brasil
>
>
> 2017-08-09 19:58 GMT-03:00 Léo Pessanha 
> :
>
>> So I am not sure of the first path yet. Is it 'paraviewweb/src/' or
>> 'paraviewweb/src/Component'?
>>
>> I have the exactly same result using full path or starting with
>> 'paraviewweb'
>>
>> Using:
>>
>> import CompositeComponent   from 'paraviewweb/src/';
>>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>>> ive/BackgroundCol

Re: [Paraview] Running a simple example using ParaviewWeb

2017-08-22 Thread Léo Pessanha
Thank you, Sebastien.

I am able to build the example but the data don't show up yelding in the
browser debugger

ReferenceError: __BASE_PATH__ is not defined[Learn More]
>

In the following line of MyWebApp.js

dataModel = new _QueryDataModel2.default(_index2.default, __BASE_PATH__ +
> '/data/probe/'),
>

Do you know what path should be resolved by (__BASE_PATH__ + 'data/probe') ?

I looked upon the the example webpage and repositories of
paraviewweb/vtk.js and in then the resolve is

 dataModel = new _QueryDataModel2.default(_index2.default, ('/paraviewweb')
> + '/data/probe/'),
>

but this path does not exists after

npm install paraviewweb  --save
> npm install kw-web-suite  --save-dev
>

In the repositories, __BASE_PATH__ shows up in karma.config. Not using and
not knowing how to use karma the problem?

I tried defining __BASE_PATH__ in

var path = require('path'),
webpack = require('webpack'),
loaders =
require('./node_modules/paraviewweb/config/webpack.loaders.js'),
plugins =
[ new webpack.DefinePlugin(
  {
__BASE_PATH__: ''' a lot of paths '"
  }),
],


but of the lot of paths I tried, none worked.

Hope you can help me here!
Thanks in advance!


Leonardo Pessanha
Laboratory of Computational Methods in Engineering
Federal University of Rio de Janeiro - COPPE
Rio de Janeiro, RJ, Brasil


2017-08-14 18:38 GMT-03:00 Sebastien Jourdain <
sebastien.jourd...@kitware.com>:

> I think your import is correct.
>
> Regarding the sample data, this is the way you can download it via npm
> (when doing "npm install")
> => https://github.com/Kitware/paraviewweb/blob/master/package.json#L48
>
> On Mon, Aug 14, 2017 at 3:12 PM, Léo Pessanha <
> leonardopessanh...@gmail.com> wrote:
>
>> Hi! Thank you for the help! Because of it I was able to build and start
>> the example correctly. Now I am trying different examples such as
>> MultiLayoutViewer https://kitware.github.io/para
>> viewweb/examples/MultiLayoutViewer.html .
>> I am still a little doubtful about my imports but I believe
>>
>> import MultiLayoutViewer from '..';
>>>
>> should be
>>
>> import MultiLayoutViewer from 'paraviewweb/src/React/Viewers
>>> /MultiLayoutViewer'
>>
>>
>> Right?
>>
>> I couldn't find the package *tonic-arctic-sample-data *that holds the
>> content needed in MultiLayoutViewer, MultiLayoutRenderer and Probe3DViewer
>> examples in trough npm.
>>
>> Do you know how to do proceed?
>>
>> Thanks in advance.
>>
>> Leonardo Pessanha
>> Laboratory of Computational Methods in Engineering
>> Federal University of Rio de Janeiro - COPPE
>> Rio de Janeiro, RJ, Brasil
>>
>>
>> 2017-08-10 11:35 GMT-03:00 Sebastien Jourdain <
>> sebastien.jourd...@kitware.com>:
>>
>>> With ParaViewWeb, we force the user to pick the version of the
>>> dependencies they wants to install instead of forcing them.
>>>
>>> Regarding your import path they are still wrong.
>>>
>>> from paraviewweb/src/Component/Native/Composite/example/index.js
>>>
>>> when you import '..' that resolve to paraviewweb/src/Component/Nati
>>> ve/Composite
>>>
>>> which means your imports should be:
>>>
>>> import CompositeComponent   from 'paraviewweb/src/Component/Nat
>>> ive/Composite';
>>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>>> ive/BackgroundColor';
>>>
>>> On Wed, Aug 9, 2017 at 7:37 PM, Léo Pessanha <
>>> leonardopessanh...@gmail.com> wrote:
>>>
 So, I was able to build using 'paraviewweb/src/' and installing
 forcibly mout, axios and hammerjs packages.

 Now there's other js errors that I am going after like /plotly.js\ and
 global reference ones !

 It's definitely not a simple task to build an example of paraviewweb as
 a standalone app.

 Definitely will come back with updates.

 Best regards,


 Leonardo Pessanha
 Laboratory of Computational Methods in Engineering
 Federal University of Rio de Janeiro - COPPE
 Rio de Janeiro, RJ, Brasil


 2017-08-09 19:58 GMT-03:00 Léo Pessanha :

> So I am not sure of the first path yet. Is it 'paraviewweb/src/' or
> 'paraviewweb/src/Component'?
>
> I have the exactly same result using full path or starting with
> 'paraviewweb'
>
> Using:
>
> import CompositeComponent   from 'paraviewweb/src/';
>> import BGColorComponent from 'paraviewweb/src/Component/Nat
>> ive/BackgroundColor';
>>
>
> Outputs a lot of:
>
> Module not found: Error: Can't resolve
>>
>
> So I did a 'npm list x' with x being the modules it couldn't
> resolve(axios, hammerjs and etc) and none of then was installed.
>
> root@PC:~/MyWebProject# npm list hammerjs
>> projeto1@0.0.1 /home/gabriel/MyWebProject
>> └── (empty)
>>
>> root@PC:~/MyWebProject# npm list axios
>> projeto1@0.0.1 /home/gabriel/MyWebProject
>> └── (empty)
>>
>
>
> Do you believe *npm install paraviewweb --save* and npm install 
> *kw-w

[Paraview] ParaView superbuild for 5.4.1 tagged

2017-08-22 Thread Cory Quammen
Hi folks,

ParaView's superbuild git repository has now been tagged with v5.4.1.

Thanks,
Cory

-- 
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] paraview.simple

2017-08-22 Thread Guillermo

Hi,

I noticed that I do not have the file libvtkCommonCorePython27 nor 
libvtkCommonCorePython. However, I have the files 
libvtkCommonColorPython27D-pv5.3.so and 
libvtkCommonColorPython27D-pv5.3.so.1.


I have already tried to execute my script following your instructions 
but it did not work.


This makes me think that I do not properly installed paraview-5.3. So I 
am going to reinstall it again.


I would let you know if that fixes the problem.

Thanks,

Guillermo S.


On 22/08/17 13:46, Cory Quammen wrote:

Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo  wrote:

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work
(I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
File "./", line XX, in 
from paraview.simple import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
  from paraview import servermanager
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
  from paraview import vtk
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
  from paraview.vtk.vtkCommonCore import *
File

"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
  from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the
corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export

PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on
the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

   sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also
I
was using a python script which uses paraview to take some snapshoots
and it
worked really well. The problem is that now, when I want to use this
python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about
this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and paste

Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Oops, I failed to change the version number in the line I gave you,
but caught that and corrected it, just not quite to the right version
number.

Try

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Basically, you have to set the PYTHONPATH to where the lib*Python.so
files are located. Make sure
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3
exists and confirm that a file starting with libvtkCommonCorePython27
is there.

Stepping back a bit, you wouldn't have to do any of this PYTHONPATH
stuff if you just add

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin

to your PATH.

HTH,
Cory

On Tue, Aug 22, 2017 at 1:38 PM, Guillermo  wrote:
> I forgot to mention that the error message is the same as before.
>
>
> On 22/08/17 13:24, Cory Quammen wrote:
>>
>> Guillermo,
>>
>> Please CC the mailing list so others can participate and learn from
>> the discussion.
>>
>> That looks like progress. Now try adding to your .bashrc:
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4
>>
>> HTH,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
>>  wrote:
>>>
>>> Hi Cory,
>>>
>>> Thank you very much for your fast response. Unfortunately it didn't work
>>> (I
>>> just copied and pasted into the .bashrc the sentence you gave to me).
>>> However, the new error message is:
>>>
>>> Error: Could not import vtkCommonComputationalGeometry
>>> Traceback (most recent call last):
>>>File "./", line XX, in 
>>> from paraview.simple import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
>>> line 43, in 
>>>  from paraview import servermanager
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
>>> line 53, in 
>>>  from paraview import vtk
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
>>> line 7, in 
>>>  from paraview.vtk.vtkCommonCore import *
>>>File
>>>
>>> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
>>> line 9, in 
>>>  from vtkCommonCorePython import *
>>> ImportError: No module named vtkCommonCorePython
>>>
>>> I have searched around the Internet and I found a thread that I though it
>>> could help:
>>> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>>>
>>> The idea is to use this:
>>>
>>> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>>>
>>> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages:
>>> your-install
>>> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>>>
>>> I copied and pasted this on my .bashrc file substituting the
>>> corresponding
>>> names, but it didn't work. :(
>>>
>>> Any idea?
>>>
>>> Really grateful,
>>>
>>> Guillermo S.
>>>
>>>
>>>
>>>
>>> 2017-08-22 12:31 GMT-01:00 Cory Quammen :

 Hi Guillermo,

 I think the content in that wiki page is outdated.

 Try setting PYTHONPATH to the following in your .bashrc

 export

 PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

 See if that works and let us know,
 Cory

 On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
  wrote:
>
> Dear all,
>
> Yesterday I installed paraview v5.3 using the binaries from the website
> on my Linux (ubuntu) OS. The steps followed are (they my influence on
> the
> final result):
>
> Download the binaries from http://www.paraview.org. For me this results
> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> Extract and copy them:
>
> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
> sudo emacs ~/.bashrc
>
> then insert the following line, save & close
>
> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
>
> Then I created a symbolic link:
>
>   sudo ln -s
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
> /usr/bin/paraview
>
>   sudo ln -s
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
> /usr/lib/paraview-5.3
>
> Before installing paraview from the binaries files I was using the
> version from Ubuntu repositories (paraview version 5.0 [I think]). Also
> I
> was using a python script which uses paraview to take some snapshoots
> and it
> worked really well. The problem is that now, when I want to use this
> python
> script, it reports this message:
>
> "from paraview.simple import *
> ImportError: No module named paraview.simple"
>
> I have made some searches on the Internet and I found a web page about
> this problem: https://www.paraview.org

Re: [Paraview] paraview.simple

2017-08-22 Thread Guillermo

I forgot to mention that the error message is the same as before.


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work (I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
   File "./", line XX, in 
from paraview.simple import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
 from paraview import servermanager
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
 from paraview import vtk
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
 from paraview.vtk.vtkCommonCore import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
 from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
was using a python script which uses paraview to take some snapshoots and it
worked really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about
this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted
the computer but it still does not work.

Could you please help me?

Best regards,

Guillermo 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




--
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] paraview.simple

2017-08-22 Thread Guillermo

Hi Cory,

I just copied and pasted that sentence on my .bashrc but it doesn't 
work. Also I have tried typing .../paraview-5.3.0 but neither works.


Thanks,

Guillermo


On 22/08/17 13:24, Cory Quammen wrote:

Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:

Hi Cory,

Thank you very much for your fast response. Unfortunately it didn't work (I
just copied and pasted into the .bashrc the sentence you gave to me).
However, the new error message is:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
   File "./", line XX, in 
from paraview.simple import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 43, in 
 from paraview import servermanager
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
line 53, in 
 from paraview import vtk
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
line 7, in 
 from paraview.vtk.vtkCommonCore import *
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
line 9, in 
 from vtkCommonCorePython import *
ImportError: No module named vtkCommonCorePython

I have searched around the Internet and I found a thread that I though it
could help:
http://public.kitware.com/pipermail/paraview/2014-February/030506.html

The idea is to use this:

setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}

setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
/lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk

I copied and pasted this on my .bashrc file substituting the corresponding
names, but it didn't work. :(

Any idea?

Really grateful,

Guillermo S.




2017-08-22 12:31 GMT-01:00 Cory Quammen :

Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
 wrote:

Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website
on my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

Download the binaries from http://www.paraview.org. For me this results
in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
Extract and copy them:

tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
sudo emacs ~/.bashrc

then insert the following line, save & close

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/

Then I created a symbolic link:

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

  sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the
version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
was using a python script which uses paraview to take some snapshoots and it
worked really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about
this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted
the computer but it still does not work.

Could you please help me?

Best regards,

Guillermo 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




--
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] paraview.simple

2017-08-22 Thread Cory Quammen
Guillermo,

Please CC the mailing list so others can participate and learn from
the discussion.

That looks like progress. Now try adding to your .bashrc:

export 
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.4

HTH,
Cory

On Tue, Aug 22, 2017 at 10:19 AM, Guillermo Suárez
 wrote:
> Hi Cory,
>
> Thank you very much for your fast response. Unfortunately it didn't work (I
> just copied and pasted into the .bashrc the sentence you gave to me).
> However, the new error message is:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line XX, in 
> from paraview.simple import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 43, in 
> from paraview import servermanager
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/servermanager.py",
> line 53, in 
> from paraview import vtk
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/__init__.py",
> line 7, in 
> from paraview.vtk.vtkCommonCore import *
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/vtk/vtkCommonCore.py",
> line 9, in 
> from vtkCommonCorePython import *
> ImportError: No module named vtkCommonCorePython
>
> I have searched around the Internet and I found a thread that I though it
> could help:
> http://public.kitware.com/pipermail/paraview/2014-February/030506.html
>
> The idea is to use this:
>
> setenv LD_LIBRARY_PATH  your-install/lib/paraview-4.1:${LD_LIBRARY_PATH}
>
> setenv PYTHONPATH your-install /lib/paraview-4.1/site-packages: your-install
> /lib/paraview-4.1: your-install /lib/paraview-4.1/site-packages/vtk
>
> I copied and pasted this on my .bashrc file substituting the corresponding
> names, but it didn't work. :(
>
> Any idea?
>
> Really grateful,
>
> Guillermo S.
>
>
>
>
> 2017-08-22 12:31 GMT-01:00 Cory Quammen :
>>
>> Hi Guillermo,
>>
>> I think the content in that wiki page is outdated.
>>
>> Try setting PYTHONPATH to the following in your .bashrc
>>
>> export
>> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages
>>
>> See if that works and let us know,
>> Cory
>>
>> On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez
>>  wrote:
>>>
>>> Dear all,
>>>
>>> Yesterday I installed paraview v5.3 using the binaries from the website
>>> on my Linux (ubuntu) OS. The steps followed are (they my influence on the
>>> final result):
>>>
>>> Download the binaries from http://www.paraview.org. For me this results
>>> in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> Extract and copy them:
>>>
>>> tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>>> sudo emacs ~/.bashrc
>>>
>>> then insert the following line, save & close
>>>
>>> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
>>>
>>> Then I created a symbolic link:
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
>>> /usr/bin/paraview
>>>
>>>  sudo ln -s
>>> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
>>> /usr/lib/paraview-5.3
>>>
>>> Before installing paraview from the binaries files I was using the
>>> version from Ubuntu repositories (paraview version 5.0 [I think]). Also I
>>> was using a python script which uses paraview to take some snapshoots and it
>>> worked really well. The problem is that now, when I want to use this python
>>> script, it reports this message:
>>>
>>> "from paraview.simple import *
>>> ImportError: No module named paraview.simple"
>>>
>>> I have made some searches on the Internet and I found a web page about
>>> this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
>>> I have copied and pasted those sentences on my .bashrc file, restarted
>>> the computer but it still does not work.
>>>
>>> Could you please help me?
>>>
>>> Best regards,
>>>
>>> Guillermo 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
>>>
>>
>>
>>
>> --
>> Cory Quammen
>> Staff R&D Engineer
>> Kitware, Inc.
>
>



-- 
Cory Quammen
Staff R&D Engineer
Kitware, Inc.
___
Powered by www.kitware.com

Visit other Kitware open-source projects at 
http://www.kitware.com/opensource/opensource.html

Please keep messages on-topic and check the ParaView Wiki at: 
http://paraview.org/Wiki/ParaView

Search the list archives at: ht

Re: [Paraview] paraview.simple

2017-08-22 Thread Cory Quammen
Hi Guillermo,

I think the content in that wiki page is outdated.

Try setting PYTHONPATH to the following in your .bashrc

export PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-
OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages

See if that works and let us know,
Cory

On Tue, Aug 22, 2017 at 6:04 AM, Guillermo Suárez  wrote:

> Dear all,
>
> Yesterday I installed paraview v5.3 using the binaries from the website on
> my Linux (ubuntu) OS. The steps followed are (they my influence on the
> final result):
>
>1. Download the binaries from http://www.paraview.org. For me this
>   results in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>   2. Extract and copy them:
>
>   tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>   sudo emacs ~/.bashrc
>
>   3. then insert the following line, save & close
>
>   export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
>   bin/
>
>
> Then I created a symbolic link:
>
>  sudo ln -s 
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
> /usr/bin/paraview
>
>  sudo ln -s 
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
> /usr/lib/paraview-5.3
>
> Before installing paraview from the binaries files I was using the version
> from Ubuntu repositories (paraview version 5.0 [I think]). Also I was using
> a python script which uses paraview to take some snapshoots and it worked
> really well. The problem is that now, when I want to use this python
> script, it reports this message:
>
> "from paraview.simple import *
> ImportError: No module named paraview.simple"
>
> I have made some searches on the Internet and I found a web page about
> this problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
> I have copied and pasted those sentences on my .bashrc file, restarted the
> computer but it still does not work.
>
> Could you please help me?
>
> Best regards,
>
> Guillermo 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
>
>


-- 
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] Point Dataset Interpolator - EllipsoidalGaussianKernel

2017-08-22 Thread M P
... reading it again, the "Sharpness" parameter is clear - for my purpose
of uniform weights it should be as low as possible. But some exact equation
would still be useful.

On Tue, Aug 22, 2017 at 11:36 AM, M P  wrote:

> Hello all,
>
> I am trying to setup this filter to sample a point volume dataset along a
> defined spline curve. The ideal "kernel" for my purpose would be a short
> cylinder with some relatively big radius and constant weight in the whole
> volume of the cylinder (the axis of this cylinder should follow the
> direction vector of the spline). From all the kernels available for this
> filter the "EllipsoidalGaussianKernel" seems to be the most suitable. But I
> have a problem understanding what some of the parameters exactly mean.
>
> --
> "Use Normals": Specify whether vector values should be used to affect the
> shape of the Gaussian distribution.
>
> ?: What Normals vector values are meant here? Is it the normal to the
> spline or some vector from dataset? And how is then the kernel oriented if
> this option is not used?
> --
> "Use Scalars"
>
> ?: Similar question, what scalar is meant here and how is the weighting
> done? But I guess this is not important for my use case
> --
> "Sharpness": Specify the sharpness (i.e., falloff) of the Gaussian. By
> default Sharpness=2. As the sharpness increases the effects of distant
> points are reduced.
>
> ?: I would like all the dataset points have the same weight - so I guess I
> need maximum sharpness (like 20) - but this parameter help comment indicate
> that it works the opposite way - higher value means lower weight of distant
> points
> --
> "Eccentricity": Specify the eccentricity of the ellipsoidal Gaussian. A
> value=1.0 produces a spherical distribution. Values less than 1 produce a
> needle like distribution (in the direction of the normal); values greater
> than 1 produce a pancake like distribution (orthogonal to the normal.
>
> ?: Here I am confused by the word "normal", should I understand that it
> actually means direction vector?
> --
>
> Is there some paper or book where this parameters are exactly explained,
> or could someone point me to a source code where this is implemented (and
> hopefully it would be possible to understand from there)?
>
> Best regards,
>
> Martin
>
>
___
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] paraview.simple

2017-08-22 Thread Guillermo Suárez
Dear all,

Yesterday I installed paraview v5.3 using the binaries from the website on
my Linux (ubuntu) OS. The steps followed are (they my influence on the
final result):

   1. Download the binaries from http://www.paraview.org. For me this
  results in: ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
  2. Extract and copy them:

  tar xzvf -C /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
  sudo emacs ~/.bashrc

  3. then insert the following line, save & close

  export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/


Then I created a symbolic link:

 sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/paraview
/usr/bin/paraview

 sudo ln -s
/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/
/usr/lib/paraview-5.3

Before installing paraview from the binaries files I was using the version
from Ubuntu repositories (paraview version 5.0 [I think]). Also I was using
a python script which uses paraview to take some snapshoots and it worked
really well. The problem is that now, when I want to use this python
script, it reports this message:

"from paraview.simple import *
ImportError: No module named paraview.simple"

I have made some searches on the Internet and I found a web page about this
problem: https://www.paraview.org/Wiki/ParaView/EnvironmentSetup
I have copied and pasted those sentences on my .bashrc file, restarted the
computer but it still does not work.

Could you please help me?

Best regards,

Guillermo 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


[Paraview] Point Dataset Interpolator - EllipsoidalGaussianKernel

2017-08-22 Thread M P
Hello all,

I am trying to setup this filter to sample a point volume dataset along a
defined spline curve. The ideal "kernel" for my purpose would be a short
cylinder with some relatively big radius and constant weight in the whole
volume of the cylinder (the axis of this cylinder should follow the
direction vector of the spline). From all the kernels available for this
filter the "EllipsoidalGaussianKernel" seems to be the most suitable. But I
have a problem understanding what some of the parameters exactly mean.

--
"Use Normals": Specify whether vector values should be used to affect the
shape of the Gaussian distribution.

?: What Normals vector values are meant here? Is it the normal to the
spline or some vector from dataset? And how is then the kernel oriented if
this option is not used?
--
"Use Scalars"

?: Similar question, what scalar is meant here and how is the weighting
done? But I guess this is not important for my use case
--
"Sharpness": Specify the sharpness (i.e., falloff) of the Gaussian. By
default Sharpness=2. As the sharpness increases the effects of distant
points are reduced.

?: I would like all the dataset points have the same weight - so I guess I
need maximum sharpness (like 20) - but this parameter help comment indicate
that it works the opposite way - higher value means lower weight of distant
points
--
"Eccentricity": Specify the eccentricity of the ellipsoidal Gaussian. A
value=1.0 produces a spherical distribution. Values less than 1 produce a
needle like distribution (in the direction of the normal); values greater
than 1 produce a pancake like distribution (orthogonal to the normal.

?: Here I am confused by the word "normal", should I understand that it
actually means direction vector?
--

Is there some paper or book where this parameters are exactly explained, or
could someone point me to a source code where this is implemented (and
hopefully it would be possible to understand from there)?

Best regards,

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