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
Tests.m
Go to the documentation of this file.
1 namespace models{
2 namespace pcdi{
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 
19 class Tests {
38  public: /* ( Static ) */
39 
40 
41  static function m = demo_SpatialDependency() {
42  m = models.pcdi.PCDIModel;
43  m.System.h= 2e-7;
44  m.T= 100;
45  m.dt= 5;
46  mu = [.5 .6 .5 2.5 .5]^t;
47 
48  /* Plot the currently used coefficient */
49  m.System.plotDiffusionCoeff(mu(5));
50 
51  /* Plot range of possible coefficients */
52  m.System.plotDiffusionCoeff(0:.1:1);
53 
54  [t,y,~,x] = m.simulate(mu);
55 
56  /* Normal output */
57  m.plot(t,y);
58 
59  /* Plot c3 concentration at center line */
60  m.plotState(t,x,1);
61 
62  /* Plot top view over time */
63  m.plotState(t,x,2);
64 
65  /* Plot augmented concentration differences */
66  m.plotState(t,x,3);
67 
68  }
69 
70 
71 };
72 }
73 }
74 
Tests: Some test settings regarding the PCD model simulations.
Definition: Tests.m:19
static function m = demo_SpatialDependency()
Definition: Tests.m:41