Re: [vmtk-users] Mapping and Patching Data
Brought to you by:
davidsteinman,
lucantiga
From: Evan K. <to...@gm...> - 2013-02-22 23:54:32
|
Thanks, Arjan. That was an extremely helpful explanation. On Wed, Feb 20, 2013 at 4:40 PM, Arjan Geers <aj...@gm...> wrote: > 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 <to...@gm...> 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 >> vmt...@li... >> https://lists.sourceforge.net/lists/listinfo/vmtk-users >> >> > |