Residence time

The residence time of a fluid parcel is the total time that the parcel has spent inside a control volume (e.g.: a chemical reactor, a lake, a human body). The residence time of a set of parcels is quantified in terms of the frequency distribution of the residence time in the set, which is known as residence time distribution (RTD), or in terms of its average, known as mean residence time.

Residence time plays an important role in chemistry and especially in environmental science and pharmacology. Under the name lead time or waiting time it plays a central role respectively in supply chain management and queueing theory, where the material that flows is usually discrete instead of continuous.

History
The concept of residence time originated in models of chemical reactors. The first such model was an axial dispersion model by Irving Langmuir in 1908. This received little attention for 45 years; other models were developed such as the plug flow reactor model and the continuous stirred-tank reactor, and the concept of a washout function (representing the response to a sudden change in the input) was introduced. Then, in 1953, Peter Danckwerts resurrected the axial dispersion model and formulated the modern concept of residence time.

Distributions


The time that a particle of fluid has been in a control volume (e.g. a reservoir) is known as its age. In general, each particle has a different age. The frequency of occurrence of the age $$\tau$$ in the set of all the particles that are located inside the control volume at time $$t$$ is quantified by means of the (internal) age distribution $$I$$.

At the moment a particle leaves the control volume, its age is the total time that the particle has spent inside the control volume, which is known as its residence time. The frequency of occurrence of the age $$\tau$$ in the set of all the particles that are leaving the control volume at time $$t$$ is quantified by means of the residence time distribution, also known as exit age distribution $$E$$.

Both distributions are assumed to be positive and to have unitary integral along the age:
 * $$\int_0^\infty E(\tau,t)\,d\tau = \int_0^\infty I(\tau,t)\,d\tau = 1$$

In the case of steady flow, the distributions are assumed to be independent of time, that is $$\partial_tE=\partial_tI=0 \; \forall t$$, which may allow to redefine the distributions as simple functions of the age only.

If the flow is steady (but a generalization to non-steady flow is possible ) and is conservative, then the exit age distribution and the internal age distribution can be related one to the other:
 * $$\left.\begin{aligned}

\frac{\partial I}{\partial t}=\frac{dm}{dt}=0 & \\[4pt] f_\text{in}=f_\text{out}=f & \end{aligned}\ \right\} \implies fE=-m\frac{\partial I}{\partial \tau}$$

Distributions other than $$E$$ and $$I$$ can be usually traced back to them. For example, the fraction of particles leaving the control volume at time $$t$$ with an age greater or equal than $$\tau$$ is quantified by means of the washout function $$W$$, that is the complementary to one of the cumulative exit age distribution:


 * $$W(\tau,t)=1-\int_0^\tau E(s,t)\,ds$$

Mean age and mean residence time
The mean age of all the particles inside the control volume at time t is the first moment of the age distribution:
 * $$ \tau_a(t) = \int_0^\infty \tau I(\tau,t) \,d\tau$$

The mean residence time or mean transit time, that is the mean age of all the particles leaving the control volume at time t, is the first moment of the residence time distribution:
 * $$ \tau_t(t) = \int_0^\infty \tau E(\tau,t) \,d\tau.$$

The mean age and the mean transit time generally have different values, even in stationary conditions:
 * $$\tau_a < \tau_t$$: examples include water in a lake with the inlet and outlet on opposite sides and radioactive material introduced high in the stratosphere by a nuclear bomb test and filtering down to the troposphere.
 * $$\tau_a = \tau_t$$: E and I are exponential distributions. Examples include radioactive decay and first order chemical reactions (where the reaction rate is proportional to the amount of reactant).
 * $$\tau_a > \tau_t$$: most of the particles entering the control volume pass through quickly, but most of the particles contained in the control volume pass through slowly. Examples include water in a lake with the inlet and outlet that are close together and water vapor rising from the ocean surface, which for the most part returns quickly to the ocean, while for the rest is retained in the atmosphere and returns much later in the form of rain.

Turnover time
If the flow is steady and conservative, the mean residence time equals the ratio between the amount of fluid contained in the control volume and the flow rate through it:
 * $$\left.\begin{aligned}

