TUT: clean up multiphase tutorials

This commit is contained in:
Kutalmis Bercin
2020-01-29 17:19:43 +00:00
parent 647e161511
commit 01514e4d43
1349 changed files with 5623 additions and 241919 deletions

View File

@ -31,17 +31,20 @@ boundaryField
(14 (0 0 0.5))
);
}
outlet
{
type pressureInletOutletVelocity;
value $internalField;
inletValue $internalField;
}
walls
{
type fixedValue;
value uniform (0 0 0);
}
base
{
type fixedValue;

View File

@ -30,18 +30,20 @@ boundaryField
(1.01 0)
(14 0)
);
}
outlet
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
walls
{
type zeroGradient;
}
base
{
type zeroGradient;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,17 +25,20 @@ boundaryField
type fixedValue;
value $internalField;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
walls
{
type epsilonWallFunction;
value $internalField;
}
base
{
type epsilonWallFunction;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,17 +25,20 @@ boundaryField
type fixedValue;
value $internalField;
}
outlet
{
type inletOutlet;
inletValue $internalField;
value $internalField;
}
walls
{
type kqRWallFunction;
value $internalField;
}
base
{
type kqRWallFunction;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutkWallFunction;
value uniform 0;
}
base
{
type nutkWallFunction;

View File

@ -25,17 +25,20 @@ boundaryField
type fixedFluxPressure;
value uniform 0;
}
outlet
{
type prghTotalPressure;
p0 uniform 0;
value uniform 0;
}
walls
{
type fixedFluxPressure;
value uniform 0;
}
base
{
type fixedFluxPressure;

View File

@ -5,7 +5,4 @@ cd "${0%/*}" || exit # Run from this directory
cleanCase
rm -f system/blockMeshDict
rm -f 0/alpha.water
#------------------------------------------------------------------------------

View File

@ -3,23 +3,23 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
# create the underlying block mesh
restore0Dir
# Create the underlying block mesh
m4 system/pachuka.m4 > system/blockMeshDict
runApplication blockMesh
\cp 0/alpha.water.orig 0/alpha.water
# create faceSet for burner inlet and faceZone for coupled wall
# Create faceSet for burner inlet and faceZone for coupled wall
runApplication topoSet
# create burner inlet
# Create burner inlet
runApplication createPatch -overwrite
# Set alpha.water
runApplication setFields
# Decompose mesh
decomposePar > log.decomposePar 2>&1
runApplication decomposePar
# Run
runParallel $(getApplication)

View File

@ -48,13 +48,14 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1.0;
maxAlphaCo 1.0;
maxDeltaT 0.05;
functions
{
minMax
{
type fieldMinMax;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object createPatchDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
pointSync false;

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object blockMeshDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
scale 0.001;

View File

@ -2,10 +2,7 @@
cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
m4 system/blockMeshDict.m4 > system/blockMeshDict
blockMesh
topoSet
setsToZones -noFlipMap
( cd throttle && ./Allclean )
( cd throttle3D && ./Allclean )
#------------------------------------------------------------------------------

View File

@ -1,5 +1,6 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
( cd throttle && ./Allrun $* )
( cd throttle3D && ./Allrun $* )

View File

@ -23,13 +23,11 @@ boundaryField
inlet
{
type zeroGradient;
value uniform (0 0 0);
}
outlet
{
type zeroGradient;
value uniform (0 0 0);
}
walls

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -27,15 +26,18 @@ boundaryField
intensity 0.05;
value uniform 0.05;
}
outlet
{
type zeroGradient;
}
walls
{
type kqRWallFunction;
value uniform 10;
}
frontBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutUSpaldingWallFunction;
value uniform 0;
}
frontBack
{
type empty;

View File

@ -3,9 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
rm -rf 0/polyMesh
rm -f system/topoSetDict
#------------------------------------------------------------------------------

View File

@ -21,6 +21,8 @@ refineMeshByCellSet()
done
}
restore0Dir
runApplication blockMesh
refineMeshByCellSet 1 2 3
runApplication $(getApplication)

View File

@ -33,7 +33,6 @@ solvers
relTol 0;
}
p
{
solver GAMG;

View File

@ -23,13 +23,11 @@ boundaryField
inlet
{
type zeroGradient;
value uniform (0 0 0);
}
outlet
{
type zeroGradient;
value uniform (0 0 0);
}
walls

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutUSpaldingWallFunction;
value uniform 0;
}
frontBack
{
type nutUSpaldingWallFunction;

View File

@ -1,23 +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 dictionary;
location "system";
object mapFieldsDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
patchMap ( );
cuttingPatches ( );
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -27,15 +26,18 @@ boundaryField
intensity 0.05;
value uniform 0.05;
}
outlet
{
type zeroGradient;
}
walls
{
type kqRWallFunction;
value uniform 10;
}
frontBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,16 +25,19 @@ boundaryField
type calculated;
value uniform 0;
}
outlet
{
type calculated;
value uniform 0;
}
walls
{
type nutkWallFunction;
value uniform 0;
}
frontBack
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object omega;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -28,15 +27,18 @@ boundaryField
k k;
value uniform 77200;
}
outlet
{
type zeroGradient;
}
walls
{
type omegaWallFunction;
value uniform 77200;
}
frontBack
{
type empty;

View File

@ -3,9 +3,8 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase
cleanCase0
rm -rf 0/polyMesh
rm -f system/topoSetDict
#------------------------------------------------------------------------------

View File

@ -21,6 +21,8 @@ refineMeshByCellSet()
done
}
restore0Dir
runApplication blockMesh
refineMeshByCellSet 1 2 3
runApplication $(getApplication)

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type movingWallVelocity;

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type zeroGradient;

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type calculated;

