# Introduction to Chemical Engineering Processes/Unsteady state energy and mass balances
## What IS accumulation?

Recall that so far in this text it has been assumed that all systems are at steady state, which means that there is no buildup of mass, energy, or other conserved quantities. However, there are many situations, such as whenever operating levels change, that a system will not be at steady state, and mass and energy will be accumulated over time.
The most important thing to remember about accumulation is that it deals with the actual amount of stuff in the system, not any sort of flow rate. If you remember if you're dealing with actual system properties rather than flow rates, it will help keep the terms straight in unsteady-state balances.

### Unsteady-state Mass Balance

Lets begin the derivation of an unsteady-state mass balance with the general balance equation which you should know and love by now:
$In-Out+Generation=Accumulation$
Substituting the terms we usually used for in, out, and generation, we obtain:
$\Sigma {\dot {m}}_{i,in}-\Sigma {\dot {m}}_{i,out}+{\dot {m}}_{i,gen}=Accumulation$
Now we have to come up with a mathematical formulation for the accumulation. Unlike all of the other terms in this equation, which deal with energy flows into the system, the accumulation deals with the amount of energy that is already in the system at a certain point of time, and more specifically how it changes with time.
The rate of accumulation of energy will not be constant unless it is zero (otherwise every reactor in the world would either blow up from excessive mass and energy buildup or would cease operating because all of the reactants and products would be drained out). Recall that if the accumulation reaches zero, the system is at steady state. Most systems tend to move towards a steady state (it is possible to have more than one set of steady state conditions, but it won't be covered here) over long periods of time, as shown below:
Such a system is called self-regulating (or naturally stable). If a system is not self-regulating then special control techniques (see Control systems) must be utilized to force the system into a steady state.
In order to take into account variation in the accumulation rate, we must consider the rate of change over a very small amount of time, so small in fact that it is practically zero, and the accumulation vs. time curve resembles a straight line. The slope of this line at time t is approximately:
$Slope={\mbox{ Accumulation rate at time t}}={\frac {M_{sys,t+\Delta t}-M_{sys,t}}{\Delta t}}$
Therefore we could write the following:
$Accumulation={\frac {M_{sys,t+\Delta t}-M_{sys,t}}{\Delta t}}$
We then write our mass balance by substituting this accumulation into the mass balance above:
${\frac {M_{sys,t+\Delta t}-M_{sys,t}}{\Delta t}}=\Sigma {\dot {m}}_{i,in}-\Sigma {\dot {m}}_{i,out}$
For practical applications, this equation is generally multiplied by $\Delta t$. Then, rather than dealing with flow rates, a new quantity is defined:
$\Delta m_{i}={\dot {m}}_{i}*\Delta t$
This quantity is the total amount of mass that enters the system in a finite amount of time. Substituting this definition into the mass balance yields the following:
$\Sigma \Delta m_{i,in}-\Sigma \Delta m_{i,out}+m_{i,gen}=M_{sys,t+\Delta t}-M_{sys,t}$
Example:
A feed stream with $50{\frac {kg}{h}}$ of water and $1{\frac {kg}{h}}$ of ethanol enters a distillation column. A distillation column generally has two outlet streams called the bottoms and the condensate. At steady state, the condensate is 12% ethanol by mass and the total condensate flowrate is $9{\frac {kg}{h}}$.
One day, the boss calls and says that she needs more production, so you turn up the feed to $60{\frac {kg}{h}}$. Two hours later, the distillation column floods.
a. What was the cause of the flooding?
b. Assuming that the total outlet mass flow rates remained the same throughout the process, what was the total mass accumulation in the column?
c. Describe two methods by which the flow rates may be modified to reach a new steady state. Will the new steady state produce the same outlet concentrations as the old steady state? Explain. (hint: how is the separation effectiveness related to the ratio of the two outlet flowrates? You may need to do some research on this)

### Unsteady-state Energy Balance

Lets start by examining what we have so far, but with the accumulation term (yet to be defined mathematically) added in the right side, since we're not at steady state any more:
$\Sigma ({\frac {1}{2}}{\dot {m}}v^{2}+{\dot {m}}gh+{\dot {H}})_{i,in}-\Sigma ({\frac {1}{2}}{\dot {m}}v^{2}+{\dot {m}}gh+{\dot {H}})_{i,out}+\Sigma {\dot {Q}}_{j}+{\dot {W}}_{s}=Accumulation$
Following the logic from the mass balance, we obtain for the accumulation:
${\frac {E_{sys,t+\Delta t}-E_{sys,t}}{\Delta t}}$
Therefore, we have:
$\Sigma ({\frac {1}{2}}{\dot {m}}v^{2}+{\dot {m}}gh+{\dot {H}})_{i,in}-\Sigma ({\frac {1}{2}}{\dot {m}}v^{2}+{\dot {m}}gh+{\dot {H}})_{i,out}+\Sigma {\dot {Q}}_{j}+{\dot {W}}_{s}={\frac {E_{sys,t+\Delta t}-E_{sys,t}}{\Delta t}}$
Like in the case of the mass balance, we can only consider the total energy change over a total amount of time using this equation. To do this, we multiply the entire equation above by the time change from some starting point to the point of interest.
Now we need some definitions:
* $Q={\dot {Q}}*\Delta t$ is the TOTAL heat flow over the time period.
* $W_{s}={\dot {W}}_{s}*\Delta t$ is the TOTAL shaft work over the time period.
* ${\dot {m}}_{i}*\Delta t=\Delta m_{i}$ is the TOTAL mass flow into (or out of) the system due to stream i during the time period.
* ${\dot {H}}_{i}*\Delta t=H$ is the TOTAL enthalpy carried into (or out of) the system due to stream i during the time period.
The major assumption here is that the enthalpies, heat flow rates, and shaft work on the left hand side of the equals sign must either be constant, or the average value over the whole time period must be used, in order for this equation to be valid. Whether this assumption is valid or not depends on the situation (for example, it depends on whether the process feeding mass to your process is itself at steady state or not).
With these in mind, we multiply by delta t in order to obtain the following, unsteady state energy balance.
$\Sigma ({\frac {1}{2}}\Delta {m}v^{2}+\Delta {m}gh+{H})_{i,in}-\Sigma ({\frac {1}{2}}\Delta {m}v^{2}+\Delta {m}gh+{H})_{i,out}+\Sigma {Q}_{j}+{W}_{s}={E_{sys,t+\Delta t}-E_{sys,t}}$