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

reconstructPar_OpenFOAM

Register Blogs Community New Posts Updated Threads Search

Like Tree2Likes
  • 1 Post By NotOverUnderated
  • 1 Post By Yann

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   December 28, 2023, 06:53
Default reconstructPar_OpenFOAM
  #1
Member
 
Anurag
Join Date: Feb 2023
Posts: 64
Rep Power: 3
anubasu is on a distinguished road
Hi All,

After completing a OpenFOAM simulation, when I am doing reconstructPar for large data sets, it is taking a lot of time. Is there a faster way t reconstruct my data? I am using interFOAM.
Thanks.
anubasu is offline   Reply With Quote

Old   December 28, 2023, 09:03
Default
  #2
Senior Member
 
NotOverUnderated's Avatar
 
ONESP-RO
Join Date: Feb 2021
Location: Somwhere on Planet Earth
Posts: 127
Rep Power: 5
NotOverUnderated is on a distinguished road
Quote:
Originally Posted by anubasu View Post
Hi All,

After completing a OpenFOAM simulation, when I am doing reconstructPar for large data sets, it is taking a lot of time. Is there a faster way t reconstruct my data? I am using interFOAM.
Thanks.
For postProcessing with Paraview you do not need to reconstruct your case. Paraview supports reading decomposed OpenFOAM cases:

- Open Paraview and select the .foam file of your case.
- Change the Case Type to Decomposed Case.

I hope this helps.
Yann likes this.
__________________
Don't keep making the same mistakes. Try to make new mistakes.
NotOverUnderated is offline   Reply With Quote

Old   December 28, 2023, 10:23
Smile
  #3
Member
 
Anurag
Join Date: Feb 2023
Posts: 64
Rep Power: 3
anubasu is on a distinguished road
Quote:
Originally Posted by NotOverUnderated View Post
For postProcessing with Paraview you do not need to reconstruct your case. Paraview supports reading decomposed OpenFOAM cases:

- Open Paraview and select the .foam file of your case.
- Change the Case Type to Decomposed Case.

I hope this helps.

Yes thanks. But animation in decomposed case runs very slowly and if I want to transfer all of the data from HPC to local then I need foamToVTK for which I need to reconstructPar anyways.
anubasu is offline   Reply With Quote

Old   December 28, 2023, 10:54
Default
  #4
Member
 
Anurag
Join Date: Feb 2023
Posts: 64
Rep Power: 3
anubasu is on a distinguished road
Means can i foamToVTK parallely without doing reconstructPar? so that it will do foamTOVTK for each processor and write the entire thing in the main directory??
Thanks.
anubasu is offline   Reply With Quote

Old   December 28, 2023, 12:52
Default
  #5
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,083
Rep Power: 26
Yann will become famous soon enough
Quote:
Originally Posted by anubasu View Post
Means can i foamToVTK parallely without doing reconstructPar? so that it will do foamTOVTK for each processor and write the entire thing in the main directory??
Thanks.
Hello,

Yes you can use foamToVTK or foamToEnsight in parallel to convert your data from your parallel case to VTK or Ensight format without reconstructing the case.
You can open both format in ParaView.

Regards,
Yann
NotOverUnderated likes this.
Yann is offline   Reply With Quote

Old   December 28, 2023, 13:38
Default
  #6
Member
 
Anurag
Join Date: Feb 2023
Posts: 64
Rep Power: 3
anubasu is on a distinguished road
Quote:
Originally Posted by Yann View Post
Hello,

Yes you can use foamToVTK or foamToEnsight in parallel to convert your data from your parallel case to VTK or Ensight format without reconstructing the case.
You can open both format in ParaView.

Regards,
Yann
Hi, Yes, I have done foamToVTK using mpirun -np foamToVTK -parallel and it has produced a VTK file in each processor dir as well as a total VTK in the main dir. But when I am trying to open it in paraview it is not as smooth as the VTK obtained after reconstructPar. There is some problem. There a lot of processor VTKs, processor boundary VTKs etc which is not properly loaded/displayed, etc.

Thanks.
anubasu is offline   Reply With Quote

Old   December 29, 2023, 08:55
Default
  #7
Senior Member
 
Yann
Join Date: Apr 2012
Location: France
Posts: 1,083
Rep Power: 26
Yann will become famous soon enough
Go for foamToEnsight in parallel. It will produce a single EnSight directory at the root of your case.

Yann
Yann is offline   Reply With Quote

Old   January 2, 2024, 11:08
Default
  #8
Senior Member
 
Mark Olesen
Join Date: Mar 2009
Location: https://olesenm.github.io/
Posts: 1,689
Rep Power: 40
olesen has a spectacular aura aboutolesen has a spectacular aura about
Quote:
Originally Posted by anubasu View Post
Hi, Yes, I have done foamToVTK using mpirun -np foamToVTK -parallel and it has produced a VTK file in each processor dir as well as a total VTK in the main dir. But when I am trying to open it in paraview it is not as smooth as the VTK obtained after reconstructPar. There is some problem. There a lot of processor VTKs, processor boundary VTKs etc which is not properly loaded/displayed, etc.

Thanks.



This sounds very wrong - there is no reason that foamToVTK in parallel should produce VTK files in each processor directory. Additionally, the processor boundaries should be suppressed, unless you have explicitly requested -processor-fields.
On the other hand, you have not stated anywhere which version of OpenFOAM you are using, so any concrete statement is not actually possible.
olesen 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



All times are GMT -4. The time now is 05:37.