View Issue Details

IDProjectCategoryView StatusLast Update
0002014OpenFOAMFeaturepublic2017-09-03 19:43
Reporterjkim Assigned To 
PrioritynormalSeverityminorReproducibilityhave not tried
Status closedResolutionsuspended 
PlatformGNU/LinuxOSUbuntuOS Version14.04
Summary0002014: problem running decomposePar
DescriptionThere is a problem in running decompsePar for the circuitBoard tutorial case in buoyantSimpleFoam.
The problem is that decompsePar cannot find a patchGroup.
The decompsePar in OpenFOAM-3.0.x is not working when there is a thermalBaffle in T field.
TagsNo tags attached.

Activities

wyldckat

2016-03-05 20:09

updater   ~0005995

I was curious about this issue and unfortunately this is a missing feature that is still also missing from OpenFOAM-dev, at least as far as I can tell. THe problem is that the 3D baffle is using a relatively recent "regionModels" feature that allows for mesh regions created on-demand.
In this case, it's created by createBaffles, when it's initializing and updating the fields.


Nonetheless, there is a workaround for this. The instructions are as follows:

 1. Place the attached "Allrun-parallel" script inside the case folder (it's designed for OpenFOAM 3.0.x).

 2. Make the script executable:

      chmod +x Allrun-parallel

 3. Place a "decomposeParDict" file in both "system" and "system/baffle3DRegion". If you don't have at least one of them yet, then:

      cp $FOAM_UTILITIES/parallelProcessing/decomposePar/decomposeParDict system/
      cp $FOAM_UTILITIES/parallelProcessing/decomposePar/decomposeParDict system/baffle3DRegion/

 4. Don't forget to adjust the core count in the "decomposeParDict" and "Allrun-parallel" files.

 5. Now you can run the case:

      ./Allrun-parallel

 6. To post-process, you must use "foamToVTK" in parallel or use the built-in reader in ParaView.


@Henry: Unfortunately I'm still not familiar enough with the relatively new on-the-fly-regionModels feature and it doesn't feel like it is just a matter of copy-paste-adapting some of the code from "createBaffles" into "decomposePar" and "reconstructPar".
I don't know how you want to proceed on this issue for OpenFOAM-dev, i.e. if it's pending on funding or a contribution for implementing this feature, or even if this is already in development.

wyldckat

2016-03-05 20:09

updater  

Allrun-parallel (486 bytes)   
#!/bin/sh
. $WM_PROJECT_DIR/bin/tools/RunFunctions

# Get application name
application=`getApplication`

runApplication blockMesh

cp -r 0.org 0

runApplication decomposePar

for proc in processor*
do
    cp -r 0.org/baffle3DRegion $proc/0/
done

# Create 1D and 3D baffles in parallel
runParallel createBaffles 2 -overwrite

# Run the case in parallel
runParallel $application 2

# Note: You must use the built-in reader for seeing the two regions in parallel
paraFoam -touch -builtin
Allrun-parallel (486 bytes)   

henry

2016-03-06 19:12

manager   ~0005999

I don't have any current plans to work on this part of OpenFOAM. Any contributions to improve this functionality would be appreciated.

wyldckat

2017-09-03 19:43

updater   ~0008676

It's been over a year now. I'm suspending this report for now.

Issue History

Date Modified Username Field Change
2016-03-05 00:33 jkim New Issue
2016-03-05 20:09 wyldckat Note Added: 0005995
2016-03-05 20:09 wyldckat File Added: Allrun-parallel
2016-03-06 19:12 henry Note Added: 0005999
2016-03-11 11:44 administrator Category 3.0.1 => (No Category)
2016-03-20 20:37 wyldckat Category (No Category) => Bug
2017-09-03 19:42 wyldckat Category Bug => Feature
2017-09-03 19:43 wyldckat Status new => closed
2017-09-03 19:43 wyldckat Resolution open => suspended
2017-09-03 19:43 wyldckat Note Added: 0008676