View File

@ -24,10 +24,12 @@ boundaryField
{
type empty;
}
back
{
type empty;
}
walls
{
type fixedFluxPressure;

View File

@ -1,8 +1,7 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
foamCleanTutorials -self
rm -rf 0/alpha.water 0/alpha.water.gz 0/T.air.gz 0/T.water.gz \
probes wallPressure pRefProbe
cleanCase0
#------------------------------------------------------------------------------

View File

@ -6,7 +6,7 @@ cd "${0%/*}" || exit # Run from this directory
m4 system/blockMeshDict.m4 > system/blockMeshDict
runApplication blockMesh
cp 0/alpha.water.orig 0/alpha.water
restore0Dir
runApplication setFields
runApplication $(getApplication)

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,34 +24,41 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 300;
}
outerAMI
{
type cyclicAMI;
value uniform 300;
}
top
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
bottom
{
type zeroGradient;
}
farFieldWall
{
type zeroGradient;
}
sphere
{
type zeroGradient;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object T.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,34 +24,41 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 300;
}
outerAMI
{
type cyclicAMI;
value uniform 300;
}
top
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
bottom
{
type zeroGradient;
}
farFieldWall
{
type zeroGradient;
}
sphere
{
type zeroGradient;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object T.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,34 +24,41 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 300;
}
outerAMI
{
type cyclicAMI;
value uniform 300;
}
top
{
type inletOutlet;
inletValue uniform 300;
value uniform 300;
}
bottom
{
type zeroGradient;
}
farFieldWall
{
type zeroGradient;
}
sphere
{
type zeroGradient;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,34 +24,41 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform (0 0 0);
}
outerAMI
{
type cyclicAMI;
value uniform (0 0 0);
}
top
{
type zeroGradient;
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
farFieldWall
{
type fixedValue;
value uniform (0 0 0);
}
sphere
{
type movingWallVelocity;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha.walter;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,32 +24,39 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 0;
}
outerAMI
{
type cyclicAMI;
value uniform 0;
}
top
{
type zeroGradient;
}
bottom
{
type zeroGradient;
}
farFieldWall
{
type zeroGradient;
}
sphere
{
type zeroGradient;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,35 +24,42 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 101325;
}
outerAMI
{
type cyclicAMI;
value uniform 101325;
}
top
{
type calculated;
value uniform 101325;
}
bottom
{
type calculated;
value uniform 101325;
}
farFieldWall
{
type calculated;
value uniform 101325;
}
sphere
{
type calculated;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,37 +24,44 @@ boundaryField
{
type wedge;
}
back
{
type wedge;
}
innerAMI
{
type cyclicAMI;
value uniform 101325;
}
outerAMI
{
type cyclicAMI;
value uniform 101325;
}
top
{
type fixedValue;
value uniform 101325;
}
bottom
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 101325;
}
farFieldWall
{
type fixedFluxPressure;
gradient uniform 0;
value uniform 101325;
}
sphere
{
type fixedFluxPressure;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class pointVectorField;
location "0";
object pointDisplacement;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -29,16 +28,19 @@ boundaryField
type fixedValue;
value uniform (0 0 0);
}
bottom
{
type fixedValue;
value uniform (0 0 0);
}
top
{
type fixedValue;
value uniform (0 0 0);
}
sphere
{
type sixDoFRigidBodyDisplacement;
@ -77,18 +79,22 @@ boundaryField
value uniform ( 0 0 0 );
}
innerAMI
{
type cyclicAMI;
}
outerAMI
{
type cyclicAMI;
}
back
{
type wedge;
}
front
{
type wedge;

View File

@ -14,6 +14,7 @@ FoamFile
object transportProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
phases (water air);
water

View File

@ -17,12 +17,5 @@ FoamFile
simulationType laminar;
RAS
{
RASModel laminar;
turbulence on;
printCoeffs off;
}
// ************************************************************************* //

View File

@ -24,7 +24,6 @@ solvers
cAlpha 1;
}
cellDisplacement
{
solver GAMG;
@ -80,25 +79,22 @@ solvers
tolerance 1e-08;
relTol 0;
}
}
PIMPLE
{
momentumPredictor no;
nOuterCorrectors 2;
nCorrectors 4;
nNonOrthogonalCorrectors 1;
correctPhi yes;
checkMeshCourantNo no;
moveMeshOuterCorrectors no;
transonic false;
}
relaxationFactors
{
fields

View File

@ -31,3 +31,6 @@ regions
);
}
);
// ************************************************************************* //

