matlab - 用 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)
解决方案
推荐阅读
- r - 如何说服 fct_infreq 我正在使用数值向量?
- java - 加密大字节数组
- python - 在python中递归定义一个列表,将列表中的所有内容替换为最后一项
- windows-10 - 运行因证书吊销而被阻止的应用程序
- python - Django过滤查询集返回外键值
- powershell - 标记进程以确定其执行状态
- java - 子类对象的超类引用变量访问子类的属性而不是超类的属性
- excel - 自动电子邮件中的时间格式是“通用”而不是 hh:nn AM/PM
- arrays - 如何在 Velocity 模板语言 (VTL) 中获取数组中的最大值
- c# - NUnit 测试 - 如何设置在公共方法内部调用的私有方法以返回特定值?