mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
STYLE: cleanup rhoPorousSimpleFoam tutorial case
- better cleanup, avoid collisions between implicit and explicit cases
This commit is contained in:
@ -46,8 +46,8 @@ boundaryField
|
|||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,19 +35,19 @@ boundaryField
|
|||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type slip;
|
type slip;
|
||||||
value uniform (0 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type flowRateInletVelocity;
|
type flowRateInletVelocity;
|
||||||
massFlowRate constant 0.1;
|
massFlowRate constant 0.1;
|
||||||
value uniform (0 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value uniform (0 0 0);
|
inletValue $internalField;
|
||||||
inletValue uniform (0 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,32 +24,32 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type compressible::alphatWallFunction;
|
type compressible::alphatWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type compressible::alphatWallFunction;
|
type compressible::alphatWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type compressible::alphatWallFunction;
|
type compressible::alphatWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type compressible::alphatWallFunction;
|
type compressible::alphatWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,39 +24,39 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
mixingLength 0.005;
|
mixingLength 0.005;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 200;
|
inletValue $internalField;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,39 +24,39 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 1;
|
inletValue $internalField;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,37 +24,37 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
12
tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean
Executable file
12
tutorials/compressible/rhoPorousSimpleFoam/angledDuct/explicit/Allclean
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
# Remove copies of common files
|
||||||
|
\rm -rf 0 constant
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -1,14 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
application=$(getApplication)
|
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||||
|
\rm -rf 0 constant
|
||||||
|
\cp -r ../common/0.org 0
|
||||||
|
\cp -r ../common/constant constant
|
||||||
|
|
||||||
|
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication $application
|
runApplication $(getApplication)
|
||||||
|
|
||||||
#------------------------------------------------------------------------------
|
#------------------------------------------------------------------------------
|
||||||
@ -0,0 +1 @@
|
|||||||
|
../../common/blockMeshDict.m4
|
||||||
12
tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean
Executable file
12
tutorials/compressible/rhoPorousSimpleFoam/angledDuct/implicit/Allclean
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
# Remove copies of common files
|
||||||
|
\rm -rf 0 constant
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -1,11 +1,17 @@
|
|||||||
#!/bin/sh
|
#!/bin/sh
|
||||||
cd ${0%/*} || exit 1 # Run from this directory
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
|
||||||
|
|
||||||
# Source tutorial run functions
|
# Source tutorial run functions
|
||||||
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||||
|
\rm -rf 0 constant
|
||||||
|
\cp -r ../common/0.org 0
|
||||||
|
\cp -r ../common/constant constant
|
||||||
|
|
||||||
|
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
||||||
|
|
||||||
runApplication blockMesh
|
runApplication blockMesh
|
||||||
runApplication $(getApplication)
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -0,0 +1 @@
|
|||||||
|
../../common/blockMeshDict.m4
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/0
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/Allrun
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/constant
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../../angledDuctImplicit/system/blockMeshDict.m4
|
|
||||||
@ -46,8 +46,8 @@ boundaryField
|
|||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value $internalField;
|
|
||||||
inletValue $internalField;
|
inletValue $internalField;
|
||||||
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -35,7 +35,7 @@ boundaryField
|
|||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type slip;
|
type slip;
|
||||||
value uniform (0 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
@ -45,8 +45,8 @@ boundaryField
|
|||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
value uniform (0 0 0);
|
inletValue $internalField;
|
||||||
inletValue uniform (0 0 0);
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,39 +24,39 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type epsilonWallFunction;
|
type epsilonWallFunction;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentMixingLengthDissipationRateInlet;
|
type turbulentMixingLengthDissipationRateInlet;
|
||||||
mixingLength 0.005;
|
mixingLength 0.005;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 200;
|
inletValue $internalField;
|
||||||
value uniform 200;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,39 +24,39 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type kqRWallFunction;
|
type kqRWallFunction;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type turbulentIntensityKineticEnergyInlet;
|
type turbulentIntensityKineticEnergyInlet;
|
||||||
intensity 0.05;
|
intensity 0.05;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type inletOutlet;
|
type inletOutlet;
|
||||||
inletValue uniform 1;
|
inletValue uniform 1;
|
||||||
value uniform 1;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
@ -24,37 +24,37 @@ boundaryField
|
|||||||
front
|
front
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
back
|
back
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
walls
|
walls
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
porosityWall
|
porosityWall
|
||||||
{
|
{
|
||||||
type nutkWallFunction;
|
type nutkWallFunction;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
inlet
|
inlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
|
|
||||||
outlet
|
outlet
|
||||||
{
|
{
|
||||||
type calculated;
|
type calculated;
|
||||||
value uniform 0;
|
value $internalField;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
12
tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean
Executable file
12
tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allclean
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
# Remove copies of common files
|
||||||
|
\rm -rf 0 constant
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
17
tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun
Executable file
17
tutorials/incompressible/porousSimpleFoam/angledDuct/explicit/Allrun
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||||
|
\rm -rf 0 constant
|
||||||
|
\cp -r ../common/0.org 0
|
||||||
|
\cp -r ../common/constant constant
|
||||||
|
|
||||||
|
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
||||||
|
|
||||||
|
runApplication blockMesh
|
||||||
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -0,0 +1 @@
|
|||||||
|
../../common/blockMeshDict.m4
|
||||||
12
tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean
Executable file
12
tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allclean
Executable file
@ -0,0 +1,12 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial clean functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
|
||||||
|
|
||||||
|
# Remove copies of common files
|
||||||
|
\rm -rf 0 constant
|
||||||
|
|
||||||
|
cleanCase
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
17
tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun
Executable file
17
tutorials/incompressible/porousSimpleFoam/angledDuct/implicit/Allrun
Executable file
@ -0,0 +1,17 @@
|
|||||||
|
#!/bin/sh
|
||||||
|
cd ${0%/*} || exit 1 # Run from this directory
|
||||||
|
|
||||||
|
# Source tutorial run functions
|
||||||
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
||||||
|
|
||||||
|
echo "Use common files for 0/, constant/ and blockMeshDict"
|
||||||
|
\rm -rf 0 constant
|
||||||
|
\cp -r ../common/0.org 0
|
||||||
|
\cp -r ../common/constant constant
|
||||||
|
|
||||||
|
m4 system/blockMeshDict.m4 > system/blockMeshDict
|
||||||
|
|
||||||
|
runApplication blockMesh
|
||||||
|
runApplication $(getApplication)
|
||||||
|
|
||||||
|
#------------------------------------------------------------------------------
|
||||||
@ -0,0 +1 @@
|
|||||||
|
../../common/blockMeshDict.m4
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/0
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/Allrun
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../angledDuctImplicit/constant
|
|
||||||
@ -1 +0,0 @@
|
|||||||
../../angledDuctImplicit/system/blockMeshDict.m4
|
|
||||||
Reference in New Issue
Block a user