首页 > 解决方案 > 用 Matlab 模拟温度分布

问题描述

我目前正在研究一个用内部热水盘管加热的储水箱。我需要知道水箱中的温度分布情况如何。

我在 Matlab 中尝试过稳态模型,但我觉得它不是很精确(我只能输入产品的热导率和储罐材料 + 边界条件)在我看来,这使得分布过于笼统而不具体我的情况。我也尝试了瞬态模型,但是在运行代码时出现了一些错误。

这是我用于瞬态模型的代码(我是 Matlab 新手,请原谅任何代码错误)

model = createpde('thermal','transient');
geo = multicylinder([3.4,3.5],7.1)
model.Geometry= geo;
pdegplot(model,'FaceLabels',"on")
generateMesh(model);
pdemesh(model)


 thermalProperties(model,"Cell",2,"ThermalConductivity",0.1,"MassDensity",576,"SpecificHeat",0.5)
 thermalProperties(model,"Cell",1,"MassDensity",932,"SpecificHeat",2.28,"ThermalConductivity",0.12)
 thermalIC(model,0)
 tlist=0:.1:5

Thermalresults = solve(model,tlist);
u= Thermalresults.Temperature
pdeplot3D(model,'ColorMapData', u)

标签: matlabsimulation

解决方案


推荐阅读