[Paraview] Animating the 3D raw binary data in sequence

Felipe Bordeu Weldt felipe.bordeu at ec-nantes.fr
Sat Jun 16 09:57:11 EDT 2012


You can use a xdmf file to describe you data, and put all the files in  
a time series. It worked for me.


Felipe

Le 14 juin 12 à 19:02, Rakesh Dhote a écrit :

> Hi,
>
> I am looking for a help in animating the 3D raw binary data files.
> The files are named as u1.0, u1.1, u1.2, ... and the file details are
> provided below.
> To animate, I tried to use the fileprefix as 'u1' and file pattern  as
> '%s.%d', but found that it does not work.
> Could you please share your expertise in animating the raw binary  
> files in
> a an ascending order of the file names?
>
> File details:
>
> try: paraview.simple
> except: from paraview.simple import *
> paraview.simple._DisableFirstRenderCameraReset()
>
> u1_0 = ImageReader( FilePrefix='u1.0' )
>
> u1_0.DataExtent = [0, 128, 0, 128, 0, 1]
> u1_0.DataByteOrder = 'LittleEndian'
> u1_0.DataScalarType = 'float'
>
> RenderView1 = GetRenderView()
> DataRepresentation1 = Show()
> DataRepresentation1.ScalarOpacityUnitDistance = 7.108690992298187
> DataRepresentation1.Representation = 'Outline'
> DataRepresentation1.EdgeColor = [0.0, 0.0, 0.5000076295109483]
>
> RenderView1.CenterOfRotation = [63.5, 63.5, 0.5]
>
> a1_ImageFile_PVLookupTable = GetLookupTableForArray( "ImageFile", 1,  
> NanColor=[0.4980392156862745, 0.4980392156862745,  
> 0.4980392156862745], RGBPoints=[-0.009572385810315609, 0.0, 0.0,  
> 1.0, 0.009394483640789986, 1.0, 0.0, 0.0], VectorMode='Magnitude',  
> ColorSpace='HSV', ScalarRangeInitialized=1.0 )
>
> a1_ImageFile_PiecewiseFunction = CreatePiecewiseFunction()
>
> ScalarBarWidgetRepresentation1 = CreateScalarBar( Title='ImageFile',  
> LabelFontSize=12, Enabled=1, LookupTable=a1_ImageFile_PVLookupTable,  
> TitleFontSize=12 )
> GetRenderView().Representations.append(ScalarBarWidgetRepresentation1)
>
> RenderView1.CameraPosition = [63.5, 63.5, 347.4758305723389]
> RenderView1.CameraFocalPoint = [63.5, 63.5, 0.5]
> RenderView1.CameraClippingRange = [342.51107226661554,  
> 353.43296803092403]
> RenderView1.CameraParallelScale = 89.80395314238677
>
> DataRepresentation1.Representation = 'Surface'
> DataRepresentation1.ScalarOpacityFunction =  
> a1_ImageFile_PiecewiseFunction
> DataRepresentation1.ColorArrayName = 'ImageFile'
> DataRepresentation1.LookupTable = a1_ImageFile_PVLookupTable
>
> Render()
>
> Thanks,
> Rakesh
> =========
> _______________________________________________
> 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



More information about the ParaView mailing list