rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
demo_detailed_gui.m
Go to the documentation of this file.
1 function demo_detailed_gui(varargin)
2 %function demo_detailed_gui(model,model_data,[reduced_data],...
3 % plot_params[,title, callbackfigure, ...
4 % cbhandle])
5 % demo gui for detailed simulations (calling demo_rb_gui after
6 % switching some pointers)
7 
8 % B. Haasdonk 2.3.2012
9 
10 tlist = varargin;
11 if nargin<1
12  disp('FEM solution of thermalblock with 2x2 subblocks and variable diffusion coefficients')
13  params = [];
14  params.B1 = 2;
15  params.B2 = 2;
16  params.numintervals_per_block = 50;
17  params.mu_range = [0.1;10];
18  params.numintervals_per_block = 5;
19  model = thermalblock_model_struct(params);
20  model_data = gen_model_data(model);
21  plot_params = [];
22  plot_params.axis_equal = 1;
23  plot_params.axis_tight = 1;
24  plot_params.yscale_uicontrols = 0.7;
25  tlist{1} = model;
26  tlist{2} = model_data;
27  tlist{4} = plot_params;
28 end;
29 
30 model = tlist{1};
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;
37 tlist{1} = model;
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';
45 demo_rb_gui(tlist{:});
function demo_rb_gui(varargin)
reduced basis demo with sliders
Definition: demo_rb_gui.m:17
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) ...