1 function model = evol_TB_2D_weak_form_model()
2 %
function model = evol_TB_2D_weak_form_model()
4 % This
function generates the rbmatlab model of the 2D evolution
5 %
ThermalBlock Model implemented as a weak-form model in Comsol!
6 % coefficient form models can also be used. See e.g. comsol_thermal_block_model
8 % Oliver Zeeb, 2013/11/21
10 model=gen_rbmatlab_model_from_comsol_model(
'evol_TB_2D_weak_form');
12 %set model specific operators
for:
13 %- model.comsol_calculate_inner_product_matrices
14 %- model.operators_ptr
15 %- model.operators_output
16 model.comsol_calculate_inner_product_matrices = @evol_TB_2D_weak_form_inner_product_matrices;
17 model.operators_ptr = @evol_TB_2D_weak_form_operators;
18 model.operators_output = @evol_TB_2D_weak_form_operators_output;
20 model.name_output_functional =
'bottom_line_integral';
21 model.compute_output_functional = 1;
23 model.mu_ranges = {[1,10] [1,10] [1,10] [1,10]};
24 model.RB_stop_Nmax = 5;
26 %These values are needed
for error estimation and can e.g. be obtained via
27 %an SCM procedure. The error estimator also works with arbitrary values but
28 %is not rigorous any longer!!!
29 warning(
'Set the right values for: model.L_I_inv_norm_bound!!!')
30 model.L_I_inv_norm_bound = 1;
31 model.L_E_norm_bound = 1;