CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] importing aproximated flow fields via a ROM back into paraview to view on mesh

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By wyldckat
  • 1 Post By wyldckat

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   April 24, 2015, 05:53
Exclamation importing aproximated flow fields via a ROM back into paraview to view on mesh
  #1
Member
 
Gowain
Join Date: May 2014
Location: Ireland
Posts: 86
Rep Power: 11
eaglemckenna is on a distinguished road
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
eaglemckenna is offline   Reply With Quote

Old   April 26, 2015, 16:03
Default
  #2
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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 likes this.
__________________
wyldckat is offline   Reply With Quote

Old   May 13, 2015, 08:02
Arrow to wyldcat
  #3
Member
 
Gowain
Join Date: May 2014
Location: Ireland
Posts: 86
Rep Power: 11
eaglemckenna is on a distinguished road
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 is offline   Reply With Quote

Old   May 19, 2015, 11:27
Lightbulb file format
  #4
Member
 
Gowain
Join Date: May 2014
Location: Ireland
Posts: 86
Rep Power: 11
eaglemckenna is on a distinguished road
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
Attached Files
File Type: xlsx pod_interpolate.xlsx (52.1 KB, 5 views)
eaglemckenna is offline   Reply With Quote

Old   October 24, 2015, 17:05
Default
  #5
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
wyldckat is offline   Reply With Quote

Old   November 9, 2015, 13:54
Arrow Dear Bruno - importing data structure for analysis into post processor
  #6
Member
 
Gowain
Join Date: May 2014
Location: Ireland
Posts: 86
Rep Power: 11
eaglemckenna is on a distinguished road
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
eaglemckenna is offline   Reply With Quote

Old   November 13, 2015, 07:17
Default
  #7
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
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
Attached Images
File Type: png Import CSV.png (31.7 KB, 5 views)
File Type: png Table To Points.png (40.2 KB, 5 views)
File Type: png Delaunay2D.png (42.9 KB, 5 views)
File Type: png Result - surface and mesh.png (164.2 KB, 10 views)
Attached Files
File Type: zip pod_interpolate.csv.zip (17.7 KB, 3 views)
eaglemckenna likes this.
__________________
wyldckat is offline   Reply With Quote

Old   November 17, 2015, 07:32
Smile Importing data of same structure into ANSYS
  #8
Member
 
Gowain
Join Date: May 2014
Location: Ireland
Posts: 86
Rep Power: 11
eaglemckenna is on a distinguished road
Thanks Bruno for your response.
Is there a similar method to importing data into ANSYS workbench Results?
best wishes
g
eaglemckenna is offline   Reply With Quote

Old   November 17, 2015, 16:05
Default
  #9
Retired Super Moderator
 
Bruno Santos
Join Date: Mar 2009
Location: Lisbon, Portugal
Posts: 10,975
Blog Entries: 45
Rep Power: 128
wyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to allwyldckat is a name known to all
Quote:
Originally Posted by eaglemckenna View Post
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.
wyldckat is offline   Reply With Quote

Reply


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
Gambit problems Althea FLUENT 22 January 4, 2017 03:19
[snappyHexMesh] No layers in a small gap bobburnquist OpenFOAM Meshing & Mesh Conversion 6 August 26, 2015 09:38
back pressure at exit for supersonic flow BigFrank FLUENT 6 April 24, 2014 15:13
Mesh for 3 dim Geometry Phil FLUENT 9 July 12, 2000 04:39
fluid flow fundas ram Main CFD Forum 5 June 17, 2000 21:31


All times are GMT -4. The time now is 21:58.