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

[OpenFOAM] Probe Multiple Points in ParaView and Output as CSV

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   November 28, 2011, 16:15
Default Probe Multiple Points in ParaView and Output as CSV
  #1
Member
 
Eric M. Tridas
Join Date: May 2011
Location: Tampa, Florida
Posts: 48
Rep Power: 15
eric.m.tridas is on a distinguished road
Hey Foamers,

I am attempting to take data from a simulation performed with an unstructured grid in OpenFOAM and use the probe feature in ParaView to obtain interpolated values at points uniformly spaced over the domain. I wish to have the velocity, pressure and temperature values at these points saved as a *.csv file to be imported into another software.

I have a list of all of the coordinates I wish to sample from but want to automate this process as there are ~100k points. I believe this is possible with python scripting but am not sure where to start and am not familiar at all with python. I was hoping that someone may have needed to perform something similar and could give some advice on where to begin or some way of solving this problem in an easy manner.

Thanks in advance.

-Eric
eric.m.tridas is offline   Reply With Quote

Old   November 29, 2011, 03:06
Default
  #2
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
Did you consider to use the sample utility?

If you have 100k points, maybe it is an option to just use a coarse mesh and the mapFields utility?

In any case, I would use the FOAM framework for this issue.
Bernhard is offline   Reply With Quote

Old   November 29, 2011, 14:01
Default
  #3
Member
 
Eric M. Tridas
Join Date: May 2011
Location: Tampa, Florida
Posts: 48
Rep Power: 15
eric.m.tridas is on a distinguished road
Bernhard,

Thanks for your reply. I've considered using the sample utility but I I do not think it can sample the data in the way I want it (although I could be wrong about this).

I think I was slightly unclear about my problem. The dataset I have is coarser than the dataset I wish to create. I've considered mapping the fields to my desired mesh but it would be quite a task to recreate the finer mesh.

I would be very interested in using the OF framework to program something to do this task but have no experience with using it to create new utilities. If you have any good starting points on performing a task like this your advice would be appreciated. I have considered writing something in C++/Matlab to perform the task but would rather learn how to do some advanced data manipulation with OF.

Thanks again.

-Eric
eric.m.tridas is offline   Reply With Quote

Old   November 29, 2011, 14:22
Default
  #4
Senior Member
 
Bernhard
Join Date: Sep 2009
Location: Delft
Posts: 790
Rep Power: 22
Bernhard is on a distinguished road
I don't see a point in doing this? What are you trying to reach here?
Bernhard is offline   Reply With Quote

Old   November 29, 2011, 14:30
Default
  #5
Member
 
Eric M. Tridas
Join Date: May 2011
Location: Tampa, Florida
Posts: 48
Rep Power: 15
eric.m.tridas is on a distinguished road
I am mapping the results of the CFD simulation to an electrostatic simulation that uses uniform cube elements to make the mesh. I need to get velocity, pressure and temperature data at every point in the electrostatic mesh. The electrostatic simulation software uses some proprietary mesh that does not convert into other mesh formats. I can however output a *.csv file that will give me the coordinates of every point on the electrostatic simulation mesh. I was thinking I could take these points and use them as sample points of the OF simulation results.
eric.m.tridas 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
[OpenFOAM] Multiple version of ParaView Pavel Rodin ParaView 1 October 13, 2017 11:21
[General] Running ParaView on multiple cores flotus1 ParaView 6 January 20, 2014 04:22
SU2 2.0.8 cannot output correct Paraview file momo_sjx SU2 2 December 3, 2013 17:25
Visualize checkMesh output with Paraview Horus OpenFOAM 1 May 29, 2012 12:51
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 14:56.