rbmatlab  1.13.10
 All Classes Namespaces Files Functions Variables Groups Pages
DetailedData.m
1 classdef DetailedData < Greedy.User.IDetailedData
2  % class generating the reduced basis space for the LinEvol problem with a
3  % Greedy algorithm.
4  %
5  % The constructor argument 'bg_descr' of type BasisGenDescr can define the
6  % Greedy algorithm to be used. (#bg_algorithm)
7 
8  properties
9  % a basis generation algorithm of type Greedy.Interface used to generate
10  % the reduced basis space.
11  bg_algorithm;
12  end
13 
14  methods
15  function dd = DetailedData(rmodel, model_data)
16  % function dd = DetailedData(rmodel, model_data)
17  % constructor constructing the reduced basis spaces and storing it in a
18  % DataTree.
19  %
20  % Parameters:
21  % rmodel: of type LinEvol.ReducedModel
22 
23  dd = dd@Greedy.User.IDetailedData(rmodel.bg_descr, model_data);
24 
25  dd.datatree = gen_detailed_data(dd.bg_algorithm, rmodel, model_data);
26  end
27 
28  end
29 
30  methods
31 
32  function rb_size = get_rb_size(this, rmodel)
33  leaf_dd = get_leaf(this, rmodel);
34  rb_size = get_rb_size(leaf_dd);
35  end
36 
37  end
38 end