rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
demo_rb_nonlin_symmetry.m
Go to the documentation of this file.
2 %
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.
9 
10 % Bernard Haasdonk 10.9.2008
11 
13 
14 detailedfname = 'nonlin_symmetry_detailed.mat';
15 load(detailedfname);
16 
17 % change/add some settings, if datafile has been generated by earlier versions
18 %extend = 1;
19 extend = 0;
20 if extend
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');
32 end;
33 
34 rb_plot_interpolation_points(detailed_data,model);
35 
36 % temporary: transform to "model"
37 %[model,detailed_data]=renewmodel(params,detailed_data);
38 
39 model.M = 145;
40 model.Mstrich = 5;
41 model.enable_error_estimator = 1;
42 
43 demo_rb_gui(model,detailed_data,[],plot_params,'nonlin_symmetry');
44 %| \docupdate
function demo_rb_gui(varargin)
reduced basis demo with sliders
Definition: demo_rb_gui.m:17
function demo_rb_nonlin_symmetry()
demo_rb_nonlin_symmetry