rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
vi_rb_reconstruction.m
1 function rb_sim_data = vi_rb_reconstruction(model,detailed_data, ...
2  rb_sim_data)
3 %function rb_sim_data = vi_rb_reconstruction(model,detailed_data, ...
4 % rb_sim_data)
5 %
6 % function computing the detailed representation of the reduced
7 % solution of a Paramterized Variational Inequality.
8 
9 % Generated fields of rb_sim_data:
10 % U: primal solution vector
11 % L: Lagrange multiplier vector
12 
13 % I.Maier 31.05.2011
14 
15 N = length(rb_sim_data.UN);
16 rb_sim_data.U = detailed_data.RB_U(:,1:N) * rb_sim_data.UN;
17 NL = length(rb_sim_data.LN);
18 rb_sim_data.L = detailed_data.RB_L(:,1:NL) * rb_sim_data.LN;