下载本文档
版权说明:本文档由用户提供并上传,收益归属内容提供方,若内容存在侵权,请进行举报或认领
文档简介
1、求解下列热传导问题: 2t - 1 t =( ) z 2a t00zlt (z,0) = 1 - z 2t (0, t ) = 1,t (l, t ) = 0l = 1,a= 1程序:function heat_conduction() %一维齐次热传导方程options=空间杆长l,空间点数n ,时间点数m,扩散系数alfa,稳定条件的值lambda(取值必须小于0.5),;topic=seting; lines=1;def=1,100,1000,1,0.5;h=inputdlg(options,topic,lines,def); l=eval(h1);n=eval(h2);m=eval(h
2、3);alfa=eval(h4); lambda=eval(h5);%lambda的值必须小于0.5%* h=l/n;%空间步长z=0:h:l;z=z;tao=lambda*h2/alfa;%时间步长tm=m*tao;%热传导的总时间tm t=0:tao:tm;t=t;%计算初值和边值t=zeros(n+1,m+1);ti=init_fun(z);to=border_funo(t);te=border_fune(t);t(:,1)=ti;t(1,:)=to;t(n+1,:)=te;%用差分法求出温度t与杆长l、时间t的关系for k=1:mm=2;while m=nt(m,k+1)=lambd
3、a*(t(m+1,k)+t(m-1,k)+(-2*lambda+1)*t(m,k); m=m+1;end;end;%设置立体网格for i=1:m+1x(:,i)=z;end;for j=1:n+1y(j,:)=t;end mesh(x,y,t);view(1 -1 1);xlabel(z);ylabel(t);zlabel(t);function y=init_fun(z)%初值条件y=1-z.2;returnfunction y=border_funo(t)%z=0的边界条件y=1+t.*0;returnfunction y=border_fune(t)%z=l的边界条件y=t*.0;re
4、turn运行情况:按“run”运行时,弹出窗口将图中相关数据更改为:点击图框中的“ok”,在“command window”中输出结果为:“”“”at the end, xiao bian gives you a passage. minand once said, people who learn to learn are very happy people. in every wonderful life, learning is an eternal theme. as a professional clerical and teaching position, i understand
5、 the importance of continuous learning, life is diligent, nothing can be gained, only continuous learning can achieve better self. only by constantly learning and mastering the latest relevant knowledge, can employees from all walks of life keep up with the pace of enterprise development and innovate to meet the needs of the market. this document is also edited by my studio professionals, t
温馨提示
- 1. 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。图纸软件为CAD,CAXA,PROE,UG,SolidWorks等.压缩文件请下载最新的WinRAR软件解压。
- 2. 本站的文档不包含任何第三方提供的附件图纸等,如果需要附件,请联系上传者。文件的所有权益归上传用户所有。
- 3. 本站RAR压缩包中若带图纸,网页内容里面会有图纸预览,若没有图纸预览就没有图纸。
- 4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
- 5. 人人文库网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对用户上传分享的文档内容本身不做任何修改或编辑,并不能对任何下载内容负责。
- 6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
- 7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。
最新文档
- 2025届浙江省义乌市稠州中学九上数学开学检测模拟试题【含答案】
- 工厂纯水设备安装方案
- 工业通风送风系统课程设计
- 工业电子商务课程设计
- 崇明中型钢平台施工方案
- 2024年五莲县“技能之星”职业技能大赛-电工题库
- 岛屿上地震研究报告
- 高中英语 Module 1 Small Talk单元综合检测 外研版选修6
- 高中历史 4.4“土耳其之父”凯末尔每课一练 人民版选修4
- 山上树木清运施工方案
- 2024年美国化妆护肤产品市场现状及上下游分析报告
- JGJ111-2016 建筑与市政工程地下水控制技术规范
- 实验室安全风险分级管控制度
- 2025届湖南省郴州市名校物理九上期末经典模拟试题含解析
- DZ∕T 0217-2020 石油天然气储量估算规范(正式版)
- 供应链管理代持股协议书
- 华为认证HCIA-Storage (H13-611)练习题
- MOOC 中国红色文化精神-西安交通大学 中国大学慕课答案
- 第4课《用联系的观点看问题》第2框《在和谐共处中实现人生发展》-【中职专用】《哲学与人生》同步课堂课件
- 《图形创意设计》课件-第1章 什么是图形创意
- 电力储能系统及解决方案
评论
0/150
提交评论