Hi Evan,

VTK polydata files store the location of points and information on how
these points are connected to form cells. Additionally, they can store
scalars and vectors at each point or cell. So, indeed, you want the WSS
field already included in the surface file before performing any
vmtkbranch* operations.

Hopefully, you can export from your CFD solver an ASCII file similar to
surface.tec (attached). It contains x,y,z-coordinates of each point, the
wss magnitude at each point, and connectivity information. When opening
this surface with vmtksurfacereader, VMTK converts it into a VTK polydata,
which can then be written with vmtksurfacewriter (see surface.vtp
attached). To check what VMTK actually does when converting the ASCII file,
go to the function 'ReadTecplotSurfaceFile' in vmtksurfacereader.py. This
should provide you with some hints on how to convert your own format to
VTP.

Hope this helps,

Arjan

PS: Since the commercial CFD solver Ansys-CFX is quite widely used, the
attached script cfx2vtp.py (variation on above-mentioned
'ReadTecplotSurfaceFile') might be useful to some reading this email.
Converting surface.csv (attached) should give surface.vtp again.


On Wed, Feb 20, 2013 at 9:40 PM, Evan Kao <tos...@gmail.com> wrote:

> Hello,
>
> I am confused about some of the details regarding the matching and
> patching of data in the tutorial.  Specifically, at what stage in the
> process are we supposed to import the simulation data into vmtk, and how?
> For instance, in the tutorial, are the WSS and OSI distributions already
> part of the surface file ("aorta.vtp") before any processing occurs?  It
> doesn't seem like there are any ways to import data in any of the
> vmtkbranchmetrics, vmtkbranchmapping, or vmtkbranchpatching functions.  And
> what form does the data have to be in?  It should be pretty easy to export
> nodal or cell CFD data as an array, but how would we incorporate that into
> vmtk?
>
> Thanks for your time,
> Evan Kao
>
>
> ------------------------------------------------------------------------------
> Everyone hates slow websites. So do we.
> Make your web apps faster with AppDynamics
> Download AppDynamics Lite for free today:
> http://p.sf.net/sfu/appdyn_d2d_feb
> _______________________________________________
> vmtk-users mailing list
> vmtk-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/vmtk-users
>
>

Attachment: surface.tec
Description: Binary data

Attachment: surface.vtp
Description: Binary data

[Name]
SEGMENT

[Data]
X [ m ], Y [ m ], Z [ m ], wss [Pa]
0.0, 0.0, 0.0, 1.5
1.0, 0.0, 0.0, 2.5
0.0, 1.0, 0.0, 3.5

[Faces]
0, 1, 2

Attachment: cfx2vtp.py
Description: Binary data

------------------------------------------------------------------------------
Everyone hates slow websites. So do we.
Make your web apps faster with AppDynamics
Download AppDynamics Lite for free today:
http://p.sf.net/sfu/appdyn_d2d_feb
_______________________________________________
vmtk-users mailing list
vmtk-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/vmtk-users

Reply via email to