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

How to quickly extract a huge number of field files in parallel

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 25, 2021, 04:54
Default How to quickly extract a huge number of field files in parallel
  #1
New Member
 
Join Date: Apr 2018
Posts: 14
Rep Power: 8
eric-meng is on a distinguished road
Hi openfoam experts here,


I recently encountered a weird problem to me, where I found the postprocess utility could not perform consistently when using it to extract data from field files onto a surface.

I want to obtain a time history of enstrophy on a surface in the 3D domain, so I firstly ran simulations in parallel using 200 cores to calculate the enstrophy fields. Those fields were output at every 0.01, so that about 10000 fields were generated. Then I ran postprocess also in parallel to extract the info through the -func surfaces objective. However, the performance for different runnings is pretty diversified. Sometimes it can give out 4000 output per run, but sometimes only just a few hundreds. This is much despairing, because I have a lot of cases to deal with.

I didn't dig too much into this at first and didn't realise as well if there might be a convenient way to extract surfaces info in runtime??

Can anyone give me any idea to save this?

The environment is OpenFOAM+ v1712 and processors stored in collocated filehandler.
eric-meng is offline   Reply With Quote

Old   January 28, 2021, 03:17
Default
  #2
Senior Member
 
Join Date: Dec 2019
Location: Cologne, Germany
Posts: 365
Rep Power: 8
geth03 is on a distinguished road
if i understand you correctly, you want to output a certain quantity just for a surface at runtime.

you can do that with a little bit of coding. you can write a code within controlDict -> functions that writes out that quantity of interest whenever you want.

https://www.openfoam.com/documentati...hp#x7-390002.2

here is an example.
geth03 is offline   Reply With Quote

Old   January 29, 2021, 17:01
Default
  #3
Member
 
Ran
Join Date: Aug 2016
Posts: 69
Rep Power: 10
random_ran is on a distinguished road
What postprocess utility do you use to extract Enstrophy?
__________________
Yours in CFD,

Ran
random_ran is offline   Reply With Quote

Reply

Tags
extract surfaces, large data, postprocessing, runtime postprocessing

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
Decomposing meshes Tobi OpenFOAM Pre-Processing 22 February 24, 2023 09:23
Inconsistencies in reading .dat file during run time in new injection model Scram_1 OpenFOAM 0 March 23, 2018 22:29
Moving mesh Niklas Wikstrom (Wikstrom) OpenFOAM Running, Solving & CFD 122 June 15, 2014 06:20
Unaligned accesses on IA64 andre OpenFOAM 5 June 23, 2008 10:37
[Commercial meshers] Trimmed cell and embedded refinement mesh conversion issues michele OpenFOAM Meshing & Mesh Conversion 2 July 15, 2005 04:15


All times are GMT -4. The time now is 23:52.