Physical conditions for stop

Description

Set the physical conditions that stop the reaction such as: temperature above limits, chemical concentrations close to zero, conversion close to unity, etc.

Usage

1
StopConditions(t, y, pars,...)

Arguments

t

integration time (min)

y

vector of material and energy balance, as supplied by the function prepare

pars

vector of chemical-physical parameters, as supplied by the function prepare

...

further functions to be passed through

Value

Return a vector of the residual for each constrain

Author(s)

Gianmarco Polotti