rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
lin_evol_gen_reduced_data.m
1 function reduced_data = lin_evol_gen_reduced_data(model,detailed_data)
2 %function reduced_data = lin_evol_gen_reduced_data(model,detailed_data)
3 %
4 % method which produces reduced_data, which is the data, that will be passed to
5 % an online-algorithm. Therefore, no quantities dependent on the high-dimension
6 % H may be included here. Neither may online-data include parameter-dependent
7 % mu-quantities. So no complete grid or detailed solutions or reduced basis
8 % vectors may be stored here. So online data is produced in the offline stage,
9 % but may be used in online-stages. So the computation time may depend on H,
10 % but the results may not depend on this complexity.
11 %
12 % allowed dependency of generated data: Nmax
13 % not allowed dependency of data: H
14 % allowed dependency of computation: Nmax, H
15 % Unknown at this stage: mu, N
16 %
17 % Required fields of model:
18 % none
19 
20 % Bernard Haasdonk 16.5.2007
21 
22 model.decomp_mode = 1;
23 reduced_data.a0 = rb_init_values(model, detailed_data);
24 
25 % assuming that components do not change in time, so wlg t = 0!!!
26 %model = set_time(model,0);
27 [reduced_data.LL_I, reduced_data.LL_E, reduced_data.bb, ...
28  reduced_data.K_II, reduced_data.K_IE, reduced_data.K_EE, ...
29  reduced_data.m_I, reduced_data.m_E, reduced_data.m ] = rb_operators(model, detailed_data);
30 if isfield(model,'name_output_functional')
31  reduced_data = rb_output_functional_prep(model,reduced_data,detailed_data);
32 end;
33 
34 reduced_data.N = model.get_rb_size(model,detailed_data);
35 
36 
37