Re: [Paraview] Problem with EnSight reader

2009-06-24 Thread Zhanping Liu
Hi Johannes:

Would you please send me your dataset(s) and tell me the procedure used
to re-produce the bug? Then I will fix it.

Thanks.

-Zhanping
-- 
Zhanping Liu, PhD
Kitware, Inc.
28 Corporate Drive
Clifton Park, NY 12065-8662
Phone: 518-371-3971 x 138
http://www.zhanpingliu.org

On Wed, Jun 24, 2009 at 3:40 PM, Johannes Kastner wrote:

> Hi,
>
> I am trying to import a multi block EnSight Gold file into paraview
> (latest sources from cvs, Linux x86_64). The reader works fine
> and the geometry is properly displayed. However, I am missing all
> the data arrays, although I don't get any error message.
> I've check my ensight files with the ens_checker utility from
> http://aero.ist.utl.pt/~rreis/ens_checker.64 , which tells me that
> the data format is ok.
> I also tried paraview 3.2 and 3.4, both on Linux 64bit
> and Windows 32 bit -- the result was always the same:
> no error, but no data as well. I am quite puzzled, and I would
> appreciate if anyone could give me a hint.
>
> Thanks in advance,
> best regards
>
> Johannes
> __
> GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
> Jetzt freischalten unter http://movieflat.web.de
>
> ___
> 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] Problem with EnSight reader

2009-06-24 Thread Johannes Kastner
Hi,

I am trying to import a multi block EnSight Gold file into paraview
(latest sources from cvs, Linux x86_64). The reader works fine
and the geometry is properly displayed. However, I am missing all
the data arrays, although I don't get any error message.
I've check my ensight files with the ens_checker utility from
http://aero.ist.utl.pt/~rreis/ens_checker.64 , which tells me that
the data format is ok.
I also tried paraview 3.2 and 3.4, both on Linux 64bit
and Windows 32 bit -- the result was always the same:
no error, but no data as well. I am quite puzzled, and I would
appreciate if anyone could give me a hint.

Thanks in advance,
best regards

Johannes
__
GRATIS für alle WEB.DE-Nutzer: Die maxdome Movie-FLAT!
Jetzt freischalten unter http://movieflat.web.de

___
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] Inability to build static

2009-06-24 Thread Timothy M. Shead

Fabian, Nathan wrote:

Hi,
 
It looks like when Python is enabled, BUILD_SHARED_LIBS is forced on in

cmake.  Is there any way to work around that and build python with static or
is that impossible?

Thanks,
Nathan.


To extend Python with static modules isn't impossible (this is how the 
"builtin" modules in Python work), but it means building your own python 
from scratch so you can link-in those static modules.


Cheers,
Tim

--
Timothy M. Shead
Data Analysis & Visualization (1424)
Sandia National Laboratories
505-284-0139

___
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] Inability to build static

2009-06-24 Thread Fabian, Nathan
Hi,
 
It looks like when Python is enabled, BUILD_SHARED_LIBS is forced on in
cmake.  Is there any way to work around that and build python with static or
is that impossible?

Thanks,
Nathan.


___
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] Ensight Imort Multiblock Datasets

2009-06-24 Thread bastil2...@yahoo.de
Berk Geveci schrieb:
>> using the latest cvs I have problems:
>>
>> from libvtkGraphicsPython import *
>>
>> ImportError: libvtkGraphicsPythonD.so.pv3.7: File not found
>> 
>
> Strange. Are you building with rpath off? You may have to set your
> LD_LIBRARY_PATH to where the ParaView libraries are.
>
>   
Yes with turning it on I did not get it build. I have it working now by
doing an install.
>>* First reading mutliblockdataset and extracting blocks afterwards
>>  doubles memory requirements I think?
>> 
>
> Nope. I used shallow copy which copies pointers to the actual data
> arrays. This would use a bit of extra memory - for some pointers
> essentially. For something bigger than a few Kbytes, this would be
> completely negligible. It should also be super fast as there is no
> copying going on. Let me know if you run into performance problems. It
> may be a bit slow to create 80 pipeline elements because it is going
> to create object inspector panels for each.
>
>   
Fine. I was not aware of that. It is litte slow for my ensight cases
with about 100 parts - but it works great.
>>* I still have all parts as a mutliblockdataset i think which I do
>>  not like (some filters do not run ...)
>> 
>
> Nope. The output of each filter will be a vtkDataSet - whatever you
> block data type is. Note that this script works only for multi-block
> datasets that are 1 layer deep (such as the one produced by Ensight).
> It would not do the right thing if your multi-block tree is deeper.
>   
Ok thanks.

Final question: How can it be run automatically after the Ensight-reader?
> Best,
> -berk
> ___
> 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] Ensight Imort Multiblock Datasets

2009-06-24 Thread Berk Geveci
> using the latest cvs I have problems:
>
> from libvtkGraphicsPython import *
>
> ImportError: libvtkGraphicsPythonD.so.pv3.7: File not found

Strange. Are you building with rpath off? You may have to set your
LD_LIBRARY_PATH to where the ParaView libraries are.

>    * First reading mutliblockdataset and extracting blocks afterwards
>      doubles memory requirements I think?

Nope. I used shallow copy which copies pointers to the actual data
arrays. This would use a bit of extra memory - for some pointers
essentially. For something bigger than a few Kbytes, this would be
completely negligible. It should also be super fast as there is no
copying going on. Let me know if you run into performance problems. It
may be a bit slow to create 80 pipeline elements because it is going
to create object inspector panels for each.

>    * I still have all parts as a mutliblockdataset i think which I do
>      not like (some filters do not run ...)

