rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
step6_demo_rb_gui.m
Go to the documentation of this file.
1 % script comparing time for a reduced and a detailed simulation and
2 % starting the demonstration GUI
3 %
4 % required variables that need to be set:
5 % - 'detailedfname'
6 
7 disp('reduced simulation:')
8 reduced_data = gen_reduced_data(rbmodel, detailed_data);
9 rbmodel.N = reduced_data.N;
10 %rbmodel.Mstrich = 0;
11 rbmodel.M = reduced_data.M-rbmodel.Mstrich;
12 %rbmodel.enable_error_estimator = 0;
13 reduced_data = extract_reduced_data_subset(rbmodel, reduced_data);
14 tic;
15 rb_sim_data = rb_simulation(rbmodel, reduced_data);
16 t = toc;
17 disp(['time for online phase: t = ',num2str(t)]);
18 
19 disp('full simulation:')
20 tic;
21 %sim_data = detailed_simulation(rbmodel.detailed_model, detailed_data.model_data);
22 t = toc;
23 disp(['time for detailed simulation: t = ',num2str(t)]);
24 
25 demo_rb_gui(rbmodel, detailed_data, [], plot_params);
26 
function demo_rb_gui(varargin)
reduced basis demo with sliders
Definition: demo_rb_gui.m:17