[Paraview] EnSightWriter

NURI Adrien Adrien.NURI at aeroconseil.com
Mon Jan 4 10:34:03 EST 2010


 

Hi all,

I'm working with paraview in script python, and I would like to use the
EnSightWriter. 

But when I'm running, the program crash and it appear the error message
"error pvbatch.exe"

I don't understand why the program didn't run. 

 

Thanks for your answer.

Adrien

 

 

 

#-----Paraview  V3.6.1----------------

#-------------------------------------

from paraview.simple import *

servermanager.Connect()

 

#origine du fichier (exemple d'un fichier source de type ensightcase)

chemin='ensight_3D\/ensightb.case'

donnees=servermanager.sources.EnSightReader(CaseFileName=chemin)

 

########################################################################
#

#Fonction ExtractBlock:

#----------------------

name_extract=servermanager.filters.ExtractBlock(Input=donnees)

listeblock=[3,4]

name_extract.BlockIndices=(listeblock)

name_extract.PruneOutput=(1)

########################################################################
#

#Fonction ExtractSurface:

#------------------------

 
name_ExtractSurf=servermanager.filters.ExtractSurface(Input=name_extract
)

name_ExtractSurf.PieceInvariant=(1)

########################################################################
#

#fonction: Writers

#-----------------

fichier2=EnSightWriter(Input=name_ExtractSurf,
FileName="writer_ensight")

fichier2.UpdatePipeline()

 

 

 

 



Le contenu de ce message est prévu uniquement pour le destinataire nommé. Il contient des informations qui peuvent être confidentielles. A moins d'être le destinataire nommé ou autorisé par le destinataire, vous ne pouvez pas copier, employer ou révéler à une autre personne le contenu de ce message. Si vous le recevez par erreur, s'il vous plait, informez nous immédiatement et détruisez le.

The contents of this e-mail are intended for the named addressee only. It contains information that may be confidential. Unless you are the named addressee or an authorized designee, you may not copy or use it, or disclose it to anyone else. If you received it in error please notify us immediately and then destroy it. 
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20100104/60f7ed39/attachment-0001.htm>


More information about the ParaView mailing list