tutorials: movingCone: Corrected and simplified

The '-region' option has been leveraged to significantly simplify the
meshing and decomposition in the movingCone cases. These cases have also
been corrected to restore the variation in decomposition between the
different meshes, which is important for thoroughly testing the patch
field mapping. The shockFluid case has also had its duration extended a
little in order to span the final mesh mapping time.
This commit is contained in:
Will Bainbridge
2023-02-07 15:41:34 +00:00
parent d4980f71d6
commit d1cb329706
18 changed files with 30 additions and 300 deletions

View File

@ -4,22 +4,13 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=$(getApplication)
mapTimes="0.0015 0.003"
# Iterate the string variable using for loop
for mapTime in $mapTimes; do
runApplication -a blockMesh -dict blockMeshDict_$mapTime
rm -rf constant/meshToMesh_$mapTime
mkdir constant/meshToMesh_$mapTime
mv constant/polyMesh constant/meshToMesh_$mapTime
runApplication blockMesh
for mapTime in 0.0015 0.003
do
runApplication -s $mapTime blockMesh -region meshToMesh_$mapTime
done
runApplication -a blockMesh
runApplication $application
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -4,40 +4,18 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
mapTimes="0.0015 0.003"
# Iterate the string variable using for loop
for mapTime in $mapTimes; do
runApplication -a blockMesh -dict blockMeshDict_$mapTime
runApplication -a decomposePar -force -noFields -dict decomposeParDict_$mapTime
rm -rf constant/meshToMesh_$mapTime
mkdir constant/meshToMesh_$mapTime
for procI in processor*
do
mv $procI/constant/polyMesh constant/meshToMesh_$mapTime/$procI
done
mv constant/polyMesh constant/meshToMesh_$mapTime
done
runApplication -a blockMesh -dict blockMeshDict
runApplication -a decomposePar -force
for mapTime in $mapTimes; do
for procI in processor*
do
mkdir $procI/constant/meshToMesh_$mapTime
mv constant/meshToMesh_$mapTime/$procI $procI/constant/meshToMesh_$mapTime/polyMesh
done
runApplication blockMesh
runApplication decomposePar -cellProc
for mapTime in 0.0015 0.003
do
runApplication -s $mapTime blockMesh -region meshToMesh_$mapTime
ln -s meshToMesh_$mapTime/decomposeParDict system/decomposeParDict
runApplication -s $mapTime decomposePar -region meshToMesh_$mapTime
rm -f system/decomposeParDict
done
runParallel $(getApplication)
runApplication reconstructPar
runApplication reconstructPar -cellProc
#------------------------------------------------------------------------------

View File

@ -34,7 +34,7 @@ writeInterval 1e-4;
purgeWrite 0;
writeFormat binary;
writeFormat ascii;
writePrecision 6;

View File

@ -18,25 +18,10 @@ numberOfSubdomains 4;
method hierarchical;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (4 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -18,25 +18,4 @@ numberOfSubdomains 4;
method scotch;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (4 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -18,25 +18,10 @@ numberOfSubdomains 4;
method hierarchical;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (2 2 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -4,22 +4,13 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
application=$(getApplication)
mapTimes="1e-05 2e-05"
# Iterate the string variable using for loop
for mapTime in $mapTimes; do
runApplication -a blockMesh -dict blockMeshDict_$mapTime
rm -rf constant/meshToMesh_$mapTime
mkdir constant/meshToMesh_$mapTime
mv constant/polyMesh constant/meshToMesh_$mapTime
runApplication blockMesh
for mapTime in 1e-05 2e-05
do
runApplication -s $mapTime blockMesh -region meshToMesh_$mapTime
done
runApplication -a blockMesh
runApplication $application
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -4,40 +4,18 @@ cd ${0%/*} || exit 1 # Run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
mapTimes="1e-05 2e-05"
# Iterate the string variable using for loop
for mapTime in $mapTimes; do
runApplication -a blockMesh -dict blockMeshDict_$mapTime
runApplication -a decomposePar -force -noFields -dict decomposeParDict_$mapTime
rm -rf constant/meshToMesh_$mapTime
mkdir constant/meshToMesh_$mapTime
for procI in processor*
do
mv $procI/constant/polyMesh constant/meshToMesh_$mapTime/$procI
done
mv constant/polyMesh constant/meshToMesh_$mapTime
done
runApplication -a blockMesh -dict blockMeshDict
runApplication -a decomposePar -force
for mapTime in $mapTimes; do
for procI in processor*
do
mkdir $procI/constant/meshToMesh_$mapTime
mv constant/meshToMesh_$mapTime/$procI $procI/constant/meshToMesh_$mapTime/polyMesh
done
runApplication blockMesh
runApplication decomposePar -cellProc
for mapTime in 1e-05 2e-05
do
runApplication -s $mapTime blockMesh -region meshToMesh_$mapTime
ln -s meshToMesh_$mapTime/decomposeParDict system/decomposeParDict
runApplication -s $mapTime decomposePar -region meshToMesh_$mapTime
rm -f system/decomposeParDict
done
runParallel $(getApplication)
runApplication reconstructPar
runApplication reconstructPar -cellProc
#------------------------------------------------------------------------------

View File

@ -1,52 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class volVectorField;
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform (0 0 0);
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
movingWall
{
type movingWallVelocity;
value $internalField;
}
farFieldMoving
{
type noSlip;
}
fixedWall
{
type noSlip;
}
left
{
type pressureInletOutletVelocity;
value $internalField;
}
farField
{
type noSlip;
}
}
// ************************************************************************* //

View File

@ -1,54 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
========= |
\\ / F ield | OpenFOAM: The Open Source CFD Toolbox
\\ / O peration | Website: https://openfoam.org
\\ / A nd | Version: dev
\\/ M anipulation |
\*---------------------------------------------------------------------------*/
FoamFile
{
format ascii;
class pointScalarField;
object pointMotionUx;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 1 -1 0 0 0 0];
internalField uniform 0;
boundaryField
{
#includeEtc "caseDicts/setConstraintTypes"
movingWall
{
type uniformFixedValue;
uniformValue constant 1;
}
farFieldMoving
{
type uniformFixedValue;
uniformValue constant 1;
}
fixedWall
{
type uniformFixedValue;
uniformValue constant 0;
}
left
{
type uniformFixedValue;
uniformValue constant 0;
}
farField
{
type slip;
}
}
// ************************************************************************* //

View File

@ -24,7 +24,7 @@ startTime 0;
stopAt endTime;
endTime 0.00002;
endTime 2.25e-05;
deltaT 1e-08;

View File

@ -18,25 +18,10 @@ numberOfSubdomains 4;
method hierarchical;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (4 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -18,25 +18,4 @@ numberOfSubdomains 4;
method scotch;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (4 1 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -18,25 +18,10 @@ numberOfSubdomains 4;
method hierarchical;
simpleCoeffs
{
n (2 1 1);
}
hierarchicalCoeffs
{
n (2 2 1);
order xyz;
}
manualCoeffs
{
dataFile "";
}
distributed no;
roots ( );
// ************************************************************************* //