|
[Sponsors] | |||||
case runs in series mode, but in parallel mode there's no data in the paraView fields |
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Display Modes |
|
|
|
#1 |
|
Senior Member
Alan w
Join Date: Feb 2021
Posts: 320
Rep Power: 7 ![]() |
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
|
|
|
|
|
|
|
|
|
#3 |
|
Senior Member
Alan w
Join Date: Feb 2021
Posts: 320
Rep Power: 7 ![]() |
Adding reconstructPar solved the problem!!
Thanks dlahaye, and have a Happy New Year! boffin5 |
|
|
|
|
|
![]() |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
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 |