Fixed run script: copy fields
This commit is contained in:
parent
fbbbcb4c31
commit
1113022678
3 changed files with 13 additions and 2 deletions
|
@ -8,6 +8,11 @@ runApplication setSet -batch makeCellSets.setSet
|
||||||
rm constant/polyMesh/sets/*_old
|
rm constant/polyMesh/sets/*_old
|
||||||
runApplication setsToZones -noFlipMap
|
runApplication setsToZones -noFlipMap
|
||||||
runApplication splitMeshRegions -cellZones
|
runApplication splitMeshRegions -cellZones
|
||||||
|
cp 0/* 0.001/bottomAir/
|
||||||
|
cp 0/* 0.001/heater/
|
||||||
|
cp 0/* 0.001/leftSolid/
|
||||||
|
cp 0/* 0.001/rightSolid/
|
||||||
|
cp 0/* 0.001/topAir/
|
||||||
changeDictionary -region bottomAir
|
changeDictionary -region bottomAir
|
||||||
changeDictionary -region topAir
|
changeDictionary -region topAir
|
||||||
changeDictionary -region heater
|
changeDictionary -region heater
|
||||||
|
|
|
@ -9,6 +9,13 @@ runApplication blockMesh
|
||||||
runApplication snappyHexMesh -overwrite
|
runApplication snappyHexMesh -overwrite
|
||||||
runApplication splitMeshRegions -cellZones
|
runApplication splitMeshRegions -cellZones
|
||||||
|
|
||||||
|
# copy fields
|
||||||
|
cp 0/* 0.001/bottomAir/
|
||||||
|
cp 0/* 0.001/heater/
|
||||||
|
cp 0/* 0.001/leftSolid/
|
||||||
|
cp 0/* 0.001/rightSolid/
|
||||||
|
cp 0/* 0.001/topAir/
|
||||||
|
|
||||||
# remove fluid fields from solid regions (important for post-processing)
|
# remove fluid fields from solid regions (important for post-processing)
|
||||||
for i in heater leftSolid rightSolid
|
for i in heater leftSolid rightSolid
|
||||||
do
|
do
|
||||||
|
@ -26,7 +33,6 @@ do
|
||||||
changeDictionary -region $i > log.changeDictionary.$i 2>&1
|
changeDictionary -region $i > log.changeDictionary.$i 2>&1
|
||||||
done
|
done
|
||||||
|
|
||||||
|
|
||||||
#-- Run on single processor
|
#-- Run on single processor
|
||||||
runApplication chtMultiRegionFoam
|
runApplication chtMultiRegionFoam
|
||||||
|
|
||||||
|
|
|
@ -1,6 +1,6 @@
|
||||||
/*--------------------------------*- C++ -*----------------------------------*\
|
/*--------------------------------*- C++ -*----------------------------------*\
|
||||||
| ========= | |
|
| ========= | |
|
||||||
| \\ / F ield | OpenFOAM Extend Project: Open Source CFD |
|
| \\ / F ield | OpenFOAM Extend Project: Open source CFD |
|
||||||
| \\ / O peration | Version: 1.6-ext |
|
| \\ / O peration | Version: 1.6-ext |
|
||||||
| \\ / A nd | Web: www.extend-project.de |
|
| \\ / A nd | Web: www.extend-project.de |
|
||||||
| \\/ M anipulation | |
|
| \\/ M anipulation | |
|
||||||
|
|
Reference in a new issue