| 查看: 398 | 回复: 1 | ||
zpzgraduate铁杆木虫 (著名写手)
|
[求助]
matlab求解偏微分方程组遇到的问题求助
|
|
求解偏微分方程组时遇到的,请高手指点。 下面是文件和错误提示 function pdex4 m = 0; x = [0 0.005 0.01 0.05 0.1 0.2 0.5 0.7 0.9 0.95 0.99 0.995 1]; t = [0 0.005 0.01 0.05 0.1 0.5 1 1.5 2]; sol = pdepe(m,@pdex4pde,@pdex4ic,@pdex4bc,x,t); u1 = sol(:,:,1); u2 = sol(:,:,2); u3=sol(:,:,2); figure surf(x,t,u1) title('u1(x,t)') xlabel('Distance x') ylabel('Time t') figure surf(x,t,u2) title('u2(x,t)') xlabel('Distance x') ylabel('Time t') figure surf(x,t,u3) title('u3(x,t)') xlabel('Distance x') ylabel('Time t') % -------------------------------------------------------------- function [c,f,s] = pdex4pde(x,t,u,DuDx) c = [1; 1;1]; f = [0; 0;0] .* DuDx; F = 6*u(3); s = [-F*u(1); u(2)*F;-20000*u(1)-2-4*u(2)]; % -------------------------------------------------------------- function u0 = pdex4ic(x); u0 = [0.03;0;0]; % -------------------------------------------------------------- function [pl,ql,pr,qr] = pdex4bc(xl,ul,xr,ur,t) pl = [0; ul(2)-1;0]; ql = [1; 1;1]; pr = [ur(1)-1; 0;0]; qr = [1;1;1]; 错误信息 Warning: Failure at t=1.497828e-002. Unable to meet integration tolerances without reducing the step size below the smallest value allowed (2.775558e-017) at time t. > In ode15s at 809 In pdepe at 317 In pdefun001 at 6 Warning: Time integration has failed. Solution is available at requested time points up to t=1.000000e-002. > In pdepe at 323 In pdefun001 at 6 ??? Error using ==> surf at 78 Data dimensions must agree. Error in ==> pdefun001 at 12 surf(x,t,u1) |
» 猜你喜欢
计算机、0854电子信息(085401-058412)调剂
已经有4人回复
基金申报
已经有3人回复
国自然申请面上模板最新2026版出了吗?
已经有9人回复
溴的反应液脱色
已经有6人回复
纳米粒子粒径的测量
已经有7人回复
常年博士招收(双一流,工科)
已经有4人回复
推荐一本书
已经有10人回复
参与限项
已经有5人回复
有没有人能给点建议
已经有5人回复
假如你的研究生提出不合理要求
已经有12人回复
» 本主题相关价值贴推荐,对您同样有帮助:
matlab如何求解一个非线性微分方程组
已经有8人回复
求助,用matlab解微分方程组,希望高手能给予指点
已经有17人回复
matlab解偏微分方程求助
已经有12人回复
求助:如何用MATLAB的偏微分方程工具箱画出不同区域内的温度分布图?
已经有5人回复
matlab求解偏微分方程组
已经有3人回复
matlab有限差分法求解复杂的偏微分方程组
已经有19人回复
matlab微分方程组参数拟合,以周为单位求解,汇总后以年为单位进行数值比较
已经有4人回复
Matlab求解偏微分方程组
已经有22人回复
matlab数值求解边界条件微分方程组
已经有7人回复
高金求助matlab解微分方程组
已经有12人回复
matlab解微分方程组
已经有15人回复
【求助】matlab 求解微分方程中的未知参数
已经有20人回复
【求助】向各位大侠求助matlab求解微分方程组遇到的一个问题
已经有21人回复
【求助】MATLAB 有限差分法(FDM)求解偏微分方程
已经有22人回复
【求助】积分微分方程matlab求解
已经有6人回复
【求助】如何求解下列偏微分方程
已经有13人回复
【求助】matlab怎么求解偏微分方程组啊,先谢谢了
已经有13人回复
zpzgraduate
铁杆木虫 (著名写手)
- 应助: 7 (幼儿园)
- 金币: 14109.8
- 散金: 40
- 帖子: 1152
- 在线: 202.1小时
- 虫号: 116996
- 注册: 2005-11-25
- 专业: 聚合物共混与复合材料
2楼2013-07-01 05:49:22












回复此楼