Converting tutorial basic/laplacianFoam/Case1.1_mixingPlane_sector_AB_60deg to new mixing plane syntax
This commit is contained in:
parent
ae8aad4588
commit
e8836c5a4f
3 changed files with 26 additions and 6 deletions
|
@ -27,21 +27,25 @@ then
|
||||||
echo "Using pyFoamChangeMixingPlaneBoundary.py"
|
echo "Using pyFoamChangeMixingPlaneBoundary.py"
|
||||||
pyFoamChangeMixingPlaneBoundary.py . B_UPSTREAM \
|
pyFoamChangeMixingPlaneBoundary.py . B_UPSTREAM \
|
||||||
--shadowPatch B_DOWNSTREAM \
|
--shadowPatch B_DOWNSTREAM \
|
||||||
|
--zone B_UPSTREAMZone \
|
||||||
|
--ribbonPatchDiscretisation bothPatches \
|
||||||
|
--ribbonPatchStackAxis R \
|
||||||
|
--ribbonPatchSweepAxis Theta \
|
||||||
--coordinateSystemType cylindrical \
|
--coordinateSystemType cylindrical \
|
||||||
--coordinateSystemOrigin "(0 0 0)" \
|
--coordinateSystemOrigin "(0 0 0)" \
|
||||||
--coordinateSystemE1 "(1 0 0)" \
|
--coordinateSystemE1 "(1 0 0)" \
|
||||||
--coordinateSystemE3 "(0 0 1)" \
|
--coordinateSystemE3 "(0 0 1)" \
|
||||||
--assembly both \
|
|
||||||
--orientation dirR_spanTheta
|
|
||||||
|
|
||||||
pyFoamChangeMixingPlaneBoundary.py . B_DOWNSTREAM \
|
pyFoamChangeMixingPlaneBoundary.py . B_DOWNSTREAM \
|
||||||
--shadowPatch B_UPSTREAM \
|
--shadowPatch B_UPSTREAM \
|
||||||
|
--zone B_DOWNSTREAMZone \
|
||||||
|
--ribbonPatchDiscretisation bothPatches \
|
||||||
|
--ribbonPatchStackAxis R \
|
||||||
|
--ribbonPatchSweepAxis Theta \
|
||||||
--coordinateSystemType cylindrical \
|
--coordinateSystemType cylindrical \
|
||||||
--coordinateSystemOrigin "(0 0 0)" \
|
--coordinateSystemOrigin "(0 0 0)" \
|
||||||
--coordinateSystemE1 "(1 0 0)" \
|
--coordinateSystemE1 "(1 0 0)" \
|
||||||
--coordinateSystemE3 "(0 0 1)" \
|
--coordinateSystemE3 "(0 0 1)" \
|
||||||
--assembly both \
|
|
||||||
--orientation dirR_spanTheta
|
|
||||||
|
|
||||||
echo "Using pyFoamChangeGGIBoundary.py"
|
echo "Using pyFoamChangeGGIBoundary.py"
|
||||||
pyFoamChangeGGIBoundary.py . sideWallA_BB_cyclic1 \
|
pyFoamChangeGGIBoundary.py . sideWallA_BB_cyclic1 \
|
||||||
|
@ -64,8 +68,17 @@ fi
|
||||||
echo "$caseName: Creating the starting time directory"
|
echo "$caseName: Creating the starting time directory"
|
||||||
cp -r 0_orig 0
|
cp -r 0_orig 0
|
||||||
|
|
||||||
runApplication setSet -batch setBatchGgi
|
echo "$caseName: Creating zones for the mixingPlane"
|
||||||
runApplication setsToZones -noFlipMap
|
runApplicationAndReportOnError setSet -batch setBatchMixingPlane
|
||||||
|
runApplicationAndReportOnError setsToZones -noFlipMap
|
||||||
|
mv log.setSet log.setSet_MixingPlane
|
||||||
|
mv log.setsToZones log.setsToZones_MixingPlane
|
||||||
|
|
||||||
|
echo "$caseName: Creating zones for the Ggi"
|
||||||
|
runApplicationAndReportOnError setSet -batch setBatchGgi
|
||||||
|
runApplicationAndReportOnError setsToZones -noFlipMap
|
||||||
|
mv log.setSet log.setSet_Ggi
|
||||||
|
mv log.setsToZones log.setsToZones_Ggi
|
||||||
|
|
||||||
echo "$caseName: Running laplacianFoam"
|
echo "$caseName: Running laplacianFoam"
|
||||||
runApplicationAndReportOnError laplacianFoam
|
runApplicationAndReportOnError laplacianFoam
|
||||||
|
|
|
@ -0,0 +1,3 @@
|
||||||
|
faceSet B_UPSTREAMZone new patchToFace B_UPSTREAM
|
||||||
|
faceSet B_DOWNSTREAMZone new patchToFace B_DOWNSTREAM
|
||||||
|
quit
|
|
@ -68,4 +68,8 @@ fluxRequired
|
||||||
p;
|
p;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
mixingPlane
|
||||||
|
{
|
||||||
|
default zeroGradient;
|
||||||
|
}
|
||||||
// ************************************************************************* //
|
// ************************************************************************* //
|
||||||
|
|
Reference in a new issue