KerMor  0.9
Model order reduction for nonlinear dynamical systems and nonlinear approximation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
AffineParametric.m
Go to the documentation of this file.
1 namespace error{
2 namespace alpha{
3 
4 
5 /* (Autoinserted by mtoc++)
6  * This source code has been filtered by the mtoc++ executable,
7  * which generates code that can be processed by the doxygen documentation tool.
8  *
9  * On the other hand, it can neither be interpreted by MATLAB, nor can it be compiled with a C++ compiler.
10  * Except for the comments, the function bodies of your M-file functions are untouched.
11  * Consequently, the FILTER_SOURCE_FILES doxygen switch (default in our Doxyfile.template) will produce
12  * attached source files that are highly readable by humans.
13  *
14  * Additionally, links in the doxygen generated documentation to the source code of functions and class members refer to
15  * the correct locations in the source code browser.
16  * However, the line numbers most likely do not correspond to the line numbers in the original MATLAB source files.
17  */
18 
20  :public error.alpha.Base {
39  private:
40 
41  mb = "[]";
42 
43  bb = "[]";
44 
45 
46  public:
47 
48 
50  this = this@error.alpha.Base(rm);
51  }
52 
53 
55  fm = rm.FullModel;
56  if ~isempty(rm.V)
57  /* For details see the AffParamMatrix overridden operators */
58  B = fm.System.B - rm.V*(rm.W^t*fm.System.B);
59  this.mb= (M^t*rm.G)*B;
60  this.bb= B^t*(rm.G*B);
61  end
62  }
76  function a = getAlpha(colvec phi,colvec<double> ut,double t,colvec<double> mu) {
77  a = phi*this.M1*phi^t;
78  if ~isempty(ut) /* An input function u is set */
79 
80  a = a + phi*this.mb.compose(t,mu)*ut + ut^t*this.bb.compose(t,mu)*ut;
81  end
82  a = sqrt(abs(a));
83  }
99 };
100 }
101 }
102 
models.BaseFullModel FullModel
The full model this reduced model was created from.
Definition: ReducedModel.m:53
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
Definition: BaseModel.m:102
dscomponents.AInputConv B
The input conversion.
matrix< double > G
The custom scalar product matrix .
Definition: BaseModel.m:132
The KerMor reduced model class.
Definition: ReducedModel.m:18
matrix< double > V
The matrix that has been used for projection.
Definition: ReducedModel.m:72
matrix< double > W
The biorthogonal matrix for V, i.e. .
Definition: ReducedModel.m:85
function inputOfflineComputations(models.ReducedModel rm,matrix< double > M)
Performs the offline stage for the error estimators regarding the inputs.
A matlab column vector.
function a = getAlpha(colvec phi,colvec< double > ut,double t,colvec< double > mu)
Computes the value of the error estimator.
Base:
Definition: Base.m:19
AffineParametric(models.ReducedModel rm)