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
PCDIModel.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 PCDIModel
20  :public models.BaseFullModel {
49  public: /* ( Constant ) */
50 
51  static const d1 = 1.8e-11;
61  static const d2 = 1.86e-11;
70  static const d3 = 1.89e-11;
79  static const d4 = 2.27e-11;
88  static const d5 = 1.8720e-11;
97  static const d6 = 1.9548e-11;
106  static const d7 = 1.4850e-11;
115  static const d8 = 1.4850e-11;
124  static const K1 = 0.08;
133  static const K2 = 0.08;
142  static const K3 = 0.054;
151  static const K4 = 0.36;
160  static const K5 = .0005;
169  static const K6 = .0005;
178  static const K7 = 3.6000e-4;
187  static const K8 = 1.8000e-04;
196  static const K9 = .0005;
205  static const K10 = .0005;
214  static const K11 = 0.54;
223  static const K12 = 1.8000e-05;
232  static const K13 = 1.8000e-4;
241  static const Km3 = 0.0360;
250  static const Km8 = 1e-04;
259  static const Km9 = 1e-04;
268  static const Km10 = 1e-04;
277  static const Km11 = 0.0360;
286  static const Km12 = 1.8000e-06;
295  static const tc = 1e-7;
305  static const L = 1e-5;
314  public:
315 
327  public: /* ( Dependent ) */
328 
330 
331 
332  public: /* ( Dependent ) */
333 
334  PCDIModel(integer dim,logical inhibitors) {
335 
336  if nargin < 2
337  inhibitors = true;
338  if nargin < 1
339  dim = 2;
340  end
341  end
342  this.WithInhibitors= inhibitors;
343 
344  this.T= 3600; /* [s] */
345 
346  this.dt= 5; /* [s]
347  * time scaling */
348 
349  this.tau= this.L^2/this.d1;
350 
351  s = sampling.GridSampler;
352  this.Sampler= s;
353 
354  /* this.ODESolver = solvers.MLWrapper(@ode23);
355  * this.ODESolver = solvers.ExplEuler(this.dt); */
356  o = solvers.MLode15i;
357  o.AbsTol= 1e-6;
358  o.RelTol= 1e-5;
359  o.MaxStep= [];
360  this.ODESolver= o;
361  /* this.ODESolver = solvers.SemiImplicitEuler(this); */
362 
363  switch dim
364  case 3
365  s = models.pcdi.PCDISystem3D(this);
366  this.Name= " Programmed Cell Death 3D ";
368  otherwise
369  s = models.pcdi.PCDISystem2D(this);
370  this.Name= " Programmed Cell Death 2D ";
372  end
373  if this.WithInhibitors
374  this.Name= [this.Name " (Inhibitor System) "];
375  end
376 
377  s.MaxTimestep= this.dt;
378  this.System= s;
379 
380  /* Space reduction setup */
381  sr = spacereduction.PODGreedy;
382  sr.Eps= 1e-5;
383  this.SpaceReducer= sr;
384 
385  this.Approx= [];
386  }
397  function plot(varargin) {
398  this.System.plot(this, varargin[:]);
399  }
408  function plotState(varargin) {
409  this.System.plotState(this, varargin[:]);
410  }
420 #if 0 //mtoc++: 'get.Dimension'
421 function value = Dimension() {
422  value = this.System.Dims;
423  }
424 
425 #endif
426 
427 
428 
429 #if 0 //mtoc++: 'set.WithInhibitors'
430 function WithInhibitors(value) {
431  if ~islogical(value) || ~isscalar(value)
432  error(" WithInhibitors must be a logical scalar ");
433  end
434  this.WithInhibitors= value;
435  }
436 
437 #endif
438 
439 
440  protected: /* ( Dependent ) */
441 
442  function ss = getSteadyStates(n);
443 
444  public: /* ( Static ) */ /* ( Dependent ) */
445 
446  static function res = test_PCDIModel_Simulation() {
447  m = models.pcdi.PCDIModel;
448  [t,y] = m.simulate;
449  m.plot(t,y);
450  res = 1;
451  }
452 
463 };
464 }
465 }
466 
467 
468 
static function res = test_PCDIModel_Simulation()
Definition: PCDIModel.m:446
static const d5
Typical diffusion rate for IAP [m^2/s].
Definition: PCDIModel.m:88
char Name
The name of the Model.
Definition: BaseModel.m:117
static const d7
Typical diffusion rate for YAI [m^2/s].
Definition: PCDIModel.m:106
static const K13
XAP degradation rate.
Definition: PCDIModel.m:232
static const d6
Typical diffusion rate for BAR [m^2/s].
Definition: PCDIModel.m:97
static const K1
Procaspase-8 to Caspase-8 reaction rate.
Definition: PCDIModel.m:124
static const d1
% System Coefficient values Typical diffusion rate for Caspase-8 [m^2/s]
Definition: PCDIModel.m:51
PCDIModel(integer dim,logical inhibitors)
Creates a new instance of the PCDModel.
Definition: PCDIModel.m:334
function useFileTrajectoryData(logical overwrite)
Sets the TrajectoryData and TrajectoryFxiData classes to filesystem based versions.
Definition: ModelData.m:349
static const Km10
Procaspase-3 production rate.
Definition: PCDIModel.m:268
The base class for any KerMor detailed model.
Definition: BaseFullModel.m:18
double dt
The desired time-stepsize for simulations.
Definition: BaseModel.m:291
sampling.BaseSampler Sampler
The sampling strategy the Model uses.
models.BaseFirstOrderSystem System
The actual dynamical system used in the model.
Definition: BaseModel.m:102
static const K3
IAP-Caspase 3 (de)reaction rate.
Definition: PCDIModel.m:142
static const d3
Typical diffusion rate for Pro-Caspase-8 [m^2/s].
Definition: PCDIModel.m:70
static const d4
Typical diffusion rate for Pro-Caspase-3 [m^2/s].
Definition: PCDIModel.m:79
static const Km8
IAP production rate.
Definition: PCDIModel.m:250
An integer value.
static const Km12
BAR production rate.
Definition: PCDIModel.m:286
static const K8
IAP degradation rate.
Definition: PCDIModel.m:187
static const L
Typical cell length (from 1D) [m].
Definition: PCDIModel.m:305
static const K2
Procaspase-3 to Caspase-3 reaction rate.
Definition: PCDIModel.m:133
A boolean value.
WithInhibitors
Flag that detemines if this model uses inhibitors.
Definition: PCDIModel.m:316
A variable number of input arguments.
static const K5
Caspase-8 degradation rate.
Definition: PCDIModel.m:160
function ss = getSteadyStates(n)
double tau
Time scaling factor .
Definition: BaseModel.m:252
solvers.BaseSolver ODESolver
The solver to use for the ODE. Must be an instance of any solvers.BaseSolver subclass.
Definition: BaseModel.m:315
static const K4
IAP-Caspase 3 one-way (de)reaction rate.
Definition: PCDIModel.m:151
Base class inhibitor PCD models.
Definition: PCDIModel.m:19
static const K12
BAR degradation rate.
Definition: PCDIModel.m:223
function plot(varargin)
Overrides standard method and forwards to the system's plot function. (they are 1D and 2D) ...
Definition: PCDIModel.m:397
approx.BaseApprox Approx
The approximation method for the CoreFunction.
static const K10
Caspase-3 degradation rate.
Definition: PCDIModel.m:205
double T
The final timestep up to which to simulate.
Definition: BaseModel.m:271
data.ModelData Data
The full model's data container. Defaults to an empty container.
spacereduction.BaseSpaceReducer SpaceReducer
The reduction algorithm for subspaces.
static const K11
BAR - Procaspase-8 (de)reaction rate.
Definition: PCDIModel.m:214
static const K6
Caspase-3 degradation rate.
Definition: PCDIModel.m:169
function plotState(varargin)
Overrides standard method and forwards to the system's plot function. (they are 1D and 2D) ...
Definition: PCDIModel.m:408
static const d2
Typical diffusion rate for Caspase-3 [m^2/s].
Definition: PCDIModel.m:61
static const tc
% System Rescaling settings Typical concentration [Mol]
Definition: PCDIModel.m:295
static const Km3
YAI to IAP production rate.
Definition: PCDIModel.m:241
static const K9
Pro-Caspase-8 degradation rate.
Definition: PCDIModel.m:196
static const K7
YAI degradation rate.
Definition: PCDIModel.m:178
static const Km9
Procaspase-8 production rate.
Definition: PCDIModel.m:259
static const Km11
XAB degradation rate.
Definition: PCDIModel.m:277
static const d8
Typical diffusion rate for XAB [m^2/s].
Definition: PCDIModel.m:115