主要内容

findThermalBC

发现热边界条件分配给一个几何区域

描述

例子

tbca= findThermalBC (thermalmodel.BoundaryConditions,RegionType,RegionID)返回热边界条件分配给指定的区域。

例子

全部折叠

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

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属性:RegionType:“边缘”RegionID: 3[1]温度:100 HeatFlux: [] ConvectionCoefficient:[]发射率:[]AmbientTemperature:[]矢量化:“关闭”标签:[]

在边检查边界条件规范3和4。

tbca = findThermalBC (thermalmodel.BoundaryConditions,“边缘”3:4);tbcaEdge3 = tbca (1)
tbcaEdge3 = ThermalBC属性:RegionType:“边缘”RegionID: 3[1]温度:100 HeatFlux: [] ConvectionCoefficient:[]发射率:[]AmbientTemperature:[]矢量化:“关闭”标签:[]
tbcaEdge4 = tbca (2)
tbcaEdge4 = ThermalBC属性:RegionType:“边缘”RegionID: 4温度:[]HeatFlux: 20 ConvectionCoefficient:[]发射率:[]AmbientTemperature:[]矢量化:“关闭”标签:[]

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

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

图包含一个坐标轴对象。坐标轴对象包含3颤类型的对象,补丁,线。

应用温度边界条件对面临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属性:RegionType:“脸”RegionID: 1温度:100 HeatFlux: [] ConvectionCoefficient:[]发射率:[]AmbientTemperature:[]矢量化:“关闭”标签:[]
tbcaFace3 = tbca (2)
tbcaFace3 = ThermalBC属性:RegionType:“脸”RegionID: 3温度:300 HeatFlux: [] ConvectionCoefficient:[]发射率:[]AmbientTemperature:[]矢量化:“关闭”标签:[]

检查边界条件规范面临5和6。

tbcaFace5 = findThermalBC (thermalmodel.BoundaryConditions,“面子”5)
tbcaFace5 = ThermalBC属性:RegionType:“脸”RegionID:[5 - 6]温度:[]HeatFlux: [] ConvectionCoefficient: 5辐射率:[]AmbientTemperature: 27矢量化:“关闭”标签:[]
tbcaFace6 = findThermalBC (thermalmodel.BoundaryConditions,“面子”6)
tbcaFace6 = ThermalBC属性:RegionType:“脸”RegionID:[5 - 6]温度:[]HeatFlux: [] ConvectionCoefficient: 5辐射率:[]AmbientTemperature: 27矢量化:“关闭”标签:[]

输入参数

全部折叠

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

例子:thermalmodel.BoundaryConditions

几何区域类型,指定为“面子”三维几何或“边缘”二维几何。

数据类型:字符|字符串

几何区域ID指定为一个向量的正整数。发现该地区IDs使用pdegplot“FaceLabels”(3 - d)或“EdgeLabels”(二)值设置为“上”

数据类型:

输出参数

全部折叠

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

版本历史

介绍了R2017a

另请参阅

|