CFD Online Logo CFD Online URL
www.cfd-online.com
[Sponsors]
Home > Forums > Visualization & Post-Processing Software > ParaView

[OpenFOAM] Problem postprocessing decomposed case with 'paraFoam -builtin'

Register Blogs Community New Posts Updated Threads Search

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   February 17, 2017, 06:13
Default Problem postprocessing decomposed case with 'paraFoam -builtin'
  #1
New Member
 
Ben
Join Date: Oct 2016
Posts: 25
Rep Power: 9
bentkj is on a distinguished road
Hi everyone,

I am new to openfoam (4.1) and currently I'm working on simulations in the field of aerodynamic interactions.

I have been using reconstructPar to reconstruct my decomposed case which now takes up a lot of time with a simulation that involves about a thousand timesteps.

I have just discovered that I can postprocess my solutions without reconstructing the case by use of the command
paraFoam -builtin
and then selecting decomposed as the case type and then clicking 'Apply'.

At this stage I run into an output error message:

Quote:
ERROR: In /home/openfoam/OpenFOAM/ParaView-5.0.1/VTK/IO/Geometry/vtkOpenFOAMReader.cxx, line 8500
vtkOpenFOAMReader (0x2e6e200): Can't open /home/ben/OpenFOAM/ben-4.1/run/pisoFoam_URANS_LES/sample_cylinder/processor0/constant/

ERROR: In /home/openfoam/OpenFOAM/ParaView-5.0.1/VTK/Common/ExecutionModel/vtkExecutive.cxx, line 784
vtkPVCompositeDataPipeline (0x38a6330): Algorithm vtkPOpenFOAMReader(0x38bb260) returned failure for request: vtkInformation (0x18ead30)
Debug: Off
Modified Time: 200793
Reference Count: 1
Registered Events: (none)
Request: REQUEST_INFORMATION
FROM_OUTPUT_PORT: 0
ALGORITHM_AFTER_FORWARD: 1
FORWARD_DIRECTION: 0
From the error messages, it seems to me that the the constant folder is supposed to be decomposed into the processor* folders as well? *processor number

There must be something that I am doing wrong with my workflow.

After setting up the case files (0, constant, system),
typically I would run...

blockMesh && checkMesh

decomposePar && mpirun -np 36 snappyHexMesh -parallel && reconstructParMesh

I would then copy the files within 0 (U, p, nut, nuTilda etc.) into the folder with the latest time step containing my mesh that was generated with snappyHexMesh, rename it to 0 while deleting all the other timesteps so now I'm left with (0, constant, system) folders again, with 0 containing my polyMesh file with (U, p, nut, etc.)

decomposePar && mpirun -np 36 pisoFoam -parallel && reconstructPar

paraFoam
...to view my results.

My processor* folders do not contain a constant folder.

I have been using this workflow for my RANS (simpeFoam) and now URANS (pisoFoam) which is where I have to deal with a large amount of saved timesteps making reconstructPar extremely time consuming hence I stumbled upon the 'paraFoam -builtin' command to work with a decomposed case.

Please help! the following are the Dict files which I think may be need to help me solve my problem.

Thank you very much!

EDIT: also, any feedback regarding my workflow is greatly appreciated!
Attached Files
File Type: txt decomposeParDict.txt (1.1 KB, 8 views)
File Type: txt snappyHexMeshDict.txt (10.5 KB, 5 views)
bentkj is offline   Reply With Quote

Old   February 21, 2017, 02:10
Default
  #2
New Member
 
Ben
Join Date: Oct 2016
Posts: 25
Rep Power: 9
bentkj is on a distinguished road
I seem to have solved the problem. It seems like my workflow was not exactly correct and how I managed the overwriting of files during the snappyHexMesh process.

I followed the workflow in the tutorial:

https://www.youtube.com/watch?v=ObsFQUiVi1U

and my problem is fixed. Thank you!
bentkj is offline   Reply With Quote

Old   February 21, 2017, 03:04
Default
  #3
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Just to add on a bit. You don't need the paraFoam command.

In your case folder create a dummy file called, say, case.foam. And open the file with Paraview, and in the Case Type, choose Decomposed.

Cheers,
Antimony
Antimony is offline   Reply With Quote

Old   February 21, 2017, 03:59
Default
  #4
New Member
 
Ben
Join Date: Oct 2016
Posts: 25
Rep Power: 9
bentkj is on a distinguished road
Quote:
Originally Posted by Antimony View Post
Hi,

Just to add on a bit. You don't need the paraFoam command.

In your case folder create a dummy file called, say, case.foam. And open the file with Paraview, and in the Case Type, choose Decomposed.

Cheers,
Antimony
Thank you, Antimony.

Just for understanding, is there a difference between the .foam and .openfoam formats? In what way do they differ? I realize this difference in formats since I've adjusted my workflow.

Thank you,
Ben
bentkj is offline   Reply With Quote

Old   February 21, 2017, 04:22
Default
  #5
Senior Member
 
Join Date: Aug 2013
Posts: 407
Rep Power: 15
Antimony is on a distinguished road
Hi,

Sorry, haven't used much of .OpenFOAM to really comment on it. Typically use .foam and it has always been convenient. If I am not mistaken the built-in OpenFOAMReader needs a .foam extension, but I could be wrong on this.

Cheers,
Antimony
Antimony 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


Similar Threads
Thread Thread Starter Forum Replies Last Post
[OpenFOAM.com] paraFoam cannot open due to Qt issues - [Solved/Information] u2berggeist OpenFOAM Installation 2 July 2, 2018 17:03
Post-process decomposed case after a simulation scigowtham OpenFOAM Post-Processing 0 May 7, 2017 03:07
Problem running movingCylinders case in parallel with foam-extend-3.1 mhkenergy OpenFOAM Running, Solving & CFD 5 March 3, 2017 05:20
damBreak case parallel run problem behzad-cfd OpenFOAM Running, Solving & CFD 5 August 2, 2015 17:18
successful time step for 2D problem failing for 3D case of same problem. mandman Main CFD Forum 6 March 10, 2015 19:01


All times are GMT -4. The time now is 07:25.