rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
lin_ds_gen_detailed_data.m
1 function detailed_data = lin_ds_gen_detailed_data(model,model_data)
2 %function detailed_data = lin_ds_gen_detailed_data(model,model_data)
3 %
4 % function computing the detailed data for a ds reduced basis simulation
5 % i.e. the reduced basis, matrix G, components of A,B,C, etc.
6 %
7 % Generated fields of detailed_data:
8 % V: reduced basis
9 % W: reduced projection basis (biorthonormal to V)
10 
11 % Bernard Haasdonk 2.4.2009
12 
13 if ~model.affinely_decomposed
14  error(['rb simulation only possible for affine parameter dependent ',...
15  'linear dynamical systems']);
16 end;
17 
18 %detailed_data = [];
19 % field RB is generated
20 detailed_data = rb_basis_generation(model,model_data);
21 
22 %if isfield(model,'RB_filename')
23 % tmp = load(fullfile(rbmatlabresult,model.RB_filename));
24 % detailed_data.V = tmp.V;
25 % detailed_data.W = tmp.W;
26 %else
27 % detailed_data.V = eye(3,2);
28 % detailed_data.W = eye(3,2); % biorthonormal
29 %end;
30 %detailed_data.RB_info = tmp.RB_info;
31 %detailed_data.V = tmp.RB;
32 %detailed_data.W = detailed_data.V; % biorthogonal as V orthogonal
33 detailed_data.G = model_data.G;
34 detailed_data.x0_components = model_data.x0_components;
35 detailed_data.A_components = model_data.A_components;
36 detailed_data.B_components = model_data.B_components;
37 detailed_data.C_components = model_data.C_components;
38 
39 
40 
41 
42 
43 
44 
45 
46 
47 
48 
49 
50 
51 
52 
53 
54 
55 
56 
57 
58 
59 
60 
61 
62 
63 
64 
function detailed_data = rb_basis_generation(model, detailed_data)
reduced basis construction with different methods