[Paraview] how to output data from my C scripts to paraview format
Hom Nath Gharti
hng.email at gmail.com
Mon May 5 00:58:12 EDT 2008
As long as you have uniform grid size, it is always efficient to write a vti
file. For your problem just modify
bytes[i]=(nx*ny)*sizeof(float);
to
bytes[i]=(nx*ny*nz)*sizeof(float);
in segment
nvar=1; /* Plot only one variable set */
off[0]=0;
for (i=0; i<nvar; i++){
bytes[i]=(nx*ny)*sizeof(float);
if(i<nvar-1)off[i+1]=off[i]+sizeof(int)+bytes[i];
bytes[i]=bytes[i]+sizeof(int);
}
Cheers,
Hom Nath
On Mon, May 5, 2008 at 4:15 AM, Marko Orescanin <oresca at gmail.com> wrote:
> Hi Hom,
>
> How do you edit the script that we worked on to image 3D data field of
> point scalars in the unstructured grid?
>
> Have you done anything like that?
>
> I have tried by adding the z coordinate as you can see in the script
> attached. I suspect that the error is in the part when I say that I have
> image data?
>
> fprintf(outf_tfield,"</ImageData>\n");
>
>
>
> Thanks for your help I really appreciate it. I am moving from 2D
> simulations to 3D and getting thsi visualization would be great.
>
> Thanks,
>
> Marko
>
>
>
>
> On Wed, Apr 30, 2008 at 10:00 AM, Hom Nath Gharti <hng.email at gmail.com>
> wrote:
>
> > I think you should be able to warp in following steps:
> >
> > 1. Filters -> Alphabetical -> Tetrahedralize
> > 2. Filters -> Alphabetical -> Warp (scalar)
> >
> > Good luck!
> >
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://www.paraview.org/pipermail/paraview/attachments/20080505/9e5ba1fa/attachment.htm>
More information about the ParaView
mailing list