rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
advection_ldg.m
Go to the documentation of this file.
1 % small script implementing a simple advection example
2 % Discretization with LDG Functions
3 
4 % Bernard Haasdonk 2.9.2009
5 
6 step = 1; % initialization of model and plot of model data
7 %step = 2; % detailed simulation
8 
9 switch step
10  case 1
11  model = advection_ldg_model([]);
12  model_data = gen_model_data(model,[]);
13  plot(model_data.grid);
14 % inspect(model_data.grid)
15  case 2
16  model = advection_ldg_model([]);
17  model_data = gen_model_data(model,[]);
18  sim_data = detailed_simulation(model,model_data,[]);
19 % plot_sim_data(model,model_data,sim_data,params)
20  otherwise
21  disp('step number unknown');
22 end;
23 
24 
25 %| \docupdate