rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
EILeafNode.m
1 classdef EILeafNode < Greedy.DataTree.Detailed.ILeafNode
2  % detailed data node implementation storing a collateral reduced basis space
3  % and interpolation DOFs
4 
5  properties
6  % a unique identifier for the parameterized function or operator
7  id;
8 
9  % the collateral reduced basis functions `q_m`
10  QM;
11 
12  % the interpolation DOFs `\tau^{EI}_m`
13  TM;
14 
15  % the interpolation matrix `{\bf B}`
16  BM;
17 
18  % nodal basis functions `\xi_m`
19  XI;
20 
21  % an object of type ILocalizedOperator for which the empirical
22  % interpolation basis was generated.
23  ophandle = [];
24  end
25 
26  properties (SetAccess = private, Dependent)
27  % dimension of the collateral reduced basis space
28  M;
29  end
30 
31  methods
32  function eidd = EILeafNode(ei_plugin, model_data)
33  % function eidd = EILeafNode(eidetailed, model_data)
34  % constructor initializing the empirical interpolation data node
35  %
36  % Parameters:
37  % ei_plugin: the plugin object of type Greedy.Plugin.EI creating this
38  % detailed data data node
39  eidd = eidd@Greedy.DataTree.Detailed.ILeafNode(model_data);
40  eidd.id = ei_plugin.id;
41  eidd.ophandle = ei_plugin.generator.ophandle;
42  end
43 
44  function [ot1, ot2, ot3] = offtime(this, rmodel)
45  % returns different offline time measurements
46 
47 % dmodel = rbmodel.detailed_model;
48 % eigen = SnapshotsGenerator.SpaceOpEvals(dmodel);
49 
50 % Mspace = info.M_train;
51 % ot1 = 0;
52 % for muind = 1:size(Mspace, 1)
53 % set_mu( dmodel, Mspace(mu_ind,:) );
54 % [LU, tt] = generate(eigen, dmodel, this);
55 % ot1 = ot1 + tt;
56 % end
57 
58  ot1 = 0;
59  ot2 = this.info.elapsed_time;
60  ot3 = 0;
61  end
62 
63  function M = get.M(this)
64  M = size(this.QM, 2);
65  end
66 
67  function siz = get_ei_size(this)
68  siz = size(this.QM, 2);
69  end
70 
71  function siz = get_rb_size(this)
72  siz = 0;
73  end
74 
75  end
76 
77 end
Interface for a localized operator that fulfills the so-called -independent DOF dependence.
interface specialization for a leaf element in a DataTree returned by the Greedy basis generation alg...
Definition: ILeafNode.m:20
DataTree implementation for generated detailed and reduced data
Definition: DuneRBLeafNode.m:2
DataTree specialization for detailed data generated by a Greedy algorithm instance.
Definition: DuneRBLeafNode.m:3
Implementation of a SnapshotsGenerator.Cached for empirical basis generation. The generate() method r...
Definition: SpaceOpEvals.m:18
Specialization plugins for the greedy algorithm.
Definition: Default.m:2
Cacheable generators of detailed data snapshots.
Definition: Cached.m:1
Plugin for the Greedy.Algorithm class generating a collateral reduced basis space plus interpolation ...
Definition: EI.m:19
detailed data node implementation storing a collateral reduced basis space and interpolation DOFs ...
Definition: EILeafNode.m:20
Customizable implementation of an abstract greedy algorithm.
Definition: DuneRBLeafNode.m:1