LW_utux0_2

所属分类:matlab编程
开发工具:matlab
文件大小:1KB
下载次数:3
上传日期:2014-07-02 20:08:36
上 传 者kingofhevil
说明:  function [ue,un]=LW_utux0_2(v,dt,t) 一个简单的双曲型偏微分方程: ut + ux = 0 初始条件为: u(x,0) = exp[-10(4x-1)^2] 边界条件为: u(-1,t)=0,u(1,t)=0. 本题要求: 使用Lax-Windroff格式,选择 v=0.5, 计算并画出当dt=0.01和0.0025时, 方程在t=0.5,x在(-1,1)时的数值解和精确解 输入: v--即a*dt/dx dt--数值格式的时间步 t--要求解的时间 输出: ue--在时间t时的1×N精确解矩阵 un--在时间t时的1×N数值解矩阵 输出图像: 精确解和数值解的图像
(function [ue, un] = LW_utux0_2 (v, dt, t) A simple hyperbolic partial differential equation: ut+ ux = 0 initial conditions: u (x, 0) = exp [- 10 (4x-1) ^ 2] of the boundary conditions: u (-1, t) = 0, u (1, t) = 0 of the required title: using the Lax-Windroff format, select v = 0.5, calculate and draw when dt = 0.01 and 0.0025, equation t = 0.5, x numerical solution at (-1,1) and the exact solution when input: v- that is a* dt/dx dt-- the time-step numerical format t- the time to be solved Output: ue- 1N exact solution at time t matrix un- 1N numerical solution matrix of the output image at time t : image and numerical solutions of the exact solution)

文件列表:
LW_utux0_2.m (1454, 2014-05-08)

近期下载者

相关文件


收藏者