\frac{\partial I}{\partial t}=\frac{dm}{dt}=0 & \\ f_\text{in}=f_\text{out}=f & \end{aligned}\ \right\} \implies \tau_t = \frac{m}{f}$$ This ratio is commonly known as the turnover time or flushing time. When applied to liquids, it is also known as the hydraulic retention time (HRT), hydraulic residence time or hydraulic detention time. In the field of chemical engineering this is also known as space time.

The residence time of a specific compound in a mixture equals the turnover time (that of the compound, as well as that of the mixture) only if the compound does not take part in any chemical reaction (otherwise its flow is not conservative) and its concentration is uniform.

Although the equivalence between the residence time and the ratio $$m/f$$ does not hold if the flow is not stationary or it is not conservative, it does hold on average if the flow is steady and conservative on average, and not necessarily at any instant. Under such conditions, which are common in queueing theory and supply chain management, the relation is known as Little's Law.

Simple flow models
Design equations are equations relating the space time to the fractional conversion and other properties of the reactor. Different design equations have been derived for different types of the reactor and depending on the reactor the equation more or less resemble that describing the average residence time. Often design equations are used to minimize the reactor volume or volumetric flow rate required to operate a reactor.

Plug flow reactor
In an ideal plug flow reactor (PFR) the fluid particles leave in the same order they arrived, not mixing with those in front and behind. Therefore, the particles entering at time t will exit at time t + T, all spending a time T inside the reactor. The residence time distribution will be then a Dirac delta function delayed by T:
 * $$E(\tau) = \delta(\tau-T)\,$$

The mean is T and the variance is zero.

The RTD of a real reactor deviates from that of an ideal reactor, depending on the hydrodynamics within the vessel. A non-zero variance indicates that there is some dispersion along the path of the fluid, which may be attributed to turbulence, a non-uniform velocity profile, or diffusion. If the mean of the distribution is earlier than the expected time T it indicates that there is stagnant fluid within the vessel. If the RTD curve shows more than one main peak it may indicate channeling, parallel paths to the exit, or strong internal circulation.

In PFRs, reactants enter the reactor at one end and react as they move down the reactor. Consequently, the reaction rate is dependent on the concentrations which vary along the reactor requiring the inverse of the reaction rate to be integrated over the fractional conversion.


 * $$ \tau = C_{AO} \int \frac{1}{(-r_A)}\,df_A$$

Batch reactor
Batch reactors are reactors in which the reactants are put in the reactor at time 0 and react until the reaction is stopped. Consequently, the space time is the same as the average residence time in a batch reactor.


 * $$ \tau = N_{AO} \int \frac{1}{(-r_A)V_R}\,df_A $$

Continuous stirred-tank reactor
In an ideal continuous stirred-tank reactor (CSTR), the flow at the inlet is completely and instantly mixed into the bulk of the reactor. The reactor and the outlet fluid have identical, homogeneous compositions at all times. The residence time distribution is exponential:
 * $$E(\tau) = \frac{1}{T} \exp\left(\frac{-\tau}{T}\right).$$

Where; the mean is T and the variance is 1. A notable difference from the plug flow reactor is that material introduced into the system will never completely leave it.

In reality, it is impossible to obtain such rapid mixing, as there is necessarily a delay between any molecule passing through the inlet and making its way to the outlet, and hence the RTD of a real reactor will deviate from the ideal exponential decay, especially in the case of large reactors. For example, there will be some finite delay before E reaches its maximum value and the length of the delay will reflect the rate of mass transfer within the reactor. Just as was noted for a plug-flow reactor, an early mean will indicate some stagnant fluid within the vessel, while the presence of multiple peaks could indicate channeling, parallel paths to the exit, or strong internal circulation. Short-circuiting fluid within the reactor would appear in an RTD curve as a small pulse of concentrated tracer that reaches the outlet shortly after injection. Reactants continuously enter and leave a tank where they are mixed. Consequently, the reaction proceeds at a rate dependent on the outlet concentration:
 * $$ \tau = \frac{C_{A\text{ in}}- C_{A\text{ out}}}{-r_A}\ $$

