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

 NEW SYNTAX SINCE PW 3.0! The order of ID and rhs has changed.

  pwAddZ(m, rhs, ID, unit, name, ...)
  pwAddZ(m, ID, rhs, unit, name, ...)

 Adds a derived variable to a model.


Arguments for pwAddZ

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

 Alternative function call for interactive specification:
 interactive   bool    If true, the user is prompted to enter the properties
                       into a user interface.



 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, 'totalPStat', 'pStat + 2 * pStatDimer');
  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.

See also