rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
lin_evol_model_default.m
1 function model=lin_evol_model_default
2 
3 model.rb_problem_type = 'lin_evol';
4 
5 model.L_I_inv_norm_bound = 1;
6 model.L_E_norm_bound = 1;
7 
8 model.operators_ptr = @fv_operators_implicit_explicit;
9 model.operators_diff_implicit = @fv_operators_zero;
10 model.operators_diff_explicit = @fv_operators_zero;
11 model.operators_conv_implicit = @fv_operators_zero;
12 model.operators_conv_explicit = @fv_operators_zero;
13 model.operators_neumann_explicit = @fv_operators_zero;
14 model.operators_neumann_implicit = @fv_operators_zero;
15 
16 model.detailed_simulation = @lin_evol_detailed_simulation;
17 model.gen_detailed_data = @lin_evol_gen_detailed_data;
18 model.gen_reduced_data = @lin_evol_gen_reduced_data;
19 model.rb_init_data_basis = @RB_init_data_basis;
20 model.gen_model_data = @lin_evol_gen_model_data;
21 model.rb_init_values = @rb_init_values_default;
22 model.rb_operators = @lin_evol_rb_operators;
23 model.rb_simulation = @lin_evol_rb_simulation;
24 model.rb_reconstruction = @rb_reconstruction_default;
25 model.plot = @fv_plot;
26 model.plot_detailed_data = @lin_evol_plot_detailed_data;
27 model.plot_sim_data = @lin_evol_plot_sim_data;
28 model.get_rb_size = @get_rb_size_default;
29 model.set_mu = @set_mu_default;
30 model.set_time = @set_time_default;
31 model.get_mu = @get_mu_default;
32 model.get_inner_product_matrix = @(detailed_data) detailed_data.W;
33 model.get_rb_from_detailed_data = @(detailed_data) detailed_data.RB;
34 model.set_rb_in_detailed_data = @(detailed_data,RB) ...
35  setfield(detailed_data, 'RB', RB);
36 
37 model.get_estimator_from_sim_data = @(sim_data) sim_data.Delta(end);
38 model.get_dofs_from_sim_data = @(sim_data) sim_data.U;
39 model.get_estimators_from_sim_data = @(sim_data) sim_data.Delta;
40 model.PCA_fixspace = @PCA_fixspace;
41 model.orthonormalize = @model_orthonormalize_gram_schmidt;
42 model.inner_product = @(model,model_data,vecs1,vecs2) ...
43  vecs1' * model_data.W * vecs2;
44 model.reduced_data_subset = @lin_evol_reduced_data_subset;
45 
46 model.mass_matrix = @fv_mass_matrix;
47 model.divclean_mode = 0;
48 
49 model.l2_error_sequence_algorithm = @fv_l2_error;
50 model.linfty_error_sequence_algorithm = @fv_linfty_error;
51 model.error_algorithm = @fv_error;
52 model.error_norm = 'l2';
53 model.error_estimation = 1; % turn on rb error estimation as default
54 model.save_detailed_simulations = @save_detailed_simulations;
55 
56 model.affinely_decomposed = true;
57 
58 model.compute_output_functional = 0;
59 
60 model.data_const_in_time = 1;
61 
62 % model.lxf_lambda = 0.1172; % lambda value for Lax-Friedrichs diffusivity
63 % model.lxf_lambda = 0.001172; % lambda value for Lax-Friedrichs diffusivity
64 model.lxf_lambda = 1.0194e+003;
65 
66 model.enable_error_estimator = 1;
function rb_sim_data = rb_reconstruction_default(model, detailed_data, rb_sim_data)
(trivial) function computing a detailed reconstruction by linear combination of the coefficients in t...
function p = fv_plot(gridbase grid, dofs, params)
routine plotting a single fv function of fv_functions.
Definition: fv_plot.m:17
function a0 = rb_init_values_default(model, detailed_data)
function computing the reduced basis initial values. If the decomposition mode is coefficients...