Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
Development
openfoam
Commits
b70b2d86
Commit
b70b2d86
authored
Jun 26, 2018
by
Mark OLESEN
Browse files
TUT: fixup formatting, tabs etc
parent
30b4eda7
Changes
11
Hide whitespace changes
Inline
Side-by-side
tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allclean
View file @
b70b2d86
#!/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
\r
m
-rf
constant/boundaryData
*
.png
# -----------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/fullCase/Allrun
View file @
b70b2d86
#!/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
# -----------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allclean
View file @
b70b2d86
#!/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
# -----------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/Allrun
View file @
b70b2d86
#!/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
)
# -----------------------------------------------------------------------------
tutorials/incompressible/pimpleFoam/LES/surfaceMountedCube/initChannel/system/controlDict
View file @
b70b2d86
...
...
@@ -61,8 +61,8 @@ functions
{
type surfaces;
surfaceFormat boundaryData;
writeControl writeTime;
interpolationScheme cell;
writeControl writeTime;
interpolationScheme cell;
fields
(
U
...
...
tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allclean
View file @
b70b2d86
#!/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
\r
m
-rf
*
.dat
*
.png
# -----------------------------------------------------------------------------
tutorials/incompressible/simpleFoam/backwardFacingStep2D/Allrun
View file @
b70b2d86
#!/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
\r
m
-f
Cx.
$$
tau.
$$
graphNameTau
=
"backwardStep2D_tau.png"
echo
"Creating wallshear stress graph to
$graphNameTau
"
gnuplot
<<
EOF2
...
...
@@ -98,3 +96,4 @@ EOF1
EOF2
fi
#------------------------------------------------------------------------------
tutorials/incompressible/simpleFoam/turbulentFlatPlate/Allrun
View file @
b70b2d86
#!/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
# -----------------------------------------------------------------------------
tutorials/incompressible/simpleFoam/turbulentFlatPlate/system/decomposeParDict
View file @
b70b2d86
...
...
@@ -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 ();
// ************************************************************************* //
tutorials/multiphase/interFoam/laminar/waveExampleStokesII/system/controlDict
View file @
b70b2d86
...
...
@@ -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;
...
...
tutorials/multiphase/overInterDyMFoam/floatingBody/Allclean
View file @
b70b2d86
#!/bin/sh
cd
${
0
%/*
}
||
exit
1
# Run from this directory
.
$WM_PROJECT_DIR
/bin/tools/
Ru
nFunctions
# Tutorial
ru
n functions
##
. $WM_PROJECT_DIR/bin/tools/
Clea
nFunctions # Tutorial
clea
n functions
(
cd
background
&&
./Allclean
)
(
cd
floatingBody
&&
./Allclean
)
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment