Reputation: 31
I am trying to get a data file of mine converted to something that Paraview can read. What I have found so far is that it needs to be converted to a VTK but I am not sure how to begin this. I have seen a bunch of answers but nothing relating to what I need. Here is what I have... I have a .dat file with 4 columns of numbers.
x- coordinate, y- coordinate, z- coordinate, density at that point
The code I am using is in Fortran. Can someone please point me in the right direction. Can Fortran output the file itself or what can I use to convert it. Thank you.
Upvotes: 3
Views: 3018
Reputation: 2643
Your .dat file is a .csv
file.
Rename it to .csv and open it with ParaView, then apply a TableToPoints
or TableToStructuredGrid filter
on it.
Upvotes: 1
Reputation: 676
Paraview supports a bunch of different file formats. Paraview reads those different file formats using so called readers. You can get a list of support file formats/readers here:
The first one in the list (AVS UCD) is pretty simple to use. The following webpage indicates the format used to construct a file for this reader:
As indicated there, all you have to do is enter your point coordinates, then list your cells (which for you are simply points), and finally for each point enter the corresponding vector data.
Upvotes: 2