View File

@ -12,7 +12,6 @@ FoamFile
class dictionary;
object topoSetDict;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
actions

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -29,6 +28,7 @@ boundaryField
omega constant 13.2; // 2.1 rev/s
value uniform (0 0 0);
}
vessel
{
type noSlip;

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 1;
maxAlphaCo 1;
maxDeltaT 1;

View File

@ -24,6 +24,7 @@ boundaryField
{
type noSlip;
}
frontAndBack
{
type empty;

View File

@ -14,21 +14,6 @@ FoamFile
object thermophysicalProperties;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
/*
thermoType
{
type heRhoThermo;
mixture pureMixture;
properties liquid;
energy sensibleInternalEnergy;
}
mixture
{
H2O;
}
*/
thermoType
{

View File

@ -48,7 +48,9 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -24,6 +24,7 @@ boundaryField
{
type noSlip;
}
frontAndBack
{
type empty;

View File

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

View File

@ -48,7 +48,9 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -23,9 +23,5 @@ coeffs
n (1 4 1);
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object T;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,22 +25,26 @@ boundaryField
type fixedValue;
value $internalField;
}
rightWall
{
type fixedValue;
value $internalField;
}
lowerWall
{
type fixedValue;
value uniform 293;
}
atmosphere
{
type inletOutlet;
phi rhoPhi;
inletValue $internalField;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,19 +24,23 @@ boundaryField
{
type noSlip;
}
rightWall
{
type noSlip;
}
lowerWall
{
type noSlip;
}
atmosphere
{
type pressureInletOutletVelocity;
value uniform (0 0 0);
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha.air;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -35,6 +34,7 @@ boundaryField
);
value uniform 0;
}
rightWall
{
type alphaContactAngle;
@ -49,6 +49,7 @@ boundaryField
);
value uniform 1;
}
lowerWall
{
type alphaContactAngle;
@ -63,12 +64,14 @@ boundaryField
);
value uniform 0;
}
atmosphere
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha.mercury;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,20 +24,24 @@ boundaryField
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha.oil;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,20 +24,24 @@ boundaryField
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alpha.water;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,20 +24,24 @@ boundaryField
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type inletOutlet;
inletValue uniform 0;
value uniform 0;
}
defaultFaces
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object alphas;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,18 +24,22 @@ boundaryField
{
type zeroGradient;
}
rightWall
{
type zeroGradient;
}
lowerWall
{
type zeroGradient;
}
atmosphere
{
type zeroGradient;
}
defaultFaces
{
type empty;

View File

@ -48,6 +48,7 @@ runTimeModifiable yes;
adjustTimeStep yes;
maxCo 0.5;
maxAlphaCo 0.5;
maxDeltaT 1;

View File

@ -23,9 +23,5 @@ coeffs
n (2 2 1);
}
distributed no;
roots ( );
// ************************************************************************* //

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //

