Chemical Concentration Model in a Pumping Lung

This page allows you to iterate a model, given below, for a chemical's concentration, ct, in a pumping lung for a total of N steps using selected values of the ambient concentration, k, of the chemical in the environment. The q variable is a number between 0 and 1 that can be interpreted as the ratio of the volume of a breath to the total volume of the lung or, more simply, the ratio of air exchanged.

k =
q =
N =
co =

ct+1 = (1 - q) ct + q k