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

case runs in series mode, but in parallel mode there's no data in the paraView fields

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

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
Old   January 12, 2026, 15:24
Default case runs in series mode, but in parallel mode there's no data in the paraView fields
  #1
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 320
Rep Power: 7
boffin5 is on a distinguished road
Finally I am running cases in v2412, after switching from OF8. My case ran okay as a series case, but when I convert it for parallel, it generates data, but in paraView the U, p and T fields don't appear.

This is a chtMultiRegionSimpleFoam case composed of an airplane fuselage that has a duct with a porousZone representing a radiator (image attached).
It starts with a pre-generated polyMesh file in a fluid folder, and another one in the porous folder. Here is my parallel run script:
Code:
#!/bin/sh
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions        # Tutorial run functions

rm -rf 0
cp -r 0.orig 0

# Place fluid mesh into constant/fluid for decomposing
#-----------------------------------------------
mkdir constant/fluid
cp -r polyMesh.fluid constant/fluid

mv constant/fluid/polyMesh.fluid constant/fluid/polyMesh

decomposePar -region fluid -copyZero 2>&1 | tee log.decomposePar

# Place porous mesh into constant/porous for decomposing
#-----------------------------------------------------
mkdir constant/porous
cp -r polyMesh.porous constant/porous

mv constant/porous/polyMesh.porous constant/porous/polyMesh

decomposePar -region porous -copyZero 2>&1 | tee log.decomposePar

# Check both meshes
#-----------------------------------------------------
mpirun -np 8 checkMesh -region fluid -constant -parallel 2>&1 | tee log.checkMesh.fluid
mpirun -np 8 checkMesh -region porous -constant -parallel 2>&1 | tee log.checkMesh.porous

# Run the simulation
#-----------------------------------------------------
mpirun -np 8 chtMultiRegionSimpleFoam -parallel | tee run.log

runApplication reconstructParMesh -mergeTol 1e-5 -constant -latestTime -allRegions

It runs all the way through, but paraView fails. There is a telling bit in the run log:
Code:
writing force and moment coefficient files.

--> FOAM Warning : 
    From virtual bool Foam::functionObjects::fieldSelection::checkSelection()
    in file functionObjects/fieldSelections/fieldSelection/fieldSelection.C at line 179
    Field p not found
--> FOAM Warning : 
    From virtual bool Foam::functionObjects::solverFieldSelection::updateSelection()
    in file functionObjects/fieldSelections/solverFieldSelection/solverFieldSelection.C at line 82
    Valid solver fields are: 5(U epsilon h k p_rgh)Time = 2
It says it can't find p, but I have this BC in both the fluid and porous 0 folders. What is going on here? This is mystifying, since the simulation works find as a series case.
Attached Images
File Type: png SnapCrab_NoName_2026-1-12_11-7-4_No-00.png (45.9 KB, 10 views)
boffin5 is offline   Reply With Quote

Old   January 13, 2026, 12:49
Default
  #2
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 885
Blog Entries: 1
Rep Power: 20
dlahaye is on a distinguished road
Not sure.

You are now using reconstructParMesh.

Should you add reconstructPar (to reconstruct the computed field from the decomposed patches) to visualize the fields?
dlahaye is offline   Reply With Quote

Old   January 13, 2026, 13:41
Default That was it!!
  #3
Senior Member
 
Alan w
Join Date: Feb 2021
Posts: 320
Rep Power: 7
boffin5 is on a distinguished road
Adding reconstructPar solved the problem!!

Thanks dlahaye, and have a Happy New Year!

boffin5
boffin5 is offline   Reply With Quote

Old   January 13, 2026, 13:56
Default
  #4
Senior Member
 
Domenico Lahaye
Join Date: Dec 2013
Posts: 885
Blog Entries: 1
Rep Power: 20
dlahaye is on a distinguished road
I am so happy that reconstructPar started your of your year correctly!

Best wishes, Domenico.
dlahaye 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
[OpenFOAM.com] macOS Sequoia, Mpirun parallel problems Miguel Hernandez OpenFOAM Installation 0 April 27, 2025 07:51
Is Playstation 3 cluster suitable for CFD work hsieh OpenFOAM 9 August 16, 2015 15:53
[PyFoam] having problems with pyfoam Installation vitorspadetoventurin OpenFOAM Community Contributions 3 December 2, 2014 08:18
Free surface boudary conditions with SOLA-VOF Fan Main CFD Forum 10 September 9, 2006 13:24
How to update polyPatchbs localPoints liu OpenFOAM Running, Solving & CFD 6 December 30, 2005 18:27


All times are GMT -4. The time now is 03:46.