rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
rb_reconstruction.m
1 function rb_sim_data = rb_reconstruction(this, detailed_data, rb_sim_data)
2  % function rb_sim_data = rb_reconstruction(this, detailed_data, rb_sim_data)
3  % reconstructs a high dimensional solution trajectory from a reduced
4  % solution trajectory.
5  %
6  % Parameters:
7  % detailed_data: of type TwoPhaseFlow.DetailedData
8  % rb_sim_data: struct holding reduced simulation data returned by
9  % ReducedModel.rb_simulation().
10  %
11  % Return values:
12  % rb_sim_data: struct holding the reduced simulation results and their
13  % reconstructions.
14  %
15 
16  dd_sat = get_by_description(detailed_data.datatree.rb, 'saturation');
17  dd_vel = get_by_description(detailed_data.datatree.rb, 'velocity');
18  dd_prs = get_by_description(detailed_data.datatree.rb, 'pressure');
19 
20  rb_sim_data.S = dd_sat.RB(:,1:size(rb_sim_data.sat_a,1)) * rb_sim_data.sat_a;
21  rb_sim_data.U = dd_vel.RB(:,1:size(rb_sim_data.vel_a,1)) * rb_sim_data.vel_a;
22  rb_sim_data.P = dd_prs.RB(:,1:size(rb_sim_data.prs_a,1)) * rb_sim_data.prs_a;
23 end
class generating the reduced basis space for the LinEvol problem with a Greedy algorithm.
Definition: DetailedData.m:18