Re: [Paraview] Fwd: paraview.simple

2017-09-18 Thread Guillermo

Sorry but I could not fix it.

I removed the ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit from /opt/ 
directory


Reinstalled paraview following the steps I have indicated on the 
previous email.


I have deleted all sentences from ~/.bashrc except the first one: "export 
PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/"

Run paraview as:

paraview

And worked fine.
However I executed the script as you indicated:

pvpython 

And the error message is:

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/libgfortran.so.3:
version `GFORTRAN_1.4' not found (required by /usr/lib/libarpack.so.2)
Traceback (most recent call last):
  File , line 47, in 
reader = OpenDataFile(prefix+ '.vtu'); #This is sentence from my script
  File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 846, in OpenDataFile
raise RuntimeError (msg)

I am really sorry for the inconveniences. Guillermo


On 18/09/17 13:59, Cory Quammen wrote:

On Sat, Sep 16, 2017 at 7:48 AM, Guillermo  wrote:

Hi Cory,

I am trying again to install paraview 5.3. I have downloaded it from the
paraview webpage. I am using Ubuntu 16.04 LTS; OS type 64-bit. Then I
followed these steps:

tar xzvf ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz

sudo mv ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit /opt/

sudo emacs ~/.bashrc # and added the following lines:

export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
export
PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping/site-packages
#fixes "no module named paraview"
export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/bin #fixes
"ImportError: No module named libvtkCommonPython"
export
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packagesexport
PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Setting the PYTHONPATH is not necessary to use pvpython. pvpython sets
up the necessary system paths within the Python executable so you
don't have to.


Saved and exit

#Created the symbolic links

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

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

#Restarted the computer and then executed:

./paraview

This command means "launch the paraview executable in my current
working directory". To use the paraview executable in your PATH,
remove the ./ and run

paraview

This will make sure the paraview found on your PATH is executed.


And paraview opens and works fine.

# Execute the script I mentioned in previous emails:

./

And the following error message appears:

Error: Could not import vtkCommonComputationalGeometry
Traceback (most recent call last):
   File "./", line 42, 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

Then I tried running it by using:

./pvpython 

And the error message is the following:

bash: ./pvpython: No such file or directory

Again, when you run ./pvpython, it is looking for a pvpython
executable in the present working directory. Drop the ./ and it should
work.


I have also tried by using:

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

And the message is:

/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/libgfortran.so.3:
version `GFORTRAN_1.4' not found (required by /usr/lib/libarpack.so.2)
Traceback (most recent call last):
   File , line 47, in 
 reader = OpenDataFile(prefix+ '.vtu');
   File
"/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
line 846, in OpenDataFile
 raise RuntimeError (msg)

My python version is (python --version) Python 2.7.12

This is strange. I don't see the same when I download ParaView 5.3 on
Ubuntu 16.04. I wonder if you are pulling in something by setting
PYTHONPATH? Try not setting PYTHONPATH (it isn't needed to use
pvpython) and see if that resolves the error.

HTH,
Cory


My script starts with:
#!/usr/bin/python
import re,sys,os,shutil
-- and I also use --
from paraview.simple import *

Sorry for the inconveniences.

Really grateful,

Guillermo S.



On 07/09/17 18:54, Cory Quammen wrote:

I usually use:
./

I think you would be better off running 

Re: [Paraview] Fwd: paraview.simple

2017-09-18 Thread Cory Quammen
On Sat, Sep 16, 2017 at 7:48 AM, Guillermo  wrote:
> Hi Cory,
>
> I am trying again to install paraview 5.3. I have downloaded it from the
> paraview webpage. I am using Ubuntu 16.04 LTS; OS type 64-bit. Then I
> followed these steps:
>
> tar xzvf ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit.tar.gz
>
> sudo mv ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit /opt/
>
> sudo emacs ~/.bashrc # and added the following lines:
>
> export PATH=$PATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/
> export
> PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/Utilities/VTKPythonWrapping/site-packages
> #fixes "no module named paraview"
> export PYTHONPATH=$PYTHONPATH:/home/doriad/bin/ParaView/bin #fixes
> "ImportError: No module named libvtkCommonPython"
> export
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packagesexport
> PYTHONPATH=$PYTHONPATH:/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3

