rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
demo_rb_burgers_fv.m
Go to the documentation of this file.
1 % small script demonstrating the RB-approach for nonlinear examples
2 %
3 % A burgers equation with Lax-Friedrichs flux is used for solving
4 % a convection problem: Several parameters are variable and
5 % demonstrate the applicability of the model reduction
6 % technique of interpolating the explicit space operator.
7 
8 % Bernard Haasdonk 12.12.2007
9 
11 
12 fn = 'burgers_fv_detailed_interpol';
13 load(fn);
14 
15 % change/add some settings, if datafile has been generated by earlier versions
16 %extend = 1;
17 extend = 0;
18 if extend
19  detailed_data.grid = extend_class_from_struct('triagrid',detailed_data.grid);
20  model.newton_solver = 0;
21  model.implicit_nonlinear = 0;
22  model.local_stencil_size = 1;
23  model.get_rb_size = @get_rb_size_default;
24  model.enable_error_estimator = 0;
25  plot_params.axis_equal = 1;
26  plot_params.axis_tight = 1;
27 % save(fullfile(rbmatlabhome,'demos','datafiles',fn),'detailed_data','plot_params','model');
28 end;
29 
30 model.N = 30;
31 model.M = 45;
32 
33 %params.yscale_uicontrols = 0.7;
34 %params.xscale_gui = 0.7;
35 %params.vrot_angle = 0;
36 %params.c_init_lo = 1;
37 
38 demo_rb_gui(model,detailed_data,[],plot_params,'rb_burgers');
39 
40 
function demo_rb_burgers_fv()
small script demonstrating the RB-approach for nonlinear examples
function demo_rb_gui(varargin)
reduced basis demo with sliders
Definition: demo_rb_gui.m:17