pwAddZ


 pwAddZ(m, rhs, ID, unit, name, description, designerProps, classname)

 Adds a derived variable to a model.

 

Arguments for pwAddZ

 m             struct  Model struct
 rhs           string  Right hand side of the derived variable
 ID            ID
 unit          string
 name          string  descriptive name
 description   string
 designerProps internal use only
 classname     string

 

Description

 PottersWheel supports independent display and analysis of all dynamic
 variables and all observables. Beyond, it is sometimes useful
 to focus on a subset of dynamic variables or on interesting
 function of variables, especially while working with large models.
 For this, derived variables can be defined depending - similar as
 observables - on the dynamic variables.

 If no ID is given, the right hand side is used as ID. Example:

  m = pwAddZ(m, 'pStat + 2 * pStatDimer', 'totalPStat');
  m = pwAddZ(m, 'Stat');

 The same abbreviations like only_pStat as for observables y
 can be used.

 The rhs may also contain IDs of reactions. Then, the time dependent
 reaction rate is used, i.e. the flux.

 

TODO

 Keywords Explode(...) and Flux(..., ...) exist as shortcuts.
 TODO: Description.

See also

pwAddY
pwAddR