Setting the PYTHONPATH is not necessary to use pvpython. pvpython sets
up the necessary system paths within the Python executable so you
don't have to.

> Saved and exit
>
> #Created the symbolic links
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/bin/paraview
>
> sudo ln -s /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/
> /usr/lib/paraview
>
> #Restarted the computer and then executed:
>
> ./paraview

This command means "launch the paraview executable in my current
working directory". To use the paraview executable in your PATH,
remove the ./ and run

paraview

This will make sure the paraview found on your PATH is executed.

> And paraview opens and works fine.
>
> # Execute the script I mentioned in previous emails:
>
> ./
>
> And the following error message appears:
>
> Error: Could not import vtkCommonComputationalGeometry
> Traceback (most recent call last):
>   File "./", line 42, 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
>
> Then I tried running it by using:
>
> ./pvpython 
>
> And the error message is the following:
>
> bash: ./pvpython: No such file or directory

Again, when you run ./pvpython, it is looking for a pvpython
executable in the present working directory. Drop the ./ and it should
work.

> I have also tried by using:
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/bin/pvpython  script>
>
> And the message is:
>
> /opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/paraview-5.3/libgfortran.so.3:
> version `GFORTRAN_1.4' not found (required by /usr/lib/libarpack.so.2)
> Traceback (most recent call last):
>   File , line 47, in 
> reader = OpenDataFile(prefix+ '.vtu');
>   File
> "/opt/ParaView-5.3.0-Qt5-OpenGL2-MPI-Linux-64bit/lib/python2.7/site-packages/paraview/simple.py",
> line 846, in OpenDataFile
> raise RuntimeError (msg)
>
> My python version is (python --version) Python 2.7.12

This is strange. I don't see the same when I download ParaView 5.3 on
Ubuntu 16.04. I wonder if you are pulling in something by setting
PYTHONPATH? Try not setting PYTHONPATH (it isn't needed to use
pvpython) and see if that resolves the error.

HTH,
Cory

> My script starts with:
> #!/usr/bin/python
> import re,sys,os,shutil
> -- and I also use --
> from paraview.simple import *
>
> Sorry for the inconveniences.
>
> Really grateful,
>
> Guillermo S.
>
>
>
> On 07/09/17 18:54, Cory Quammen wrote:
>>>
>>> I usually use:
>>> ./
>>
>> I think you would be better off running your script with
>>
>> ./pvpython 
>>
>> pvpython comes with the ParaView binary and is located in the same
>> directory as the 'paraview' executable. pvpython uses the same Python
>> as ParaView is, so compatibility with some local Python on your system
>> is not a problem. Further, pvpython sets up Python environment to
>> provide access to the ParaView and VTK Python modules without having
>> to set up any environment variables.
>>
>>> but I also tried with:
>>> python3 
>>
>> python3 definitely won't work with the official ParaView binaries,
>> which are built against Python 2.7.
>>
>> HTH,
>> Cory
>>
>>> Guillermo
>>>
>>> P.S: With the version 5.0.1 installed and working fine (the script works)
>>> I
>>> have searched the lib you mentioned to me but I do not have it.
>>>
>>> 2017-08-23 13:15 GMT-01:00 Cory Quammen 

Re: [Paraview] Connecting points

2017-09-18 Thread Andy Bauer
Hi,

Please keep the discussions on the mailing list so that everyone that wants
to see what was discussed can.

https://www.paraview.org/Wiki/ParaView/Data_formats#CSV_.28Comma_Separated_Variable.29_files
has information on reading in a csv file into ParaView. From this though
you will still need to convert this information into points and then add
cells as needed. The ParaView User's Guide is available at
https://www.paraview.org/paraview-guide/ and should be able to give you
more guidance on what you want to do.

Cheers,
Andy

On Mon, Sep 18, 2017 at 6:53 AM, Doina Gumeniuc (224252 MAHS) <224...@via.dk
> wrote:

> Hi Andy,
>
> I am very new with paraview and it is confusing. I have a csv file where I
> show x,y and z of the points. Now, between those points, in real life, I
> have timoshenko beams. How can I arrange this info (length, siftness, cross
> sectional area, etc) in csv so paraview can read it? I would really
> appreciate some directions. Thank you!
> --
> *From:* Andy Bauer 
> *Sent:* September 14, 2017 4:13:02 PM
> *To:* Doina Gumeniuc (224252 MAHS)
> *Cc:* paraview@paraview.org
> *Subject:* Re: [Paraview] Connecting points
>
> Hi,
>
> ParaView has line cells which is what you probably want to use. The line
> cells themselves have no concept of cross section but you can add that as
> field data.
>
> Beyond this, how are you getting your points into ParaView? Wherever that
> is being done you'll probably want to add in the line cells at that point
> in your workflow. Another option is using the Python Programmable Filter to
> make those cells -- see https://www.paraview.org/Wiki/Python_Programmable_
> Filter.
>
> Cheers,
> Andy
>
> On Thu, Sep 14, 2017 at 6:02 AM, Doina Gumeniuc (224252 MAHS) <
> 224...@via.dk> wrote:
>
>> Hi dear users,
>>
>> I would really appreciate if you could guide me on how to connect points
>> with beam elements, FEM style.
>>
>> Thank you!
>>
>> ___
>> 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] Subdomain

2017-09-18 Thread Cory Quammen
On Wed, Sep 13, 2017 at 1:58 AM, Muhammad Kashif Saeed
 wrote:
> Can I make Programmable clip filter which can clip 200 or more sections of
> domain separately?

Sure, you can, but it may be slow.

Could you define your subdomains in a regular grid structure with a
number of even divisions in X, Y, and Z? If so, you may be better off
creating a grid structure with your 200 subdomains and then use the
vtkCellLocator approach I outlined earlier in this thread.

Cory

-- 
Cory Quammen
Staff R 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] Input files

2017-09-18 Thread Cory Quammen
Hi,

Welcome to ParaView!

It sounds like you might find several items in ParaView's help menu useful:

* Getting Started with ParaView
* ParaView Tutorial
* ParaView Guide

If you have more specific questions about how to load your data,
please describe the kind of data you have. Is it points? Is it a
volumetric mesh? Etc.

Thanks,
Cory

On Mon, Sep 18, 2017 at 8:54 AM, Doina Gumeniuc (224252 MAHS)
<224...@via.dk> wrote:
> Hi dear users,
>
> This might sound a bit stupid, but I am new in paraview and I have hard
> times understanding how this tool works: for instance, I do not understand
> how is paraview reading info such as radius in specific points, how can I
> generate surface and not just some floating points in space, how can I build
> based on cross sectional area and height. So far, the only info I could
> implement is x, y and z of points through csv file.
>
> Could anyone please support me with theoretical material and so on?
>
> Thank you!
>
> I would really appreciate an example of a 3D model file readable in
> 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
>



-- 
Cory Quammen
Staff R 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


[Paraview] Input files

2017-09-18 Thread Doina Gumeniuc (224252 MAHS)
Hi dear users,

This might sound a bit stupid, but I am new in paraview and I have hard times 
understanding how this tool works: for instance, I do not understand how is 
paraview reading info such as radius in specific points, how can I generate 
surface and not just some floating points in space, how can I build based on 
cross sectional area and height. So far, the only info I could implement is x, 
y and z of points through csv file.

Could anyone please support me with theoretical material and so on?

Thank you!

I would really appreciate an example of a 3D model file readable in 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] problem with visibility control in the animation view ...

2017-09-18 Thread Ufuk Utku Turuncoglu (BE)

Hi,

I am trying to create animation by playing visibility of a Tube. In this 
case, the visibility of the Tube is 0 at the beginning but after certain 
time step (at 30), i am setting it to 1. Until this point everything 
fine and i could define it in the animation panel but when i go to a 
specific time step that visibility is 1 (i.e. 30), the Tube is appearing 
but ParaView also enable the Polar Axes which is not enabled in the 
original visualization pipeline. The visualization is deformed due to 
this problem because the polar coordinate axes is appearing in the 
middle of the visualization. I think that there is a bug in both 
ParaView 5.3 and 5.4.1 and it enable this feature by default when the 
animation control is used. Anyway, until it is fixed, i just wonder that 
is there any work around to fix this problem.


Regards,

--ufuk

___
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