Commit b70b2d86 authored by Mark Olesen's avatar Mark Olesen
Browse files

TUT: fixup formatting, tabs etc

parent 30b4eda7
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase
\rm -rf constant/boundaryData *.png
# -----------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
channelCase=../initChannel
channelDataDir=$channelCase/postProcessing/surfaces/inlet
......@@ -39,3 +37,5 @@ then
# Plot the mean velocity profiles
./plot $(foamListTimes -processor -latestTime)
fi
# -----------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase
# -----------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication blockMesh
runApplication $(getApplication)
# -----------------------------------------------------------------------------
......@@ -61,8 +61,8 @@ functions
{
type surfaces;
surfaceFormat boundaryData;
writeControl writeTime;
interpolationScheme cell;
writeControl writeTime;
interpolationScheme cell;
fields
(
U
......
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial clean functions
. $WM_PROJECT_DIR/bin/tools/CleanFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
cleanCase
\rm -rf *.dat *.png
# -----------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1 # run from this directory
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
runApplication blockMesh
runApplication simpleFoam
......@@ -17,7 +15,7 @@ then
exit 1
}
# Copy results to the validation directory
# Copy results to the validation directory
timeDir=$(foamListTimes -latestTime)
sampleDir=postProcessing/sample/$timeDir
......@@ -50,7 +48,7 @@ then
href = 0.0127
Uref = $Uref
set lmargin 7.5
set lmargin 7.5
set rmargin 1.5
set tmargin 0.1
set bmargin 3.2
......@@ -68,12 +66,12 @@ EOF1
echo "# ccx tau_xx tau_yy tau_zz" > tauw.dat
foamDictionary -entry boundaryField.lowerWall.value -value $timeDir/Cx | \
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > Cx.$$
foamDictionary -entry boundaryField.lowerWall.value -value $timeDir/wallShearStress | \
sed -n '/(/,/)/p' | sed -e 's/[()]//g;/^\s*$/d' > tau.$$
paste -d ' ' Cx.$$ tau.$$ >> tauw.dat
\rm -f Cx.$$ tau.$$
graphNameTau="backwardStep2D_tau.png"
echo "Creating wallshear stress graph to $graphNameTau"
gnuplot<<EOF2
......@@ -98,3 +96,4 @@ EOF1
EOF2
fi
#------------------------------------------------------------------------------
#!/bin/sh
cd ${0%/*} || exit 1
# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
if notTest $@
then
......@@ -82,3 +80,5 @@ then
mv postProcessing postProcessing-${model}
done
fi
# -----------------------------------------------------------------------------
......@@ -16,36 +16,13 @@ FoamFile
// * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * * //
numberOfSubdomains 8 ;
method hierarchical ;
simpleCoeffs
{
n (8 1 1);
delta 0.001;
}
hierarchicalCoeffs
{
n (8 1 1);
delta 0.001;
order xyz;
}
scotchCoeffs
{
processorWeights
(
1
1
1
1
1
1
1
1
);
}
manualCoeffs
numberOfSubdomains 8;
method hierarchical;
coeffs
{
dataFile ("" );
n (8 1 1);
}
distributed no ;
roots ();
// ************************************************************************* //
......@@ -116,7 +116,7 @@ functions
start ( 10.0 0.02 0.0 );
end ( 10.0 0.02 0.55 );
nPoints 1001;
}
}
line7
{
type uniform;
......@@ -124,7 +124,7 @@ functions
start ( 12.0 0.005 0.0 );
end ( 12.0 0.005 0.55 );
nPoints 1001;
}
}
line8
{
type uniform;
......
#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory
. $WM_PROJECT_DIR/bin/tools/RunFunctions # Tutorial run functions
##. $WM_PROJECT_DIR/bin/tools/CleanFunctions # Tutorial clean functions
(cd background && ./Allclean)
(cd floatingBody && ./Allclean)
......
Markdown is supported
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