rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
demo_rb_explicit_evol.m
Go to the documentation of this file.
1 % small script demonstrating the RB-approach for examples
2 % by interpolation of the explicit operator
3 % The linear advection-diffusion example of the lin-evol setting is
4 % used, but now the explicit discretization of the convection is
5 % realized by empirical interpolation.
6 
7 % Bernard Haasdonk 12.12.2007
8 
10 
11 fn = fullfile(rbmatlabhome,'demos','datafiles',...
12  'chemnitz_detailed_data_new_interpol');
13 
14 % file is old, update
15 extend = 1;
16 if extend
17  model.newton_solver = 0;
18  model.implicit_nonlinear = 0;
19  model.local_stencil_size = 2;
20  model.get_rb_size = @get_rb_size_default;
21  model.enable_error_estimator = 0;
22  model.laplacian_ptr = @(glob, U, model) ...
23  model.k * ones(size(U));
24 
25  detailed_data.grid = construct_grid(model);
26  % save(fn,'detailed_data','model','plot_params');
27 end;
28 
29 model.N = 30;
30 model.M = 45;
31 
32 demo_rb_gui(model,detailed_data,[],plot_params,'explicit_evol');
33 
34 %| \docupdate