Laminar flow reactor
In a laminar flow reactor, the fluid flows through a long tube or parallel plate reactor and the flow is in layers parallel to the walls of the tube. The velocity of the flow is a parabolic function of radius. In the absence of molecular diffusion, the RTD is
 * $$E(\tau)=\begin{cases}

0 & \tau \leq T/2\\[5pt] \dfrac{T^2}{2 \tau^3} & \tau > T/2. \end{cases}$$ The variance is infinite. In a real reactor, diffusion will eventually mix the layers so that the tail of the RTD becomes exponential and the variance finite; but laminar flow reactors can have variance greater than 1, the maximum for CTSD reactors.

Recycle reactors
Recycle reactors are PFRs with a recycle loop. Consequently, they behave like a hybrid between PFRs and CSTRs.


 * $$ \tau = C_{AO}(R+1) \int \frac{1}{(-r_A)}\,df_A $$

In all of these equations :$$ -r_A $$ is the consumption rate of A, a reactant. This is equal to the rate expression A is involved in. The rate expression is often related to the fractional conversion both through the consumption of A and through any k changes through temperature changes that are dependent on conversion.

Variable volume reactions
In some reactions the reactants and the products have significantly different densities. Consequently, as the reaction proceeds the volume of the reaction changes. This variable volume adds terms to the design equations. Taking this volume change into consideration the volume of the reaction becomes:


 * $$ V_R = V_{R\text{ initial}}(1-\delta_A f_A) $$

Plugging this into the design equations results in the following equations:

Batch

 * $$ \tau = N_{AO} \int \frac{1}{(-r_A)V_R(1-\delta_A f_A)}\,df_A $$

Plug flow reactors

 * $$ \tau = C_{AO} \int \frac{1}{(-r_A)(1-\delta_A f_A)}\,df_A$$

Continuous stirred-tank reactors

 * $$ \tau = \frac{C_{A\text{ in}}- C_{A\text{ out}}}{-r_{AF}(1-\delta_A f_A)}\ $$

Generally, when reactions take place in the liquid and solid phases the change in volume due to reaction is not significant enough that it needs to be taken into account. Reactions in the gas phase often have significant changes in volume and in these cases one should use these modified equations.

Determining the RTD experimentally
Residence time distributions are measured by introducing a non-reactive tracer into the system at the inlet. Its input concentration is changed according to a known function and the output concentration measured. The tracer should not modify the physical characteristics of the fluid (equal density, equal viscosity) or the hydrodynamic conditions and it should be easily detectable. In general, the change in tracer concentration will either be a pulse or a step. Other functions are possible, but they require more calculations to deconvolute the RTD curve.

Pulse experiments
This method required the introduction of a very small volume of concentrated tracer at the inlet of the reactor, such that it approaches the Dirac delta function. Although an infinitely short injection cannot be produced, it can be made much smaller than the mean residence time of the vessel. If a mass of tracer, $$M$$, is introduced into a vessel of volume $$V$$ and an expected residence time of $$\tau$$, the resulting curve of $$C(t)$$ can be transformed into a dimensionless residence time distribution curve by the following relation:


 * $$E(t) = \frac{C(t)}{\int_0^\infty C(t)\, dt}$$

Step experiments
The concentration of tracer in a step experiment at the reactor inlet changes abruptly from 0 to $$C_0$$. The concentration of tracer at the outlet is measured and normalized to the concentration $$C_0$$ to obtain the non-dimensional curve $$F(t)$$ which goes from 0 to 1:
 * $$F(t) = \frac {C(t)}{C_0}.$$

