#!/bin/sh
cd ${0%/*} || exit 1 # Run from this directory# Source tutorial run functions
. $WM_PROJECT_DIR/bin/tools/RunFunctions# Clone the propane case and set it up for hydrogen
cloneCase moriyoshiHomogeneous moriyoshiHomogeneousHydrogen
(
cd moriyoshiHomogeneousHydrogen || exit 1mv constant/physicalProperties \r
constant/physicalProperties.propane
mv constant/physicalProperties.hydrogen \r
constant/physicalPropertiesmv constant/combustionPropertiesInclude \r
constant/combustionPropertiesInclude.propane
mv constant/combustionPropertiesInclude.hydrogen \r
constant/combustionPropertiesInclude
)# Run the propane case
(
cd moriyoshiHomogeneous || exit 1foamRunTutorials
if ! isTest $@
then
runApplication -a foamDictionary system/controlDict -entry deltaT -set 1e-05
runApplication -a foamDictionary system/controlDict -entry endTime -set 0.015
runApplication -a foamDictionary system/controlDict -entry writeInterval -set 50runApplication -a XiFoam
fi
)# Run the hydrogen case
(
cd moriyoshiHomogeneousHydrogen || exit 1foamRunTutorials
)#——————————————————————————
実行年月:09/15/2022