CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Software User Forums > OpenFOAM > OpenFOAM Post-Processing

Exporting results in x,y,z

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   June 14, 2020, 13:13
Default Exporting results in x,y,z
  #1
New Member
 
Conor
Join Date: Oct 2016
Posts: 11
Rep Power: 5
ConorMD is on a distinguished road
Hello All,

Can anyone tell me how to export my pressure field into an x,y,z format instead of in a list according to the mesh?

Also, is it possible to convert/export my surface mesh into an x,y,z format?

Many thanks,
Conor
ConorMD is offline   Reply With Quote

Old   June 14, 2020, 17:07
Default
  #2
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 619
Rep Power: 7
HPE is on a distinguished road
Hi,

- Pressure is a scalar quantity; therefore, there won't be three components of first-order tensor to output.
- Could you please elaborate what you meant by the surface mesh? OF does not produce a surface mesh, like STL, per se. But you can extract surface meshes from selected patches by using surfaceMeshExtract utility.
- If you want to extract such surface meshes, could you tell me what you meant by x,y,z data? I assume it is raw csv file - no header, no parentheses? I don't remember any off-the-shelf application for this, but in OpenFOAM context the option name is `raw`. May be surfaceMeshExport, or surfaceMeshConvert utilities may help.
- Also you can perform this action with ParaView: as asked here.
HPE is offline   Reply With Quote

Old   June 14, 2020, 17:41
Default
  #3
New Member
 
Conor
Join Date: Oct 2016
Posts: 11
Rep Power: 5
ConorMD is on a distinguished road
Thanks for your reply, HPE.

Let me phrase the question better.

I would like to know how to get the x,y,z locations of all of those scalar quantities, or if it is possible.

Thanks,
Conor
ConorMD is offline   Reply With Quote

Old   June 15, 2020, 03:56
Default
  #4
HPE
Senior Member
 
Herpes Free Engineer
Join Date: Sep 2019
Location: The Home Under The Ground with the Lost Boys
Posts: 619
Rep Power: 7
HPE is on a distinguished road
Sure: writeCellCentres function object.

Code:
postProcess -func writeCellCentres -latestTime
should write `C`, `Cx`, `Cy`, and `Cz` fields of cell centre locations.

The order of the content of these fields corresponds the order of the pressure field.
HPE is offline   Reply With Quote

Old   June 15, 2020, 05:22
Default
  #5
New Member
 
Conor
Join Date: Oct 2016
Posts: 11
Rep Power: 5
ConorMD is on a distinguished road
Thank you HPE,

This is very helpful.

One last question:

Is it possible to run this utility on one patch only? I am trying to extract a pressure field from a foil surface.

Thanks,
Conor
ConorMD is offline   Reply With Quote

Reply

Thread Tools Search this Thread
Search this Thread:

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


Similar Threads
Thread Thread Starter Forum Replies Last Post
CFD results in Virtual Reality minev Visualization & Post-Processing 2 May 23, 2019 12:09
Problem: Very long "write" time (~2h-3h) for results and transient results Shawn_A CFX 16 April 12, 2016 20:49
Using results from experiment studygroups2000 FLUENT 0 November 25, 2015 17:29
Transient Run - Output "Time" in partial results? evcelica CFX 2 May 16, 2012 21:36
Exporting results from CFX to ANSYS ?? sohail ahmed CFX 1 December 20, 2007 01:10


All times are GMT -4. The time now is 01:09.