Description: function [ue, un] = UPW_utux0 (v, dt, t) A simple hyperbolic partial differential equation: ut+ ux = 0 initial conditions: u (x, 0) = 1, x ≤ 0 0, x> 0 boundary conditions: u (-1, t) = 1, u (1, t) = 0 of the questions asked: using the upwind scheme, choose v = 0.5, calculated. and draw when dt = 0.01 and 0.0025, equation t = 0.5, x numerical solution at (-1,1) and the exact solution when the input: v- that is, a* dt/dx dt- time step numerical format t- the time to be solved Output: ue- 1N exact solution at time t matrix un- numerical solution 1N matrix of the output image at time t is: Image accuracy and numerical solutions of
To Search:
File list (Check if you may need any files):
UPW_utux0.m