View File

@ -31,7 +31,7 @@ writeControl adjustable;
writeInterval 50;
purgeWrite 10;
purgeWrite 0;
writeFormat binary;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volVectorField;
location "0";
object U;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -25,14 +24,17 @@ boundaryField
{
type noSlip;
}
stator
{
type noSlip;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object epsilon;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -29,6 +28,7 @@ boundaryField
kappa 0.41;
E 9.8;
}
stator
{
type epsilonWallFunction;
@ -37,10 +37,12 @@ boundaryField
kappa 0.41;
E 9.8;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object k;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -26,15 +25,18 @@ boundaryField
type kqRWallFunction;
value $internalField;
}
stator
{
type kqRWallFunction;
value $internalField;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -10,7 +10,6 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
location "0";
object nut;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -29,6 +28,7 @@ boundaryField
E 9.8;
value uniform 0;
}
stator
{
type nutkWallFunction;
@ -37,10 +37,12 @@ boundaryField
E 9.8;
value uniform 0;
}
front
{
type empty;
}
back
{
type empty;

View File

@ -0,0 +1,10 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
cleanCase0
rm -f system/blockMeshDict
#------------------------------------------------------------------------------

View File

@ -3,7 +3,10 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
runApplication ./makeMesh
./Allrun.pre
restore0Dir
runApplication $(getApplication)
#------------------------------------------------------------------------------

View File

@ -4,8 +4,11 @@ cd "${0%/*}" || exit # Run from this directory
#------------------------------------------------------------------------------
m4 system/blockMeshDict.m4 > system/blockMeshDict
runApplication blockMesh
runApplication topoSet
runApplication setsToZones -noFlipMap
#------------------------------------------------------------------------------

View File

@ -31,7 +31,7 @@ writeControl adjustable;
writeInterval 0.25;
purgeWrite 10;
purgeWrite 0;
writeFormat ascii;

View File

@ -10,7 +10,7 @@ FoamFile
version 2.0;
format ascii;
class volScalarField;
object alpha.water;
object alpha.sludge;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
@ -20,33 +20,46 @@ internalField uniform 0;
boundaryField
{
SYMP3
{
type slip;
}
front
{
type zeroGradient;
}
back
{
type zeroGradient;
}
walls
{
type zeroGradient;
}
porosityWall
{
type zeroGradient;
}
inlet
INLE1
{
type fixedValue;
value uniform 1;
value uniform 0.002;
}
outlet
OUTL9
{
type zeroGradient;
}
OUTL10
{
type zeroGradient;
}
OUTL11
{
type zeroGradient;
}
OUTL12
{
type zeroGradient;
}
"WALL.*"
{
type zeroGradient;
}
OUTL15
{
type inletOutlet;
value $internalField;
inletValue $internalField;
inletValue uniform 0;
}
}

View File

@ -20,35 +20,52 @@ internalField uniform 0;
boundaryField
{
front
SYMP3
{
type fixedFluxPressure;
value $internalField;
value uniform 0;
}
back
INLE1
{
type fixedFluxPressure;
value $internalField;
value uniform 0;
}
walls
OUTL9
{
type fixedFluxPressure;
value $internalField;
value uniform 0;
}
porosityWall
OUTL10
{
type fixedFluxPressure;
value $internalField;
value uniform 0;
}
inlet
OUTL11
{
type fixedFluxPressure;
value $internalField;
value uniform 0;
}
outlet
OUTL12
{
type fixedFluxPressure;
value uniform 0;
}
"WALL.*"
{
type fixedFluxPressure;
value uniform 0;
}
OUTL15
{
type fixedValue;
value $internalField;
value uniform 0;
}
}

View File

@ -1,126 +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 volScalarField;
object alpha.sludge;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [0 0 0 0 0 0 0];
internalField uniform 0;
boundaryField
{
SYMP3
{
type slip;
}
INLE1
{
type fixedValue;
value uniform 0.002;
}
OUTL9
{
type zeroGradient;
}
OUTL10
{
type zeroGradient;
}
OUTL11
{
type zeroGradient;
}
OUTL12
{
type zeroGradient;
}
WALL6
{
type zeroGradient;
}
WALL8
{
type zeroGradient;
}
WALL61
{
type zeroGradient;
}
WALL62
{
type zeroGradient;
}
WALL63
{
type zeroGradient;
}
WALL64
{
type zeroGradient;
}
WALL65
{
type zeroGradient;
}
WALL66
{
type zeroGradient;
}
WALL67
{
type zeroGradient;
}
WALL68
{
type zeroGradient;
}
WALL69
{
type zeroGradient;
}
WALL7
{
type zeroGradient;
}
WALL70
{
type zeroGradient;
}
OUTL15
{
type inletOutlet;
inletValue uniform 0;
}
}
// ************************************************************************* //

View File

@ -1,144 +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 volScalarField;
object p_rgh;
}
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
dimensions [1 -1 -2 0 0 0 0];
internalField uniform 0;
boundaryField
{
SYMP3
{
type fixedFluxPressure;
value uniform 0;
}
INLE1
{
type fixedFluxPressure;
value uniform 0;
}
OUTL9
{
type fixedFluxPressure;
value uniform 0;
}
OUTL10
{
type fixedFluxPressure;
value uniform 0;
}
OUTL11
{
type fixedFluxPressure;
value uniform 0;
}
OUTL12
{
type fixedFluxPressure;
value uniform 0;
}
WALL6
{
type fixedFluxPressure;
value uniform 0;
}
WALL8
{
type fixedFluxPressure;
value uniform 0;
}
WALL61
{
type fixedFluxPressure;
value uniform 0;
}
WALL62
{
type fixedFluxPressure;
value uniform 0;
}
WALL63
{
type fixedFluxPressure;
value uniform 0;
}
WALL64
{
type fixedFluxPressure;
value uniform 0;
}
WALL65
{
type fixedFluxPressure;
value uniform 0;
}
WALL66
{
type fixedFluxPressure;
value uniform 0;
}
WALL67
{
type fixedFluxPressure;
value uniform 0;
}
WALL68
{
type fixedFluxPressure;
value uniform 0;
}
WALL69
{
type fixedFluxPressure;
value uniform 0;
}
WALL7
{
type fixedFluxPressure;
value uniform 0;
}
WALL70
{
type fixedFluxPressure;
value uniform 0;
}
OUTL15
{
type fixedValue;
value uniform 0;
}
}
// ************************************************************************* //

View File

@ -1,8 +1,8 @@
#!/bin/sh
cd "${0%/*}" || exit # Run from this directory
cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/CleanFunctions # Tutorial clean functions
#------------------------------------------------------------------------------
# Clean time directories only
rm -rf *[1-9]*
rm -f log.*
cleanCase0
#------------------------------------------------------------------------------

View File

@ -3,6 +3,9 @@ cd "${0%/*}" || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#------------------------------------------------------------------------------
cp -rf constant/polyMesh.orig constant/polyMesh
restore0Dir
runApplication $(getApplication)
#------------------------------------------------------------------------------

Some files were not shown because too many files have changed in this diff Show More