3 % Script demonstrating the RB-model
for the smooth and symmetrical
4 % initial data
for the nonlinear convection equation with
5 % exponent p in [1,2] in the convection term. I.e. we model linear
6 % advection or the burgers equation in both limit cases.
7 % discretization is with
explicit fv scheme and empirical
8 % interpolation of the space
operator.
10 % Bernard Haasdonk 10.9.2008
14 detailedfname =
'nonlin_symmetry_detailed.mat';
17 % change/add some settings,
if datafile has been generated by earlier versions
21 detailed_data.grid = construct_grid(model);
22 % detailed_data.grid = extend_class_from_struct(
'triagrid',detailed_data.grid);
23 model.newton_solver = 0;
24 model.implicit_nonlinear = 0;
25 model.local_stencil_size = 1;
26 model.get_rb_size = @get_rb_size_default;
27 model.enable_error_estimator = 0;
28 model.get_mu = @get_mu_default;
29 % plot_params.axis_equal = 1;
30 plot_params.axis_tight = 1;
31 % save(fullfile(rbmatlabhome,
'demos',
'datafiles',detailedfname),
'detailed_data',
'plot_params',
'model');
34 rb_plot_interpolation_points(detailed_data,model);
36 % temporary: transform to
"model"
37 %[model,detailed_data]=renewmodel(params,detailed_data);
41 model.enable_error_estimator = 1;
43 demo_rb_gui(model,detailed_data,[],plot_params,
'nonlin_symmetry');
function demo_rb_gui(varargin)
reduced basis demo with sliders
function demo_rb_nonlin_symmetry()
demo_rb_nonlin_symmetry