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:
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -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;
|
||||
@ -5,7 +5,4 @@ cd "${0%/*}" || exit # Run from this directory
|
||||
|
||||
cleanCase
|
||||
|
||||
rm -f system/blockMeshDict
|
||||
rm -f 0/alpha.water
|
||||
|
||||
#------------------------------------------------------------------------------
|
||||
|
||||
@ -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)
|
||||
|
||||
@ -48,13 +48,14 @@ runTimeModifiable yes;
|
||||
adjustTimeStep yes;
|
||||
|
||||
maxCo 1.0;
|
||||
|
||||
maxAlphaCo 1.0;
|
||||
|
||||
maxDeltaT 0.05;
|
||||
|
||||
|
||||
functions
|
||||
{
|
||||
|
||||
minMax
|
||||
{
|
||||
type fieldMinMax;
|
||||
|
||||
@ -12,7 +12,6 @@ FoamFile
|
||||
class dictionary;
|
||||
object createPatchDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
pointSync false;
|
||||
|
||||
@ -12,7 +12,6 @@ FoamFile
|
||||
class dictionary;
|
||||
object blockMeshDict;
|
||||
}
|
||||
|
||||
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
|
||||
|
||||
scale 0.001;
|
||||
|
||||
Reference in New Issue
Block a user