CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > OpenFOAM Paraview & paraFoam

Probe Multiple Points in ParaView and Output as CSV

Register Blogs Members List Search Today's Posts Mark Forums Read

Reply
 
LinkBack Thread Tools 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: 6
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: 12
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: 6
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: 12
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: 6
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

Thread Tools
Display Modes

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 On
Pingbacks are On
Refbacks are On


Similar Threads
Thread Thread Starter Forum Replies Last Post
paraFoam reader for OpenFOAM 1.6 smart OpenFOAM Installation 13 November 16, 2009 22:41


All times are GMT -4. The time now is 17:41.