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
PCDModel.m
Go to the documentation of this file.
1 namespace models{
2 namespace pcd{
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 PCDModel
20  :public models.BaseFullModel {
44  public: /* ( Constant ) */
45 
46  static const d1 = 1.8e-11;
55  static const d2 = 1.86e-11;
64  static const d3 = 1.89e-11;
73  static const d4 = 2.27e-11;
82  static const L = 1e-5;
91  static const n = 2;
103  static const Kc1_real = 0.08;
114  static const Kc2_real = 0.08;
124  static const Kd1_real = .0005;
134  static const Kd2_real = .0005;
144  static const Kd3_real = .0005;
154  static const Kd4_real = .0005;
164  static const Kp1_real = 0.0001;
174  static const Kp2_real = 0.0001;
184  static const xa0 = 1e-7;
194  static const ya0 = 1e-7;
203  static const xi0 = 1e-7;
212  static const yi0 = 1e-7;
221  static const SteadyStates = "[[0, 9.8153e-4, 0.1930]*models.pcd.PCDModel.xa0 \
222  [0, 3.0824e-5, 0.1713]*models.pcd.PCDModel.ya0 \
223  [.2, 0.1990, 0.0070]*models.pcd.PCDModel.xi0 \
224  [.2, 0.2, 0.0287]*models.pcd.PCDModel.yi0]";
239  public: /* ( Dependent ) */
240 
242 
243 
244  public: /* ( Dependent ) */
245 
246  PCDModel(dim) {
247 
248  if nargin == 0
249  dim = 1;
250  end
251 
252  this.T= 3600; /* [s] */
253 
254  this.dt= 5; /* [s]
255  * time scaling */
256 
257  this.tau= this.L^2/this.d1;
258 
259  if dim > 10000
261  end
262 
263 /* s = sampling.RandomSampler;
264  * s.Samples = 10; */
265  s = sampling.GridSampler;
266  this.Sampler= s;
267 
268 /* this.ODESolver = solvers.MLWrapper(@ode23);
269  * this.ODESolver = solvers.ExplEuler(this.dt);
270  * o = solvers.MLode15i;
271  * o.AbsTol = 1e-6;
272  * o.RelTol = 1e-5;
273  * o.MaxStep = [];
274  * this.ODESolver = o; */
275  this.ODESolver= solvers.SemiImplicitEuler(this);
276 
277  switch dim
278  case 3
279  error(" Fixme! Currently not working :-( ");
280  s = models.pcd.PCDSystem3D(this);
281  this.Name= " Programmed Cell Death 3D ";
282  case 2
283  s = models.pcd.PCDSystem2D(this);
284  this.Name= " Programmed Cell Death 2D ";
285  otherwise
286  s = models.pcd.PCDSystem1D(this);
287  this.Name= " Programmed Cell Death 1D ";
288  end
289  s.MaxTimestep= this.dt;
290  this.System= s;
291 
292  /* Space reduction setup */
293  sr = spacereduction.PODGreedy;
294  sr.Eps= 1e-5;
295  this.SpaceReducer= sr;
296 
297  this.Approx= [];
298  }
307  function plot(varargin) {
308  this.System.plot(this, varargin[:]);
309  }
318  function plotState(varargin) {
319  this.System.plotState(this, varargin[:]);
320  }
330 #if 0 //mtoc++: 'get.Dimension'
331 function value = Dimension() {
332  value = this.System.Dims;
333  }
334 
335 #endif
336 
343 };
344 }
345 }
346 
347 
348 
static const ya0
Typical Caspase-3 concentration [M].
Definition: PCDModel.m:194
char Name
The name of the Model.
Definition: BaseModel.m:117
static const d3
Typical diffusion rate for Pro-Caspase-8 [m^2/s].
Definition: PCDModel.m:64
PCDModel(dim)
Creates a new instance of the PCDModel.
Definition: PCDModel.m:246
static const Kc1_real
% Coefficient values Procaspase-8 to Caspase-8 reaction rate Empiric value from [1] in daub's milesto...
Definition: PCDModel.m:103
function useFileTrajectoryData(logical overwrite)
Sets the TrajectoryData and TrajectoryFxiData classes to filesystem based versions.
Definition: ModelData.m:349
static const L
Typical cell length (from 1D) [m].
Definition: PCDModel.m:82
static const SteadyStates
Steady state configurations First row: life state Second row: unstable state Third row: death state (...
Definition: PCDModel.m:221
static const d4
Typical diffusion rate for Pro-Caspase-3 [m^2/s].
Definition: PCDModel.m:73
function plot(varargin)
Overrides standard method and forwards to the system's plot function. (they are 1D and 2D) ...
Definition: PCDModel.m:307
static const Kc2_real
Procaspase-3 to Caspase-3 reaction rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:114
static const d2
Typical diffusion rate for Caspase-3 [m^2/s].
Definition: PCDModel.m:55
The base class for any KerMor detailed model.
Definition: BaseFullModel.m:18
Base class for both 1D and 2D pcd models.
Definition: PCDModel.m:19
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 xa0
% System Rescaling settings Typical Caspase-8 concentration [M]
Definition: PCDModel.m:184
static const Kd3_real
Pro-Caspase-8 degradation rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:144
static const Kd2_real
Caspase-3 degradation rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:134
static const Kd1_real
Caspase-8 degradation rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:124
static const Kp2_real
Procaspase-3 production rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:174
static const n
Exponent in ya,yi term (necessary casp-3 for casp-8 activation)
Definition: PCDModel.m:91
A variable number of input arguments.
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
function plotState(varargin)
Overrides standard method and forwards to the system's plot function. (they are 1D and 2D) ...
Definition: PCDModel.m:318
approx.BaseApprox Approx
The approximation method for the CoreFunction.
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.
static const Kd4_real
Caspase-3 degradation rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:154
static const xi0
Typical Procaspase-8 concentration [M].
Definition: PCDModel.m:203
spacereduction.BaseSpaceReducer SpaceReducer
The reduction algorithm for subspaces.
static const Kp1_real
Procaspase-8 production rate Empiric value from [1] in daub's milestone.
Definition: PCDModel.m:164
static const yi0
Typical Procaspase-3 concentration [M].
Definition: PCDModel.m:212
static const d1
Typical diffusion rate for Caspase-8 [m^2/s].
Definition: PCDModel.m:46