rbmatlab  1.16.09
 All Classes Namespaces Files Functions Variables Modules Pages
DuneRBLeafNode.m
1 classdef DuneRBLeafNode < Greedy.DataTree.Detailed.ILeafNode
2  % tree node implementation for a detailed data structure holding a reduced
3  % basis
4 
5  properties
6  id;
7 
8  % matrix of size 'H x N' holding the Dof vectors of the reduced basis
9  % snapshot vectors spanning the reduced basis space `{\cal W}_{\text{red}}
10  % \subset {\cal W}_h`
11  %
12  % This should be a class as well, as it might be stored outside of matlab.
13  RB;
14 
15  mexptr;
16  end
17 
18  methods
19  function rbdd = DuneRBLeafNode(model_data, id)
20  % function rbdd = RBLeafNode(model_data)
21  % constructor initializing the reduced data node
22 
23  rbdd = rbdd@Greedy.DataTree.Detailed.ILeafNode(model_data);
24  rbdd.id = id;
25  rbdd.mexptr = model_data.mexptr;
26  end
27 
28  function siz = get_rb_size(this)
29  siz = this.mexptr('get_rb_size');
30  end
31 
32  function [ot1, ot2, ot3] = offtime(this, rmodel)
33 
34  ot1 = offtime(this.info, rmodel.N);
35 % ot1 = sum(this.info.toc_value_sequence(1:rmodel.N-1));
36  ot2 = 0;
37  ot3 = 0;
38  end
39 
40  function siz = get_ei_size(this)
41  siz = 0;
42  end
43 
44  function this = delete_rb(this, index)
45  % function this = delete_rb(this, index)
46  % delete selected basis functions from the reduced basis
47  %
48  % Parameters:
49  % index: basis functions indices to be removed
50  this.mexptr('clear_rb');
51  this.RB = [];
52  end
53  end
54 
55 end
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
tree node implementation for a detailed data structure holding a reduced basis
Definition: RBLeafNode.m:20
DataTree specialization for detailed data generated by a Greedy algorithm instance.
Definition: DuneRBLeafNode.m:3
Customizable implementation of an abstract greedy algorithm.
Definition: DuneRBLeafNode.m:1