The thermal phase system now operates with saturation models specified per phase-pair, and can therefore represent multiple transfer processes across different interfaces. There is no longer a "phaseChange" switch; instead the selection of a saturation model for a given interface enables phase change across that interface. This includes both interfacial phase change and nucleate wall boiling. Both interfacial phase change and wall boiling models now include support for there being a single specified volatile component which undergoes phase change. A correction has been made to the phase change energy transfer when only interfacial phase change is enabled. The thermal phase change tutorials have all been updated to reflect these changes in the user interface. Patch contributed by Juho Peltola, VTT.
28 lines
810 B
Bash
Executable File
28 lines
810 B
Bash
Executable File
#!/bin/sh
|
|
cd ${0%/*} || exit 1 # run from this directory
|
|
|
|
# Source tutorial run functions
|
|
. $WM_PROJECT_DIR/bin/tools/RunFunctions
|
|
|
|
application=`getApplication`
|
|
|
|
runApplication blockMesh
|
|
runApplication extrudeMesh
|
|
runApplication topoSet
|
|
runApplication decomposePar
|
|
|
|
runParallel $application
|
|
|
|
if ! isTest $@
|
|
then
|
|
foamDictionary system/controlDict -entry endTime -set 4
|
|
foamDictionary system/controlDict -entry startTime -set 0.5
|
|
runParallel -a foamDictionary -expand 0.5/T.liquid -entry boundaryField.wall.q -set "uniform 73900"
|
|
runParallel -a foamDictionary -expand 0.5/U.liquid -entry boundaryField.inlet.type -set "fixedValue"
|
|
runParallel -a $application
|
|
fi
|
|
|
|
runApplication -a reconstructPar -latestTime
|
|
|
|
#------------------------------------------------------------------------------
|