主要内容

findThermalBC

找到分配给几何区域的热边界条件

描述

例子

tbca= findThermalBC (thermalmodel。BoundaryConditionsRegionTypeRegionID返回分配给指定区域的热边界条件。

例子

全部折叠

创建一个热模型,包括一个正方形的几何形状。

thermalmodel = createpde (“热”);geometryFromEdges (thermalmodel @squareg);pdegplot (thermalmodel“EdgeLabels”“上”) ylim([-1.1 1.1])轴平等的

图中包含一个坐标轴。轴包含5个对象的类型行,文本。

在正方形的边1和边3上应用温度边界条件。

thermalBC (thermalmodel“边缘”3 [1],“温度”, 100);

在正方形的边缘4上应用热流边界条件。

thermalBC (thermalmodel“边缘”,4,“HeatFlux”, 20);

检查边1的边界条件说明。

tbcaEdge1 = findThermalBC (thermalmodel。BoundaryConditions,“边缘”, 1)
tbcaEdge1 = ThermalBC with properties: RegionType: 'Edge' RegionID: [1 3] Temperature: 100 HeatFlux: [] ConvectionCoefficient: [] Emissivity: [] AmbientTemperature: [] Vectorized: 'off'

检查边3和边4的边界条件说明。

tbca = findThermalBC (thermalmodel。BoundaryConditions,“边缘”[3:4]);tbcaEdge3 = tbca (1)
tbcaEdge3 = ThermalBC with properties: RegionType: 'Edge' RegionID: [1 3] Temperature: 100 HeatFlux: [] ConvectionCoefficient: [] Emissivity: [] AmbientTemperature: [] Vectorized: 'off'
tbcaEdge4 = tbca (2)
tbcaEdge4 = ThermalBC with properties: RegionType: 'Edge' RegionID: 4 Temperature: [] HeatFlux: 20 ConvectionCoefficient: [] Emissivity: [] AmbientTemperature: [] Vectorized: 'off'

创建一个热模型,包括一个块几何。

thermalmodel = createpde (“热”瞬态的);通用= importGeometry (thermalmodel,“Block.stl”);pdegplot (thermalmodel“FaceLabels”“上”“FaceAlpha”, 0.5)

图中包含一个坐标轴。轴包含三种类型的物体颤抖,贴片,线。

在区块的面1和面3上应用温度边界条件。

thermalBC (thermalmodel“脸”, 1“温度”, 100);thermalBC (thermalmodel“脸”3,“温度”, 300);

在块体的面5和面6上应用对流边界条件。

thermalBC (thermalmodel“脸”(5、6),...“ConvectionCoefficient”5,...“AmbientTemperature”、27);

检查面1和面3的边界条件规范。

tbca = findThermalBC (thermalmodel。BoundaryConditions,“脸”[1,3]);tbcaFace1 = tbca (1)
tbcaFace1 = ThermalBC with properties: RegionType: 'Face' RegionID: 1 Temperature: 100 HeatFlux: [] ConvectionCoefficient: [] Emissivity: [] AmbientTemperature: [] Vectorized: 'off'
tbcaFace3 = tbca (2)
tbcaFace3 = ThermalBC with properties: RegionType: 'Face' RegionID: 3 Temperature: 300 HeatFlux: [] ConvectionCoefficient: [] Emissivity: [] AmbientTemperature: [] Vectorized: 'off'

检查面5和面6的边界条件规格。

tbcaFace5 = findThermalBC (thermalmodel。BoundaryConditions,“脸”5)
tbcaFace5 = ThermalBC with properties: RegionType: 'Face' RegionID: [5 6] Temperature: [] HeatFlux: [] ConvectionCoefficient: 5 Emissivity: [] AmbientTemperature: 27 Vectorized: 'off'
tbcaFace6 = findThermalBC (thermalmodel。BoundaryConditions,“脸”6)
tbcaFace6 = ThermalBC with properties: RegionType: 'Face' RegionID: [5 6] Temperature: [] HeatFlux: [] ConvectionCoefficient: 5 Emissivity: [] AmbientTemperature: 27 Vectorized: 'off'

输入参数

全部折叠

热模型的边界条件,指定为BoundaryConditions财产的ThermalModel对象。

例子:thermalmodel。BoundaryConditions

几何区域类型,指定为“脸”用于三维几何或“边缘”二维几何。

数据类型:字符|字符串

几何区域ID,指定为正整数向量。查找使用的区域idpdegplot“FaceLabels”(3 - d)或“EdgeLabels”(2-D)值设置为“上”

数据类型:

输出参数

全部折叠

一个特定区域的热边界条件,返回为ThermalBC对象。

另请参阅

|

介绍了R2017a