rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
descr_default.m
Go to the documentation of this file.
1 function descr=descr_default
2  % function descr=descr_default
3  % function initializing some fields of a lin-evol model
4  %
5  % generated fields of descr:
6  % rb_problem_type : ''LinEvol''
7  % L_I_inv_norm_bound : '1'
8  % L_E_norm_bound : '1'
9  % operators_ptr : fv_operators_implicit_explicit()
10  % operators_diff_implicit : fv_operators_zero()
11  % operators_diff_explicit : fv_operators_zero()
12  % operators_conv_implicit : fv_operators_zero()
13  % operators_conv_explicit : fv_operators_zero()
14  % operators_neumann_explicit : fv_operators_zero()
15  % operators_neumann_implicit : fv_operators_zero()
16  % plot : fv_plot()
17  % get_inner_product_matrix : extracts inner product matrix from model data.
18  % inner_product : inner product algorithm
19  % mass_matrix : fv_mass_matrix()
20  % divclean_mode : '0'
21  % l2_error_sequence_algorithm : fv_l2_error()
22  % linfty_error_sequence_algorithm : fv_linfty_error()
23  % error_algorithm : fv_error()
24  % error_norm : ''l2''
25  % error_estimation : '1'
26  % affinely_decomposed : 'true'
27  % compute_output_functional : 'false'
28  % data_const_in_time : '1'
29  % lxf_lambda : '1.0194e+003'
30  % enable_error_estimator : '1'
31 
32 descr.rb_problem_type = 'LinEvol';
33 
34 descr.L_I_inv_norm_bound = 1;
35 descr.L_E_norm_bound = 1;
36 
37 descr.operators_ptr = @fv_operators_implicit_explicit;
38 descr.operators_diff_implicit = @fv_operators_zero;
39 descr.operators_diff_explicit = @fv_operators_zero;
40 descr.operators_conv_implicit = @fv_operators_zero;
41 descr.operators_conv_explicit = @fv_operators_zero;
42 descr.operators_neumann_explicit = @fv_operators_zero;
43 descr.operators_neumann_implicit = @fv_operators_zero;
44 
45 descr.plot = @fv_plot;
46 descr.get_inner_product_matrix = @(detailed_data) detailed_data.W;
47 descr.inner_product = @(descr,descr_data,vecs1,vecs2) ...
48  vecs1' * descr_data.W * vecs2;
49 descr.mass_matrix = @fv_mass_matrix;
50 descr.divclean_mode = 0;
51 
52 descr.l2_error_sequence_algorithm = @fv_l2_error;
53 descr.linfty_error_sequence_algorithm = @fv_linfty_error;
54 descr.error_algorithm = @fv_error;
55 descr.error_norm = 'l2';
56 descr.error_estimation = 1; % turn on rb error estimation as default
57 
58 descr.affinely_decomposed = true;
59 
60 descr.compute_output_functional = false;
61 
62 descr.data_const_in_time = 1;
63 
64 % descr.lxf_lambda = 0.1172; % lambda value for Lax-Friedrichs diffusivity
65 % descr.lxf_lambda = 0.001172; % lambda value for Lax-Friedrichs diffusivity
66 descr.lxf_lambda = 1.0194e+003;
67 
68 descr.enable_error_estimator = 1;
function ModelDescr descr = descr_default()
This function initializes the default settings for the ARE model.
Definition: descr_default.m:18
function p = fv_plot(gridbase grid, dofs, params)
routine plotting a single fv function of fv_functions.
Definition: fv_plot.m:17
Reduced basis implementation for linear evolution equations.
function linfty_error = fv_linfty_error(U1, U2, W)
compute the infinity-norm error between two Dof vectors.
function l2_error = fv_l2_error(U1, U2, W)
function computing the l2-error between the two fv-functions or function sequences in U1...
Definition: fv_l2_error.m:17