3 % plot_params[,title, callbackfigure, ...
5 % demo gui
for detailed simulations (calling
demo_rb_gui after
6 % switching some pointers)
12 disp(
'FEM solution of thermalblock with 2x2 subblocks and variable diffusion coefficients')
16 params.numintervals_per_block = 50;
17 params.mu_range = [0.1;10];
18 params.numintervals_per_block = 5;
20 model_data = gen_model_data(model);
22 plot_params.axis_equal = 1;
23 plot_params.axis_tight = 1;
24 plot_params.yscale_uicontrols = 0.7;
26 tlist{2} = model_data;
27 tlist{4} = plot_params;
31 model.rb_simulation = model.detailed_simulation;
32 model.gen_reduced_data = @(model,detailed_data) detailed_data;
33 model.rb_reconstruction = @(model,detailed_data,sim_data) sim_data;
34 model.reduced_data_subset = @(model,reduced_data) reduced_data;
35 model.N = 2; % dummy value;
36 model.enable_error_estimator = 0;
38 detailed_data = tlist{2};
39 detailed_data.RB = ones(100,2);
40 tlist{2} = detailed_data;
41 plot_params = tlist{4};
42 plot_params.hide_N_ruler = 1;
43 tlist{4} = plot_params;
44 tlist{5} =
'detailed simulation';
function demo_rb_gui(varargin)
reduced basis demo with sliders
function model = thermalblock_model_struct(params)
Thermal Block example similar as described in the book of A.T. patera and G. Rozza (just one paramete...
function demo_detailed_gui(varargin)
demo gui for detailed simulations (calling demo_rb_gui after switching some pointers) ...