2 % reduced model
for linear stationary problems as given by a
3 % LinStat.DetailedModel.
6 enable_error_estimator =
false;
10 function rm = ReducedModel(dmodel, bg_descr)
11 %
function rm = ReducedModel(detailed_model, basis_generator)
12 % Constructor
for the reduced model.
15 % dmodel: of type LinStat.DetailedModel
17 %
this implements a copy constructor
if necessary...
25 % reduced_data: of type LinStat.ReducedData
26 rb_sim_data = rb_simulation(
this, reduced_data);
28 function rb_sim_data = rb_reconstruction(
this, detailed_data, rb_sim_data)
29 %
function rb_sim_data = rb_reconstruction(
this, detailed_data, rb_sim_data)
33 % detailed_data: of type LinStat.DetailedData
34 % rb_sim_data:
struct holding reduced simulation data returned by
IReducedModelrb_simulation().
37 % rb_sim_data: struct holding the reduced simulation results and their
40 % (trivial) function computing a detailed reconstruction by linear
41 % combination of the coefficients in the simulation data with the
42 % orthonormal reduced basis RB
44 % Bernard Haasdonk 22.2.2011
46 if ~isfield(rb_sim_data,'uh')
47 rb_sim_data.uh =
femdiscfunc([],detailed_data.model_data.df_info);
49 rb_sim_data.uh.dofs = ...
50 detailed_data.RB(:,1:length(rb_sim_data.uN)) * rb_sim_data.uN;
53 function c = copy(this)
54 % function c = copy(this)
58 % c: an object of type LinStat.
ReducedModel which is a deep copy of
65 function Delta = get_estimators_from_sim_data(rb_sim_data)
66 % function Delta = get_estimators_from_sim_data(sim_data)
70 Delta = rb_sim_data.Delta;
73 function Delta = get_estimator_from_sim_data(rb_sim_data)
74 % function Delta = get_estimator_from_sim_data(sim_data)
78 Delta = rb_sim_data.Delta(end);