|
[Sponsors] |
[OpenFOAM] Visualization of parallel case with collated format |
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
February 25, 2020, 05:25 |
Visualization of parallel case with collated format
|
#1 |
New Member
Aqeel Ahmed
Join Date: Feb 2017
Posts: 5
Rep Power: 9 |
Paraview can be used to visualize a decomposed case (without reconstruction) with the original parallel format of OpenFoam (a seperate directory for each processor).
Since version 5, there is a new collated format for parallel decomposition (one directory irrespestive of the number of domains). Is it possible to visualise the same without reconstructing the case? |
|
July 8, 2020, 18:57 |
|
#2 | |
Senior Member
|
Quote:
Do you know how open the collated parallel files in paraview? I use mpirun -np 16 foamFormatConvert -fileHandler allocated -parallel to convert the results; then processor1-15 are deleted and processors16 is remained. But I do not know how to load them into paraview. I created a dummy file case.foam in processors16 then 'paraview case.foam' but there is an error showing something like "processors16/constant/polyMesh/boundary: Expected keyword, closing brace, ';' or EOF, found ". No data is shown in paraview but the total time steps are shown correctly in "Current Time Control" (toolbar). By the way, I use openfoam7 and the shipped paraview was not compiled but an official paraview 5.8 was installed separately. I am not sure if paraFoam must be used to load the new collated file format. Hope someone can give me a hint. Thanks, Michael |
||
September 7, 2020, 04:24 |
Collated data format
|
#3 |
New Member
Reza
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
Hi. Could any body let me know how can I open "collated" format of openfoam files as decomposed in ParaView? I created a dummy file with .foam extension, at it does not read in anything to ParaView.
|
|
September 7, 2020, 15:36 |
|
#4 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
Currently, the collated format is not supported by the OpenFOAM reader in paraview. There are bug reports/merge requests to add supported, but it looks like, the work has stalled:
https://gitlab.kitware.com/vtk/vtk/-/issues/17096 https://gitlab.kitware.com/vtk/vtk/-..._requests/4003 |
|
September 7, 2020, 16:50 |
Collated data format
|
#5 | |
New Member
Reza
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
Quote:
For the record, I use the following command to uncollate the data. based on what https://www.openfoam.com/releases/op...2/parallel.php suggests: mpirun -np 4 foamFormatConvert -fileHandler uncollated -parallel |
||
September 7, 2020, 17:14 |
|
#6 |
Senior Member
Joachim Herb
Join Date: Sep 2010
Posts: 650
Rep Power: 22 |
I just use reconstructPar.
|
|
September 7, 2020, 19:07 |
|
#7 |
New Member
Reza
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
The problem with reconstructPar (& reconstructParMesh) is that the result is a whole file for each time step, and I cannot post-process the data in parallel in ParaView. My cases are large (~12 million mesh grids) and processing them in serial is not feasible for me. It takes ~4h to see the result of an applied filter. D3 filter can distribute the data into cores and make it parallel-aware, but I think it works only for unstructured mesh, which is not the case for me.
|
|
September 8, 2020, 12:24 |
|
#8 | |
New Member
Reza
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
Quote:
"...To make story short, the OpenFOAM reader implemented in ParaView needed redesign for better design to adopt collated format. So, ParaView/VTK team were discussing about redesign of the reader but any news is not on the list yet. After that point, I did not pay attention to the reader implementation. instead I just was using uncollated format..." So, for the ones with the same concern, there are two possible solutions for this issue right now: 1) Convert the data into uncollated format, 2) reconstruct the data into one. |
||
September 8, 2020, 13:23 |
|
#10 | |
New Member
Reza
Join Date: Mar 2015
Posts: 6
Rep Power: 11 |
Quote:
I would say it depends. For example, my case requires using dynamic mesh, which generates different mesh domains at different type steps. I do not why, but when I use uncollated format, the simulation crashes after hundreds of time steps and gives an error of not being able to create the polymesh folder in a folder corresponded to one of the processors and fails to write the data. This happens randomly. I did not have a similar issue for collated format, at all. So, I ran my cases in collated format and now I am trying to use foamFormatConvert to convert the format back into uncollated, using which I can post-process the data in parallel in ParaView. |
||
September 8, 2020, 14:21 |
|
#11 |
Senior Member
|
It' weired you can run the simulation using collated format but un-collated.
The collated format is designed to handle the limitation of the total files that can be created in a folder. The only potential usage I think of is the following case. You have a computer that can only create, say, 1M files. So you run the simulation on it with the collated format. After the simulation, you copy the files to another computer which does not have this limitation and convert them back to un-colloated type. But it makes no sense if the simulation and post-processing are conducted on the same computer. Or it runs faster if using collated format? |
|
Tags |
collated format, openfoam, paraview |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
How to run the 3dTube case in parallel (foam-extend 3.1 with FSI from Zagreb)? | Warlord | OpenFOAM Running, Solving & CFD | 1 | January 27, 2018 15:48 |
changeDictionary for Parallel Case nonuniform 0() | KDK | OpenFOAM Pre-Processing | 2 | October 13, 2015 13:28 |
Running parallel case after parallel meshing with snappyHexMesh? | Adam Persson | OpenFOAM Running, Solving & CFD | 0 | August 31, 2015 23:04 |
Error when using mpirun for parallel case | mfoster | OpenFOAM Running, Solving & CFD | 10 | July 7, 2015 13:28 |
Free surface boudary conditions with SOLA-VOF | Fan | Main CFD Forum | 10 | September 9, 2006 13:24 |