systemDict: Include region in the default directory for the -dict option

With this change both of the following commands are equivalent:

    topoSet -region air -dict topoSetDict1
    topoSet -region air -dict system/air/topoSetDict1

I.e., if the system/<regionName> path is not specified then it is
assumed.
This commit is contained in:
Will Bainbridge
2021-07-04 10:19:44 +01:00
parent 500f1ee9f4
commit cce3e1b1d0
3 changed files with 12 additions and 18 deletions

View File

@ -10,7 +10,7 @@ runApplication foamSetupCHT
runApplication foamDictionary -entry internalField -set "uniform 348" 0/solid/T
runApplication decomposePar -allRegions -dict decomposeParDict
runApplication decomposePar -allRegions -dict system/decomposeParDict
printf "\n%s\n" "Creating files for paraview post-processing"
paraFoam -touchAll

View File

@ -10,14 +10,12 @@ runApplication -s air blockMesh -region air
runApplication -s porous blockMesh -region porous
# Create rotor blades in air region
runApplication -s air.1 \
topoSet -region air -dict system/air/topoSetDict.1
runApplication -s air.1 topoSet -region air -dict topoSetDict.1
runApplication createBaffles -region air -overwrite
# Create rotor zone in air region for MRF
runApplication -s air.2 \
topoSet -region air -dict system/air/topoSetDict.2
runApplication -s air.2 topoSet -region air -dict topoSetDict.2
rm -rf constant/air/polyMesh/sets