mirror of
https://develop.openfoam.com/Development/openfoam.git
synced 2025-11-28 03:28:01 +00:00
TUT: add new tutorial case for turbulent inflow BCs
The following three synthetic turbulence inflow boundary conditions are examined through single-cell-domain smooth-wall plane channel flow setup: - turbulentDFSEMInlet - turbulentDigitalFilterInlet variant=digitalFilter - turbulentDigitalFilterInlet variant=reducedDigitalFilter The examinations are performed in terms of the first-/second-order turbulence statistics provided by (Moser et al., (1999)) doi.org/10.1063/1.869966 from smooth-wall plane channel flow direct numerical simulations at Re=395. Serial executing: ./Allrun Parallel (decompositionMethod=scotch) executing: ./Allrunparallel
This commit is contained in:
committed by
Andrew Heather
parent
33ef139ac1
commit
14a2a8bf55
34
tutorials/verificationAndValidation/turbulentInflow/Allrun
Executable file
34
tutorials/verificationAndValidation/turbulentInflow/Allrun
Executable file
@ -0,0 +1,34 @@
|
||||
#!/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
|
||||
|
||||
# Compute test case with different synthetic inflow models
|
||||
declare -a Models=(
|
||||
"reducedDigitalFilter"
|
||||
"digitalFilter"
|
||||
"DFSEM"
|
||||
)
|
||||
|
||||
# Collect data in 'results' directory
|
||||
[ -d "results" ] || mkdir results
|
||||
restore0Dir
|
||||
runApplication blockMesh
|
||||
|
||||
# Compute and collect data
|
||||
for val in ${Models[@]}; do
|
||||
echo "Running the case with the model: $val"
|
||||
\cp 0/U.$val 0/U
|
||||
\rm -r constant/boundaryData/inlet
|
||||
\cp -r constant/boundaryData/inlet.$val constant/boundaryData/inlet
|
||||
runApplication pimpleFoam
|
||||
gnuplot plot.patch
|
||||
gnuplot plot.cell
|
||||
mv postProcessing results/postProcessing.$val
|
||||
mv stress* results/postProcessing.$val/.
|
||||
mv log* results/postProcessing.$val/.
|
||||
cleanTimeDirectories
|
||||
done
|
||||
|
||||
Reference in New Issue
Block a user