Validation Study: How do I plot wind tunnel data (*.dat) in Paraview
I'm new to CFD openFOAM so I'm running through a validation case to sharpen my skills.
The windtunnel data for the Ahmed Body is taken from here The *.dat files contain data points for given planes. How to I plot them and interpolate it over the plane to compare my results to the windtunnel? |
1 Attachment(s)
Update:
Ok I managed to import the data after cleaning it up a little in excel and saving it as a CSV file (comma delimited) Paraview can open CSV files as a table. Then I applied the Filter > TableToPoints to get points. However I wasn't able to see them until I clicked on the split "horizontal button" on the right and chose a 3D view. Now I have the points where I want them, but I can't manage to get a surface from the points. Any ideas? |
matlab to the rescue
1 Attachment(s)
OK so I finally managed to get a surface from my points.
Unfortunately it was not by means of free software. I used matlab to interpolate the points over a structured grid and then plotted the result. First you must load your data into matlab under 3 arrays. I used 'x', 'y' and 'z'. Where x and y were the coordinates and z was the magnitude of the velocity. Code:
ti = -250:1:250; |
Alex, have you tried the TableToStructuredGrid filter instead of TableToPoints?
|
2 Attachment(s)
Yes. Unfortunately I get a long error message about the number of rows.
I imported my data from CSV and it all comes in clean with the headers. There are 911 datapoints. Then I select the TableToStructuredGrid filter and enter the range of my data and select the columns for x, y and z coordinates: x {0,0} y {-250,250} z {28, 538} I apply and get the following error: Code:
ERROR: In /home/opencfd/OpenFOAM/ThirdParty-2.0.0/ParaView-3.10.1/VTK/Graphics/vtkTableToStructuredGrid.cxx, line 97 |
All times are GMT -4. The time now is 22:05. |