Commit 6e6ed0ca authored by Mark Olesen's avatar Mark Olesen
Browse files

STYLE: cleanup rhoPorousSimpleFoam tutorial case

- better cleanup, avoid collisions between implicit and explicit cases
parent 820f809b
......@@ -46,8 +46,8 @@ boundaryField
outlet
{
type inletOutlet;
value $internalField;
inletValue $internalField;
value $internalField;
}
}
......
......@@ -35,19 +35,19 @@ boundaryField
porosityWall
{
type slip;
value uniform (0 0 0);
value $internalField;
}
inlet
{
type flowRateInletVelocity;
massFlowRate constant 0.1;
value uniform (0 0 0);
value $internalField;
}
outlet
{
type inletOutlet;
value uniform (0 0 0);
inletValue uniform (0 0 0);
inletValue $internalField;
value $internalField;
}
}
......
......@@ -24,32 +24,32 @@ boundaryField
front
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
back
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
walls
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
porosityWall
{
type compressible::alphatWallFunction;
value uniform 0;
value $internalField;
}
inlet
{
type calculated;
value uniform 0;
value $internalField;
}
outlet
{
type calculated;
value uniform 0;
value $internalField;
}
}
......
......@@ -24,39 +24,39 @@ boundaryField
front
{
type epsilonWallFunction;
value uniform 200;
value $internalField;
}
back
{
type epsilonWallFunction;
value uniform 200;
value $internalField;
}
walls
{
type epsilonWallFunction;
value uniform 200;
value $internalField;
}
porosityWall
{
type epsilonWallFunction;
value uniform 200;
value $internalField;
}
inlet
{
type turbulentMixingLengthDissipationRateInlet;
mixingLength 0.005;
value uniform 200;
value $internalField;
}
outlet
{
type inletOutlet;
inletValue uniform 200;
value uniform 200;
inletValue $internalField;
value $internalField;
}
}
......
......@@ -24,39 +24,39 @@ boundaryField
front
{
type kqRWallFunction;
value uniform 1;
value $internalField;
}
back
{
type kqRWallFunction;
value uniform 1;
value $internalField;
}
walls
{
type kqRWallFunction;
value uniform 1;
value $internalField;
}
porosityWall
{
type kqRWallFunction;
value uniform 1;
value $internalField;
}
inlet
{
type turbulentIntensityKineticEnergyInlet;
intensity 0.05;
value uniform 1;
value $internalField;
}
outlet
{
type inletOutlet;
inletValue uniform 1;
value uniform 1;
inletValue $internalField;
value $internalField;
}
}
......
......@@ -24,37 +24,37 @@ boundaryField
front
{
type nutkWallFunction;
value uniform 0;
value $internalField;
}
back
{
type nutkWallFunction;
value uniform 0;
value $internalField;
}
walls
{
type nutkWallFunction;
value uniform 0;
value $internalField;
}
porosityWall
{
type nutkWallFunction;
value uniform 0;
value $internalField;
}
inlet
{
type calculated;
value uniform 0;
value $internalField;
}
outlet
{
type calculated;
value uniform 0;
value $internalField;
}
}
......
#!/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
#------------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
m4 system/blockMeshDict.m4 > system/blockMeshDict
# Source tutorial run functions
. $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 $application
runApplication $(getApplication)
#------------------------------------------------------------------------------
#!/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
#------------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
m4 system/blockMeshDict.m4 > system/blockMeshDict
# 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)
#------------------------------------------------------------------------------
Supports Markdown
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment