rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
Functions
burgers_1d_model.m File Reference

simple model for Burgers PDE $d/dt x + d/d_xi (1/2 * v * x^2) = 0$ on the unit square xi in [0,1] with initial value x(.,0) = x0(.) = piecewise constant x_left and x_right on left/right half of domain and dirichlet boundary values x_left and x_right and discretization via Lax-friedrichs (central differences with numerical diffusion) The v is the velocity. the parameter vector is [x_left, x_right, v] More...

Go to the source code of this file.

Functions

function model = burgers_1d_model (n_xi, T, x_left, x_right, v)
 simple model for Burgers PDE $d/dt x + d/d_xi (1/2 * v * x^2) = 0$ on the unit square xi in [0,1] with initial value x(.,0) = x0(.) = piecewise constant x_left and x_right on left/right half of domain and dirichlet boundary values x_left and x_right and discretization via Lax-friedrichs (central differences with numerical diffusion) The v is the velocity. the parameter vector is [x_left, x_right, v] More...
 
function x0 = burgers