设置用户场函数
创建本教程所需的场函数。
本教程大量使用了场函数来定义情形参数,设置边界条件以及分析和呈现结果。
为了方便起见,可通过在设置任何模型前运行宏来设置这些场函数。
创建用户场函数:
- 选择。
- 在打开对话框中,导航至工作目录并选择 wb_setupFieldFunctions.java。
- 单击打开按钮以运行该宏。
场函数如下表所列:
情形参数场函数
|
EquivalentDiameter |
|
|---|---|
| 类型 | 标量 |
| 定义 | 0.0154 |
| 忽略边界值 | 禁用 |
|
HeatedLength |
|
|---|---|
| 类型 | 标量 |
| 定义 | 2.0 |
| 忽略边界值 | 禁用 |
|
SystemPressure |
|
|---|---|
| 类型 | 标量 |
| 定义 | 4500000.0 |
| 忽略边界值 | 禁用 |
|
SaturationTemperature |
|
|---|---|
| 类型 | 标量 |
| 定义 | 530.59 |
| 忽略边界值 | 禁用 |
|
InletDensity |
|
|---|---|
| 类型 | 标量 |
| 定义 | 832.06 |
| 忽略边界值 | 禁用 |
|
InletMassFlux |
|
|---|---|
| 类型 | 标量 |
| 定义 | 900.0 |
| 忽略边界值 | 禁用 |
|
InletTemperature |
|
|---|---|
| 类型 | 标量 |
| 定义 | 470.63 |
| 忽略边界值 | 禁用 |
|
InletVelocity |
|
|---|---|
| 类型 | 矢量 |
| 定义 | [ $InletMassFlux/$InletDensity, 0, 0 ] |
| 忽略边界值 | 禁用 |
|
WallHeatFlux |
|
|---|---|
| 类型 | 标量 |
| 定义 | 570000.0 |
| 忽略边界值 | 禁用 |
模型场函数
|
IterationsToFullPower |
|
|---|---|
| 类型 | 标量 |
| 定义 | 200.0 |
| 忽略边界值 | 禁用 |
|
WallHeatFluxDistribution |
|
|---|---|
| 类型 | 标量 |
| 定义 | ($$Centroid[0] > 0 && $$Centroid[0] < $HeatedLength) ?$WallHeatFlux :0.0 |
| 忽略边界值 | 禁用 |
|
WallHeatFluxIterationRamp |
|
|---|---|
| 类型 | 标量 |
| 定义 | ( $Iteration < $IterationsToFullPower ?($WallHeatFluxDistribution * $Iteration )/ $IterationsToFullPower :$WallHeatFluxDistribution ) |
| 忽略边界值 | 禁用 |
| dMax | |
|---|---|
| 类型 | 标量 |
| 定义 | 0.012 |
| 忽略边界值 | 禁用 |
| dMin | |
|---|---|
| 类型 | 标量 |
| 定义 | 1.0E-6 |
| 忽略边界值 | 禁用 |
|
ClippedSauterMeanDiameter |
|
|---|---|
| 类型 | 标量 |
| 定义 | ( $SauterMeanDiameterVapor < $dMin ?$dMin :( $SauterMeanDiameterVapor > $dMax ?$dMax :$SauterMeanDiameterVapor ) ) |
| 忽略边界值 | 禁用 |
分析场函数
|
InletThermodynamicQuality |
|
|---|---|
| 类型 | 标量 |
| 定义 | $SpecificHeatLiquid * ($InletTemperature - $SaturationTemperature)/ ${LatentHeatLiquid Vapor Interface} |
| 忽略边界值 | 禁用 |
|
ThermodynamicQuality |
|
|---|---|
| 类型 | 标量 |
| 定义 | $InletThermodynamicQuality+ 4 * $WallHeatFlux * $$Centroid[0]/ ( $InletMassFlux * ${LatentHeatLiquid Vapor Interface} * $EquivalentDiameter ) |
| 忽略边界值 | 禁用 |
|
LiquidSubcooling |
|
|---|---|
| 类型 | 标量 |
| 定义 | ${TemperatureLiquid Vapor Interface} - ${TemperatureLiquid} |
| 忽略边界值 | 已激活 |
|
WallSuperHeat |
|
|---|---|
| 类型 | 标量 |
| 定义 | ${TemperatureLiquid} - ${TemperatureLiquid Vapor Interface} |
| 忽略边界值 | 禁用 |
|
QuenchingHeatFlux |
|
|---|---|
| 类型 | 标量 |
| 定义 | (1-${WallDryoutAreaFractionLiquid Vapor Interface}) * ${BubbleInducedQuenchingHeatTransferCoefficientLiquid Vapor Interface} * ${BubbleInducedQuenchingTemperatureFactorLiquid Vapor Interface} * ( $WallSuperHeat + $LiquidSubcooling ) |
| 忽略边界值 | 禁用 |
|
WallEvaporationRate |
|
|---|---|
| 类型 | 标量 |
| 定义 | -${WallInterphaseMassFluxLiquid Vapor Interface} |
| 忽略边界值 | 禁用 |
|
BulkCondensationRate |
|
|---|---|
| 类型 | 标量 |
| 定义 | ( ${InterphaseMassTransferRateLiquid Vapor Interface} > 0 ?${InterphaseMassTransferRateLiquid Vapor Interface} :0 ) |
| 忽略边界值 | 禁用 |
|
BulkEvaporationRate |
|
|---|---|
| 类型 | 标量 |
| 定义 | ( ${InterphaseMassTransferRateLiquid Vapor Interface} < 0 ?-${InterphaseMassTransferRateLiquid Vapor Interface} :0 ) |
| 忽略边界值 | 禁用 |