mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: clean up multiphase tutorials
This commit is contained in:
@ -24,10 +24,12 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
walls
|
||||
{
|
||||
type movingWallVelocity;
|
||||
@ -24,10 +24,12 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
walls
|
||||
{
|
||||
type zeroGradient;
|
||||
@ -24,10 +24,12 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
walls
|
||||
{
|
||||
type calculated;
|
||||
@ -24,10 +24,12 @@ boundaryField
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
back
|
||||
{
|
||||
type empty;
|
||||
}
|
||||
|
||||
walls
|
||||
{
|
||||
type fixedFluxPressure;
|
||||
@ -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
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -48,6 +48,7 @@ runTimeModifiable yes;
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 0.5;
|
||||
|
||||
maxAlphaCo 0.5;
|
||||
|
||||
maxDeltaT 1;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -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;
|
||||
|
||||
@ -14,6 +14,7 @@ FoamFile
|
||||
object transportProperties;
|
||||
}
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
phases (water air);
|
||||
|
||||
water
|
||||
|
||||
@ -17,12 +17,5 @@ FoamFile
|
||||
|
||||
simulationType laminar;
|
||||
|
||||
RAS
|
||||
{
|
||||
RASModel laminar;
|
||||
|
||||
turbulence on;
|
||||
|
||||
printCoeffs off;
|
||||
}
|
||||
// ************************************************************************* //
|
||||
|
||||
@ -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
|
||||
|
||||
@ -31,3 +31,6 @@ regions
|
||||
);
|
||||
}
|
||||
);
|
||||
|
||||
|
||||
// ************************************************************************* //
|
||||
@ -12,7 +12,6 @@ FoamFile
|
||||
class dictionary;
|
||||
object topoSetDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
actions
|
||||
|
||||
Reference in New Issue
Block a user