scalarTransportFoam

#!/bin/sh
cd “${0%/*}” || exit # Run from this directory
. ${WM_PROJECT_DIR:?}/bin/tools/RunFunctions # Tutorial run functions
#——————————————————————————

# Do pitzDaily
( cd pitzDaily && foamRunTutorials )

if true ## if notTest “$@”
then
# Clone case for additional tests
cloneCase pitzDaily pitzDaily-stepFunction

# Modify and execute
(
cd pitzDaily-stepFunction || exit

# Run a bit longer
foamDictionary system/controlDict -entry endTime -set 0.2

# Use table input to start scalar at 0.1s
##runApplication changeDictionary -time 0
foamDictionary 0/T \r
-entry boundaryField/inlet/uniformValue/type \r
-set table

# Use ‘none’ for matrix norm
foamDictionary system/fvSolution \r
-entry solvers/T/norm \r
-set none

foamRunTutorials
)
fi

#——————————————————————————

実行年月:02/06/2024