1 % small script demonstrating the RB-approach
for nonlinear examples
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.
8 % Bernard Haasdonk 12.12.2007
12 fn =
'burgers_fv_detailed_interpol';
15 % change/add some settings,
if datafile has been generated by earlier versions
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');
33 %params.yscale_uicontrols = 0.7;
34 %params.xscale_gui = 0.7;
35 %params.vrot_angle = 0;
36 %params.c_init_lo = 1;
38 demo_rb_gui(model,detailed_data,[],plot_params,
'rb_burgers');
function demo_rb_burgers_fv()
small script demonstrating the RB-approach for nonlinear examples
function demo_rb_gui(varargin)
reduced basis demo with sliders