STYLE: use .template instead of .temp for tutorial template files

- avoids possible confusion with temporary files
This commit is contained in:
Mark Olesen 2020-06-10 14:20:18 +02:00
parent 0712beb21a
commit 34ee7b0b95
12 changed files with 20 additions and 15 deletions

View File

@ -18,10 +18,11 @@ echo " ## Lmax = $Lmax [m], qPlant = $qPlant [-]"
#------------------------------------------------------------------------------
sed -e "s|RAS_MODEL|$RASmodel|g" constant/turbulenceProperties.temp > \
constant/turbulenceProperties
sed -e "s|L_MAX|$Lmax|g" constant/fvOptions.temp > constant/fvOptions
sed -e "s|Q_PLANT|$qPlant|g" 0.orig/qPlant.temp > 0/qPlant
sed -e "s|RAS_MODEL|$RASmodel|g" \
constant/turbulenceProperties.template \
> constant/turbulenceProperties
sed -e "s|L_MAX|$Lmax|g" constant/fvOptions.template > constant/fvOptions
sed -e "s|Q_PLANT|$qPlant|g" 0.orig/qPlant.template > 0/qPlant
runApplication renumberMesh -overwrite
@ -31,4 +32,4 @@ runApplication $(getApplication)
# to encapsulate the successor domain, so that mapFields can be used
runApplication transformPoints -scale '(10 10 1)' -translate '(0 0 20)'
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

View File

@ -5,8 +5,9 @@ cd "${0%/*}" || exit # Run from this directory
RASModel="kEpsilon" # "kOmegaSST"
sed -e "s|RAS_MODEL|$RASModel|g" constant/turbulenceProperties.temp > \
constant/turbulenceProperties
sed -e "s|RAS_MODEL|$RASModel|g" \
constant/turbulenceProperties.template \
> constant/turbulenceProperties
restore0Dir
@ -22,4 +23,4 @@ runParallel $(getApplication)
runParallel redistributePar -reconstruct -latestTime
#------------------------------------------------------------------------------
#------------------------------------------------------------------------------

View File

@ -46,12 +46,14 @@ do
echo " ## Lmax = $Lmax [m], qPlant = $qPlant [-]"
echo ""
sed -e "s|RAS_MODEL|$RASmodel|g" constant/turbulenceProperties.temp > \
constant/turbulenceProperties
sed -e "s|L_MAX|$Lmax|g" constant/fvOptions.temp > constant/fvOptions
sed -e "s|Q_PLANT|$qPlant|g" 0.orig/qPlant.temp > 0/qPlant
sed -e "s|Q_PLANT|$qPlant|g" system/setFieldsDict.temp > \
system/setFieldsDict
sed -e "s|RAS_MODEL|$RASmodel|g" \
constant/turbulenceProperties.template \
> constant/turbulenceProperties
sed -e "s|L_MAX|$Lmax|g" constant/fvOptions.template > constant/fvOptions
sed -e "s|Q_PLANT|$qPlant|g" 0.orig/qPlant.template > 0/qPlant
sed -e "s|Q_PLANT|$qPlant|g" \
system/setFieldsDict.template \
> system/setFieldsDict
runApplication decomposePar
runParallel -s parallel renumberMesh -overwrite

View File

@ -5,7 +5,8 @@ cd "${0%/*}" || exit # Run from this directory
restore0Dir
rm -f 0/qPlant.temp
# Without template file(s)
rm -f 0/qPlant.template
runApplication blockMesh