rbmatlab 0.10.01
Functions
test/test_linear_convection.m File Reference

u_t + b*Du + cu = 0, u(x,0) = u0. u0 is 1 inside a box and 0 otherwise. This box gets transported in direction b with a slowing term c. returns 1, if error to exact solution is "small enough". returns 0 otherwise More...

Go to the source code of this file.

Functions

function OK test_linear_convection ()
 u_t + b*Du + cu = 0, u(x,0) = u0. u0 is 1 inside a box and 0 otherwise. This box gets transported in direction b with a slowing term c. returns 1, if error to exact solution is "small enough". returns 0 otherwise

Detailed Description

u_t + b*Du + cu = 0, u(x,0) = u0. u0 is 1 inside a box and 0 otherwise. This box gets transported in direction b with a slowing term c. returns 1, if error to exact solution is "small enough". returns 0 otherwise

Definition in file test_linear_convection.m.


Function Documentation

function OK = test_linear_convection ( )

u_t + b*Du + cu = 0, u(x,0) = u0. u0 is 1 inside a box and 0 otherwise. This box gets transported in direction b with a slowing term c. returns 1, if error to exact solution is "small enough". returns 0 otherwise

Return values:
OKboolean indicating wether test was successful

Definition at line 1 of file test_linear_convection.m.

All Classes Namespaces Files Functions Variables