ENH: allow datToFoam writing points dict directly

- refactors the corresponding tutorial by removing redundant files and items:
    compressible/rhoCentralFoam/biconic25-55Run35
This commit is contained in:
Kutalmis Bercin
2020-01-22 09:41:25 +00:00
parent ae40bd9f9b
commit f55da4b690
8 changed files with 56 additions and 65595 deletions

View File

@ -5,5 +5,6 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase
cleanSamples
rm -rf 0/pointPriority
#------------------------------------------------------------------------------

View File

@ -4,17 +4,12 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
runApplication blockMesh
runApplication datToFoam grid256.dat
CONST="constant"
cat $CONST/pointsHeader $CONST/points.tmp > $CONST/polyMesh/points
runApplication collapseEdges -overwrite
echo "Changing patch type to wedge type in boundary file"
mv $CONST/polyMesh/boundary $CONST/polyMesh/boundary.bak
sed -f $CONST/wedgeScr $CONST/polyMesh/boundary.bak > $CONST/polyMesh/boundary
rm $CONST/polyMesh/boundary.bak
echo "Overwriting 'patch' type as 'wedge' type in 'boundary' dictionary"
sed -if '/wedge1/,/nFaces/{s/patch/wedge/};/wedge2/,/nFaces/{s/patch/wedge/}'\
constant/polyMesh/boundary
runApplication $(getApplication)

View File

@ -1,14 +0,0 @@
/*--------------------------------*- C++ -*----------------------------------*\
| ========= | |
| \\ / F ield | OpenFOAM: The Open Source CFD Toolbox |
| \\ / O peration | Version: v1912 |
| \\ / A nd | Website: www.openfoam.com |
| \\/ M anipulation | |
\*---------------------------------------------------------------------------*/
FoamFile
{
version 2.0;
format ascii;
class vectorField;
object points;
}

View File

@ -37,8 +37,26 @@ mixture
Tlow 100;
Thigh 10000;
Tcommon 1000;
highCpCoeffs ( 2.9525407 0.0013968838 -4.9262577e-07 7.8600091e-11 -4.6074978e-15 -923.93753 5.8718221 );
lowCpCoeffs ( 3.5309628 -0.0001236595 -5.0299339e-07 2.4352768e-09 -1.4087954e-12 -1046.9637 2.9674391 );
highCpCoeffs
(
2.9525407
0.0013968838
-4.9262577e-07
7.8600091e-11
-4.6074978e-15
-923.93753
5.8718221
);
lowCpCoeffs
(
3.5309628
-0.0001236595
-5.0299339e-07
2.4352768e-09
-1.4087954e-12
-1046.9637
2.9674391
);
}
transport
{

View File

@ -1,6 +0,0 @@
/wedge1/,/nFaces/{
s/patch/wedge/
}
/wedge2/,/nFaces/{
s/patch/wedge/
}

View File

@ -31,7 +31,7 @@ writeControl adjustable;
writeInterval 5e-5;
cycleWrite 0;
purgeWrite 0;
writeFormat binary;