1 % script comparing time
for a reduced and a detailed simulation and
2 % starting the demonstration GUI
4 % required variables that need to be set:
7 disp(
'reduced simulation:')
8 reduced_data = gen_reduced_data(rbmodel, detailed_data);
9 rbmodel.N = reduced_data.N;
11 rbmodel.M = reduced_data.M-rbmodel.Mstrich;
12 %rbmodel.enable_error_estimator = 0;
13 reduced_data = extract_reduced_data_subset(rbmodel, reduced_data);
15 rb_sim_data = rb_simulation(rbmodel, reduced_data);
17 disp(['time for online phase: t = ',num2str(t)]);
19 disp('full simulation:')
21 %sim_data = detailed_simulation(rbmodel.detailed_model, detailed_data.model_data);
23 disp(['time for detailed simulation: t = ',num2str(t)]);
25 demo_rb_gui(rbmodel, detailed_data, [], plot_params);
function demo_rb_gui(varargin)
reduced basis demo with sliders