The step- and pulse-responses of a reactor are related by the following:
 * $$F(t) = \int_0^t E(t')\, dt' \qquad E(t) = \frac {dF(t)}{dt}$$

A step experiment is often easier to perform than a pulse experiment, but it tends to smooth over some of the details that a pulse response could show. It is easy to numerically integrate an experimental pulse response to obtain a very high-quality estimate of the step response, but the reverse is not the case because any noise in the concentration measurement will be amplified by numeric differentiation.

Chemical reactors
In chemical reactors, the goal is to make components react with a high yield. In a homogeneous, first-order reaction, the probability that an atom or molecule will react depends only on its residence time:
 * $$P_\mathrm{R} = \exp\left(-k t\right)$$

for a rate constant $$k$$. Given a RTD, the average probability is equal to the ratio of the concentration $$a$$ of the component before and after:
 * $$\overline{P_\mathrm{R}} = a_\mathrm{out}/a_\mathrm{in} = \int_0^\infty \exp\left(-k t\right)E(t) \, dt.$$

If the reaction is more complicated, then the output is not uniquely determined by the RTD. It also depends on the degree of micromixing, the mixing between molecules that entered at different times. If there is no mixing, the system is said to be completely segregated, and the output can be given in the form
 * $$a_\mathrm{out} = \int_0^\infty a_\mathrm{batch}(t)E(t) \, dt.$$

For given RTD, there is an upper limit on the amount of mixing that can occur, called the maximum mixedness, and this determines the achievable yield. A continuous stirred-tank reactor can be anywhere in the spectrum between completely segregated and perfect mixing.

The RTD of chemical reactors can be obtained by CFD simulations. The very same procedure that is performed in experiments can be followed. A pulse of inert tracer particles (during a very short time) is injected into the reactor. The linear motion of tracer particles is governed by Newton's second law of motion and a one-way coupling is stablished between fluid and tracers. In one-way coupling, fluid affects tracer motion by drag force while tracer does not affect fluid. The size and density of tracers are chosen so small that the time constant of tracers becomes very small. In this way, tracer particles exactly follow the same path as the fluid does.

Groundwater flow
Hydraulic residence time (HRT) is an important factor in the transport of environmental toxins or other chemicals through groundwater. The amount of time that a pollutant spends traveling through a delineated subsurface space is related to the saturation and the hydraulic conductivity of the soil or rock. Porosity is another significant contributing factor to the mobility of water through the ground (e.g. toward the water table). The intersection between pore density and size determines the degree or magnitude of the flow rate through the media. This idea can be illustrated by a comparison of the ways water moves through clay versus gravel. The retention time through a specified vertical distance in clay will be longer than through the same distance in gravel, even though they are both characterized as high porosity materials. This is because the pore sizes are much larger in gravel media than in clay, and so there is less hydrostatic tension working against the subsurface pressure gradient and gravity.

Groundwater flow is important parameter for consideration in the design of waste rock basins for mining operations. Waste rock is heterogeneous material with particles varying from boulders to clay-sized particles, and it contains sulfidic pollutants which must be controlled such that they do not compromise the quality of the water table and also so the runoff does not create environmental problems in the surrounding areas. Aquitards are clay zones that can have such a degree of impermeability that they partially or completely retard water flow. These clay lenses can slow or stop seepage into the water table, although if an aquitard is fractured and contaminated then it can become a long-term source of groundwater contamination due to its low permeability and high HRT.

Water treatment
Primary treatment for wastewater or drinking water includes settling in a sedimentation chamber to remove as much of the solid matter as possible before applying additional treatments. The amount removed is controlled by the hydraulic residence time (HRT). When water flows through a volume at a slower rate, less energy is available to keep solid particles entrained in the stream and there is more time for them to settle to the bottom. Typical HRTs for sedimentation basins are around two hours, although some groups recommend longer times to remove micropollutants such as pharmaceuticals and hormones.

Disinfection is the last step in the tertiary treatment of wastewater or drinking water. The types of pathogens that occur in untreated water include those that are easily killed like bacteria and viruses, and those that are more robust such as protozoa and cysts. The disinfection chamber must have a long enough HRT to kill or deactivate all of them.

Surface science
Atoms and molecules of gas or liquid can be trapped on a solid surface in a process called adsorption. This is an exothermic process involving a release of heat, and heating the surface increases the probability that an atom will escape within a given time. At a given temperature $$T$$, the residence time of an adsorbed atom is given by
 * $$\tau=\tau_0 \exp\left(\frac{E_\mathrm{a}}{R T}\right),$$

where $$R$$ is the gas constant, $$E_\mathrm{a}$$ is an activation energy, and $$\tau_0$$ is a prefactor that is correlated with the vibration times of the surface atoms (generally of the order of $$10^{-12}$$ seconds).

In vacuum technology, the residence time of gases on the surfaces of a vacuum chamber can determine the pressure due to outgassing. If the chamber can be heated, the above equation shows that the gases can be "baked out"; but if not, then surfaces with a low residence time are needed to achieve ultra-high vacuums.

Environmental
In environmental terms, the residence time definition is adapted to fit with ground water, the atmosphere, glaciers, lakes, streams, and oceans. More specifically it is the time during which water remains within an aquifer, lake, river, or other water body before continuing around the hydrological cycle. The time involved may vary from days for shallow gravel aquifers to millions of years for deep aquifers with very low values for hydraulic conductivity. Residence times of water in rivers are a few days, while in large lakes residence time ranges up to several decades. Residence times of continental ice sheets is hundreds of thousands of years, of small glaciers a few decades.

Ground water residence time applications are useful for determining the amount of time it will take for a pollutant to reach and contaminate a ground water drinking water source and at what concentration it will arrive. This can also work to the opposite effect to determine how long until a ground water source becomes uncontaminated via inflow, outflow, and volume. The residence time of lakes and streams is important as well to determine the concentration of pollutants in a lake and how this may affect the local population and marine life.

Hydrology, the study of water, discusses the water budget in terms of residence time. The amount of time that water spends in each different stage of life (glacier, atmosphere, ocean, lake, stream, river), is used to show the relation of all of the water on the earth and how it relates in its different forms.

Pharmacology
A large class of drugs are enzyme inhibitors that bind to enzymes in the body and inhibit their activity. In this case it is the drug-target residence time (the length of time the drug stays bound to the target) that is of interest. Drugs with long residence times are desirable because they remain effective for longer and therefore can be used in lower doses. This residence time is determined by the kinetics of the interaction, such as how complementary the shape and charges of the target and drug are and whether outside solvent molecules are kept out of the binding site (thereby preventing them from breaking any bonds formed), and is proportional to the half-life of the chemical dissociation. One way to measure the residence time is in a preincubation-dilution experiment where a target enzyme is incubated with the inhibitor, allowed to approach equilibrium, then rapidly diluted. The amount of product is measured and compared to a control in which no inhibitor is added.

Residence time can also refer to the amount of time that a drug spends in the part of the body where it needs to be absorbed. The longer the residence time, the more of it can be absorbed. If the drug is delivered in an oral form and destined for the upper intestines, it usually moves with food and its residence time is roughly that of the food. This generally allows 3 to 8 hours for absorption. If the drug is delivered through a mucous membrane in the mouth, the residence time is short because saliva washes it away. Strategies to increase this residence time include bioadhesive polymers, gums, lozenges and dry powders.

Biochemical
In size-exclusion chromatography, the residence time of a molecule is related to its volume, which is roughly proportional to its molecular weight. Residence times also affect the performance of continuous fermentors.

Biofuel cells utilize the metabolic processes of anodophiles (electronegative bacteria) to convert chemical energy from organic matter into electricity. A biofuel cell mechanism consists of an anode and a cathode that are separated by an internal proton exchange membrane (PEM) and connected in an external circuit with an external load. Anodophiles grow on the anode and consume biodegradable organic molecules to produce electrons, protons, and carbon dioxide gas, and as the electrons travel through the circuit they feed the external load. The HRT for this application is the rate at which the feed molecules are passed through the anodic chamber. This can be quantified by dividing the volume of the anodic chamber by the rate at which the feed solution is passed into the chamber. The hydraulic residence time (HRT) affects the substrate loading rate of the microorganisms that the anodophiles consume, which affects the electrical output. Longer HRTs reduce substrate loading in the anodic chamber which can lead to reduced anodophile population and performance when there is a deficiency of nutrients. Shorter HRTs support the development of non-exoelectrogenous bacteria which can reduce the Coulombic efficiency electrochemical performance of the fuel cell if the anodophiles must compete for resources or if they do not have ample time to effectively degrade nutrients.