VTK Log Out | Topics | Search
Moderators | Register | Edit Profile

FlexPDE User's Forum » User Postings » VTK « Previous Next »

Author Message
Top of pagePrevious messageNext messageBottom of page Link to this message

Kurt J. Rüegg (ewl)
New member
Username: ewl

Post Number: 1
Registered: 03-2005
Posted on Sunday, March 06, 2005 - 05:03 am:   

I'd like to export vector data with the VTK mechanism to VisIt. With the command "VTK (arg2[,arg2,...])" respective "VTK(vx,vy,vz)" only scalars are exported: first all vx, then all vy and so on. VisIt expects the vectors as

VECTORS dataName dataType
v0x v0y v0z
v1x v1y v1z
...
v(n-1)x v(n-1)y v(n-1)z
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 333
Registered: 06-2003
Posted on Sunday, March 06, 2005 - 04:09 pm:   

We are not experts in the use of VisIt, but the VisIt help implies that you can use curly braces {} to compose components into vectors.

Also, it appears that although VisIt will read quadratic-basis files without complaint, none of the operators know how to handle them. We always use VTKLIN output from FlexPDE to reformat the output file as linear basis triangles/tetrahedra for VisIt processing.
Top of pagePrevious messageNext messageBottom of page Link to this message

Jesus Ubach (yurixd)
New member
Username: yurixd

Post Number: 1
Registered: 10-2005
Posted on Tuesday, October 04, 2005 - 12:58 pm:   

Hi!
This is a short question....! I just want to get a pointer of a image .vtk (3D) using c++ !
I have no idea how to the a pointer with all the values of my image, to work with them in c++ ! And how it would be structured. My image use this format
# vtk DataFile Version 3.0
vtk output
BINARY
DATASET STRUCTURED_POINTS
DIMENSIONS 50 50 50
SPACING 4 4 4
ORIGIN 1 1 1
CELL_DATA 117649
POINT_DATA 125000
COLOR_SCALARS scalars
i dont mind if i will got a .txt file with the values, or a pointer..but I need to access to all of them.
Any idea how to do it ??
Top of pagePrevious messageNext messageBottom of page Link to this message

Robert G. Nelson (rgnelson)
Moderator
Username: rgnelson

Post Number: 466
Registered: 06-2003
Posted on Tuesday, October 04, 2005 - 03:34 pm:   

FlexPDE can export VTK data to visualization packages, but it is not itself a VTK visualization system.

Perhaps you should look at the VTK website http://public.kitware.com/VTK/
Top of pagePrevious messageNext messageBottom of page Link to this message

Theo (theo)
New member
Username: theo

Post Number: 1
Registered: 11-2005
Posted on Sunday, November 20, 2005 - 09:27 am:   

I managed to export a vector by doing the following in the FlexPDE code :

vtklin(XCOMP(elf),YCOMP(elf)) file ="electric_field_components.vtk"

Then in VisIT you need to create an expression by choosing Controls>Expressions

then select "Vector Mesh variable" and use {XCOMP_elf_,YCOMP_elf_} as your definition. I called mine "vectors". You should now be able to do a vector plot

Add Your Message Here
Post:
Username: Posting Information:
This is a private posting area. Only registered users and moderators may post messages here.
Password:
Options: Enable HTML code in message
Automatically activate URLs in message
Action:

Topics | Last Day | Last Week | Tree View | Search | Help/Instructions | Program Credits Administration