CFD Online Discussion Forums

CFD Online Discussion Forums (https://www.cfd-online.com/Forums/)
-   ParaView (https://www.cfd-online.com/Forums/paraview/)
-   -   [OpenFOAM] importing aproximated flow fields via a ROM back into paraview to view on mesh (https://www.cfd-online.com/Forums/paraview/152130-importing-aproximated-flow-fields-via-rom-back-into-paraview-view-mesh.html)

eaglemckenna April 24, 2015 05:53

importing aproximated flow fields via a ROM back into paraview to view on mesh
 
Dear F0amers,

I have a problem - I am involved in creating a reduced order model via the POD, having generated the approximated off-design flow field across a domain from a snapshot matrix of on-design CFD solutions I want to re-import the approximated solution column vectors (2 for 2D velocity & 1 for temperature) back into paraVIew with a .csv and view the approximated flow field over the same mesh.
Can paraview be used in this way?

I look forward to hear your response
regards
g

wyldckat April 26, 2015 16:03

Greetings Gowain,

In theory, yes, it's possible, but I think you'll have to use a Programmable Filter.

Since you didn't provide example data, the best I can do is refer you to the post I wrote a few minutes ago and get ideas from the code provided there: http://www.cfd-online.com/Forums/ope...tml#post543810 - post #10

Best regards,
Bruno

eaglemckenna May 13, 2015 08:02

to wyldcat
 
Thank you Wyldcat for your response,

The data format I need to be exporting back into paraView would be for a 2d case
so would be column vectors spanning the domain in a .csv file:

|points 0| |points 1| |T| |U0| |U1|

I would then like to view this 2d temperature and velocity field over the points - i.e. a means of conducting error analysis to a reduced order approximation.

any further help would be much appreciated
finally, while I am here
when one saves data from paraFoam why are the data stored in a number of .csv files with only one having the majority of data?
best wishes
gowain

eaglemckenna May 19, 2015 11:27

file format
 
1 Attachment(s)
Hi Wyldcat
I would be most grateful if you could assist me, attached is the file format I intend to import so as to view the aproximated thermal flow field to make a comparison with actual CFD

wyldckat October 24, 2015 17:05

Hi eaglemckenna,

Sorry for the really late reply. I've had this post of yours on my to-do list, but only today did I finally manage to take a look into this... and 5 months have already gone by :(

Do you still need help with this or have you already solved it?

Best regards,
Bruno

eaglemckenna November 9, 2015 13:54

Dear Bruno - importing data structure for analysis into post processor
 
Dear Bruno,
I have moved onto ANSYS for my work. I have my reduced order model algorithm up and running and still need a good way to import the flow field results from the algorithm back into ANSYS or if need be paraView to view as a means to present the results and plot profiles for publishing results etc.
I have written a python script which plots the contours of velocity magnitude or temperature over the grid - but it is not really satisfactory as the grid points are visible and does not allow for further analysis.
My data from the reduced order model results is typically arranged in column vectors like so within excel:
[Node Number, Xcoordinate, Y coordinate, Temperature]
I would be most grateful if you could provide me with a means to import the data structure into ANSYS results or paraVIEW....
best wishes
g
:)

wyldckat November 13, 2015 07:17

5 Attachment(s)
Hi Gowain,

I've re-read part of your posts (sorry, a bit in a hurry) and used the example file from the post #4 that you provided some months ago.
I've exported the XLSX file to CSV and it's attached as "pod_interpolate.csv.zip", so make sure to first uncompress it before you try to use it.

I used the following steps with ParaView 4.1.0, but should work with other versions as well:
  1. Opened the file "pod_interpolate.csv" in ParaView.
  2. For the options, I used the settings shown in the attached file "Import CSV.png".
  3. Then clicked on the "Apply" button.
  4. Then applied the filter "Table to Points" and used the settings shown in the attached image "Table To Points.png".
  5. Then clicked on the "Apply" button.
  6. The applied the filter "Delaunay 2D", with the settings shown in "Delaunay2D.png".
  7. Then clicked on the "Apply" button.
  8. Attached is the image "Result - surface and mesh.png" that shows on the left the surface results and on the right the mesh (wireframe) created by the filter "Delaunay 2D".
The results seem a bit strange on the sides, so my guess that it has to do with using the filter "Delaunay 2D". In order to fix this problem, you would need to also export the mesh data that indicates how each point is connected to each other, i.e. the polygons that make up each face of the mesh. And with that information, a Programmable Filter would have to be used for generating the mesh and applying the data to it.


Best regards,
Bruno

eaglemckenna November 17, 2015 07:32

Importing data of same structure into ANSYS
 
Thanks Bruno for your response.
Is there a similar method to importing data into ANSYS workbench Results?
best wishes
g

wyldckat November 17, 2015 16:05

Quote:

Originally Posted by eaglemckenna (Post 573688)
Is there a similar method to importing data into ANSYS workbench Results?

Quick answer: I have absolutely no idea, since I don't have access to ANSYS software. You should ask about this on the ANSYS forum.


All times are GMT -4. The time now is 07:42.