mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
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:
@ -5,5 +5,6 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
|
||||
cleanCase
|
||||
cleanSamples
|
||||
rm -rf 0/pointPriority
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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)
|
||||
|
||||
|
||||
File diff suppressed because it is too large
Load Diff
@ -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;
|
||||
}
|
||||
@ -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
|
||||
{
|
||||
|
||||
@ -1,6 +0,0 @@
|
||||
/wedge1/,/nFaces/{
|
||||
s/patch/wedge/
|
||||
}
|
||||
/wedge2/,/nFaces/{
|
||||
s/patch/wedge/
|
||||
}
|
||||
@ -31,7 +31,7 @@ writeControl adjustable;
|
||||
|
||||
writeInterval 5e-5;
|
||||
|
||||
cycleWrite 0;
|
||||
purgeWrite 0;
|
||||
|
||||
writeFormat binary;
|
||||
|
||||
|
||||
Reference in New Issue
Block a user