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
RBMatlabModel.m
Go to the documentation of this file.
1 namespace models{
2 namespace rbmatlab{
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 models.BaseFullModel {
40  public:
41 
65  public:
66 
68  if ~KerMor.App.Hasrbmatlab
69  error(" rbmatlab is not registered with KerMor. Set KerMor.App.rbmatlabDirectory to fix. ");
70  end
71  this = this@models.BaseFullModel;
72  }
73 
74 
75 
76 #if 0 //mtoc++: 'set.RBMModel'
77 function RBMModel(value) {
78  if ~isstruct(value)
79  error(" Value must be a valid double matrix ");
80  end
81  this.RBMModel= value;
82  }
83 
84 #endif
85 
86 
87 
88 #if 0 //mtoc++: 'set.RBMDataCont'
89 function RBMDataCont(value) {
90  this.checkType(value, " models.rbmatlab.RBMDataContainer ");
91  this.RBMDataCont= value;
92  }
93 
94 #endif
95 
96 
97  function [doublet , matrix<double>y , sec , colvec<double>x ] = simulate(varargin) {
98  if ~KerMor.App.Hasrbmatlab
99  error(" rbmatlab is not registered with KerMor. Set KerMor.App.rbmatlabDirectory to fix. ");
100  end
101  [t,y,sec,x] = simulate@models.BaseModel(this, varargin[:]);
102  }
114  function [doublet , colvec<double>x , time ] = computeTrajectory(varargin) {
115  if ~KerMor.App.Hasrbmatlab
116  error(" rbmatlab is not registered with KerMor. Set KerMor.App.rbmatlabDirectory to fix. ");
117  end
118  [t, x, time] = computeTrajectory@models.BaseModel(this, varargin[:]);
119  }
140 };
141 }
142 }
143 
144 
145 
The base class for any KerMor detailed model.
Definition: BaseFullModel.m:18
A matlab matrix.
RBMatlabModel: Base class for all rbmatlab models in KerMor.
Definition: RBMatlabModel.m:19
function [ double t , matrix< double > y , sec , colvec< double > x ] = simulate(varargin)
Simulates the RBMatlab model for given parameter and inputindex.
Definition: RBMatlabModel.m:97
A variable number of input arguments.
models.rbmatlab.RBMDataContainer RBMDataCont
The RBMDataContainer for the model_data struct.
Definition: RBMatlabModel.m:52
function checkType(obj, type)
Object typechecker.
Definition: KerMorObject.m:122
RBMModel
The adopted RB matlab model.
Definition: RBMatlabModel.m:42
RBMDATACONTAINER Summary of this class goes here Detailed explanation goes here.
function [ double t , colvec< double > x , time ] = computeTrajectory(varargin)
Computes a trajectory of the RBMatlab model for given parameter and inputindex.
Global configuration class for all KerMor run-time settings.
Definition: KerMor.m:17
static function KerMor theinstance = App()
The singleton KerMor instance.
Definition: KerMor.m:910