[Paraview] plot3d reading problem

Francesco Fornarelli f.fornarelli at gmail.com
Wed Mar 29 10:39:23 EST 2006


Thank you very much!
Following your instructions and checking also the "forced read" button, it
works!

Francesco

On 3/29/06, Joelle Caro <Joelle.Caro at ec-lyon.fr> wrote:
>
> Hello,
>
>
> >From your mail, I guess that you write your "binary" file with fortran,
> In fact fortran writes "unformatted" files, that differ slightly from
> "binary" files written with C language. The difference is that fortran adds
> a byte at the beginning of the record.
>
> The vtkPlot3D reader allows you to read your unformatted file, you choose
> Binary and Fortran Byte Count in your reader interface. I think it will
> work.
> If it doesnt, try to change bigendian in littleendian.
>
>
>  ------------------------------
>
> Date: Wed, 29 Mar 2006 14:02:28 +0000
> From: "Francesco Fornarelli" <f.fornarelli at gmail.com> <f.fornarelli at gmail.com>
> Subject: [Paraview] plot3d reading problem
> To: paraview at paraview.org
> Message-ID:
> 	<c7cbcb130603290602ldc4281atdf0fd972ee183c66 at mail.gmail.com> <c7cbcb130603290602ldc4281atdf0fd972ee183c66 at mail.gmail.com>
> Content-Type: text/plain; charset="iso-8859-1"
>
> Hi,
> I'm getting crazy because I can't read my plot3d file in binary. I have
> 500MB formatted plot3d data file so the binary format should be better to
> manage.
> This is my fortran code to write the .xyz and .q file:
>
> open(12,file='bouco.xyz',form='formatted',status='unknown')
>        rewind(12)
>        write(12,*) n3,n2,n1
>         write(12,121)
>      %  (((x3c(k),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p),
>      %  (((x2c(j),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p),
>      %  (((x1c(i),k=1,n3,n3p),j=1,n2,n2p),i=1,n1,n1p)
>         close(12)
>
>
>
> namfi3='post.q'
>       open(29,file=namfi3,form='formatted',status='unknown')
>       rewind(29)
>       write(29,*) n3,n2,n1
>       write(29,*) 1.,1.,1.,1.
>       write(29,121) (((vmod(i,j,k),k=1,n3),j=1,n2),i=1,n1)
>       write(29,121) (((v3(i,j,k),k=1,n3),j=1,n2),i=1,n1)
>      %             ,(((v2(i,j,k),k=1,n3),j=1,n2),i=1,n1)
>      %             ,(((v1(i,j,k),k=1,n3),j=1,n2),i=1,n1)
>      %             ,(((vmod(i,j,k),k=1,n3),j=1,n2),i=1,n1)
>       close(29)
>
> If I write  unformatted files Paraview doesn't work.
>
> Anybody know which is the problem.
>
> Thank you in advance!
>
> bye,
> Francesco
> -------------- next part --------------
> An HTML attachment was scrubbed...
> URL: http://public.kitware.com/pipermail/paraview/attachments/20060329/4a1ab877/attachment-0001.html
>
>    Joëlle,
>
>
>
> _______________________________________________
> ParaView mailing list
> ParaView at paraview.org
> http://www.paraview.org/mailman/listinfo/paraview
>
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: http://public.kitware.com/pipermail/paraview/attachments/20060329/e669a6af/attachment.htm


More information about the ParaView mailing list