Skip to content
Snippets Groups Projects
Commit b70b2d86 authored by Mark OLESEN's avatar Mark OLESEN
Browse files

TUT: fixup formatting, tabs etc

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