Nope. The output of each filter will be a vtkDataSet - whatever you
block data type is. Note that this script works only for multi-block
datasets that are 1 layer deep (such as the one produced by Ensight).
It would not do the right thing if your multi-block tree is deeper.

Best,
-berk
___
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] render window bg color not saved on app exit

2009-06-24 Thread Dominik Szczerba
Many thanks for the hint!
-- Dominik

On Wed, 2009-06-24 at 08:30 -0400, Utkarsh Ayachit wrote:
> Ah yes, the problem must have got introduced after we added support
> for "Global Colors". If you change the background color from the Edit
> | Settings | Colors | Background Color, then the color will be
> preserved.
> 
> Utkarsh
> 
> On Wed, Jun 24, 2009 at 8:14 AM, Dominik Szczerba
>  wrote:
> http://www.vtk.org/Bug/view.php?id=9160
> 
> Is it an issue to anybody else?
> 
> -- Dominik
> 
> ___
> 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] render window bg color not saved on app exit

2009-06-24 Thread Utkarsh Ayachit
Ah yes, the problem must have got introduced after we added support for
"Global Colors". If you change the background color from the Edit | Settings
| Colors | Background Color, then the color will be preserved.

Utkarsh

On Wed, Jun 24, 2009 at 8:14 AM, Dominik Szczerba wrote:

> http://www.vtk.org/Bug/view.php?id=9160
>
> Is it an issue to anybody else?
>
> -- Dominik
>
> ___
> 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] render window bg color not saved on app exit

2009-06-24 Thread Dominik Szczerba
http://www.vtk.org/Bug/view.php?id=9160

Is it an issue to anybody else?

-- Dominik

___
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] time not working?

2009-06-24 Thread Bam Ting
A little red in the face over my last. slippery fingers slipped onto the
wrong sequence of keys...writing prompted me to answer my own question, I
had only set TIME_STEPS and not TIME_RANGE, it's working now
___
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] Python Calculator Filter

2009-06-24 Thread Adriano Gagliardi
Ok, I've found what I was missing. ScalarVariable should accept a list with
three properties per variable ie:

calc1.ScalarVariable =
['x_velocity','x_velocity','0','y_velocity','y_velocity','0','z_velocity','z
_velocity','0']

I thought I had tried this, but I must have gotten the syntax wrong. So if
anyone else needs a pointer, then the working script is:



from paraview.simple import *

connection = servermanager.Connect('localhost',1)

er = servermanager.sources.EnSightreader(CaseFileName='/.../data.case')
er.PointArrays =
['x_velocity','1','y_velocity','1','z_velocity','1','cp','1']
er.UpdatePipeline()

calc1 = servermanager.filters.Calculator(Input=er,
ResultArrayName='Velocity')
calc1.ScalarVariable =
['x_velocity','x_velocity','0','y_velocity','y_velocity','0','z_velocity','z
_velocity','0']
calc1.Function = 'x_velocity*iHat + y_velocity*jHat + z_velocity*kHat'
calc1.UpdatePipeline()

-

===

Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

--

Message: 1
Date: Tue, 23 Jun 2009 18:06:07 +0100
From: "Adriano Gagliardi" 
Subject: [Paraview] Python Calculator Filter
To: 
Message-ID: <002201c9f424$e615d400$4f281...@win.ara>
Content-Type: text/plain; charset="us-ascii"

I have been trying to write a simple Python script that uses the Calculator
filter to take three scalars and produce a vector using the ParaView3.6
Python wrapping. This is trivial through the GUI Calculator Filter, but I am
having problems adding more than one scalar to the calculator object in my
script. From browsing the posts here and the C++ doxygen I've noticed the
use of AddScalarVariable and AddVectorVariable to accomplish this, but these
appear to be no longer available through the Python interface. Could someone
point out to me what I'm missing?

See below:

#-
from paraview.simple import *

connection = servermanager.Connect('localhost',1)

er = servermanager.sources.EnSightreader(CaseFileName='/.../data.case')
er.PointArrays =
['x_velocity','1','y_velocity','1','z_velocity','1','cp','1']
er.UpdatePipeline()

calc1 = servermanager.filters.Calculator(Input=er,
ResultArrayName='Velocity')
calc1.ScalarVariable = ['x_velocity','x_velocity','0'] calc1.ScalarVariable
= ['y_velocity','y_velocity','0'] #This overwrites previous declaration
calc1.ScalarVariable = ['z_velocity','z_velocity','0'] #This overwrites
previous declaration calc1.Function = '(x_velocity)*iHat + (y_velocity)*jHat
+ (z_velocity)*kHat'
#Produces an error... Variable does not exist
calc1.UpdatePipeline()
#-


===

Adriano Gagliardi MEng PhD
Project Scientist
Computational Aerodynamics
Aircraft Research Association Ltd.
Manton Lane
Bedford

Tel: 01234 32 4644
E-mail: agaglia...@ara.co.uk
Url: www.ara.co.uk 


---
This email contains information that is private and confidential and is
intended only for the addressee.  If you are not the intended recipient
please delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone
other than the recipient, for system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No
503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB
196351245


---
This email contains information that is private and confidential and is 
intended only for the addressee.  If you are not the intended recipient please 
delete it and notify us immediately by e-mailing the sender.
Note: All email sent to or from this address may be accessed by someone other 
than the recipient, for system management and security reasons.
Aircraft Research Association Ltd.  Registered in England, Registration No 
503668 Registered Office: Manton Lane, Bedford MK41 7PF England VAT No GB 
196351245


___
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] time not working?

2009-06-24 Thread Bam Ting

___
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