A tank holds 100 liters of brine with 100 grams of dissolved salt. Brine with 2 grams of salt per liter flows in at 3 liters per minute, and the mixed liquid drains at 1 liter per minute, so the tank slowly fills. How much salt does it hold an hour later, and how salty is the liquid then? This lesson answers such questions with a balance for the amount of salt, computes the concentration from that amount, and uses the same bookkeeping for two tanks that exchange liquid. Throughout, is time in minutes and a prime means .
Key terms
Mass balance
Definition Let be the amount of a substance in a compartment at time . A mass balance states that
where and are the rates at which the substance enters and leaves. If the substance is also produced or used up inside the compartment, for example by a reaction or by decay, that rate is added with its sign. Every term has units of amount per time. A stream with volume flow rate and concentration carries the substance at the rate , so a single inlet contributes .
In plain words When nothing is produced or used up inside, the amount changes at the rate it comes in minus the rate it goes out. Liters per minute times grams per liter gives grams per minute, which is the right unit for the rate of change of an amount in grams.
Example A tank holds 40 liters of water with 120 grams of dissolved salt. Pure water enters at 4 liters per minute and the well-mixed liquid leaves at 4 liters per minute, so the volume stays at 40 liters. The inflow carries no salt, and the outflow carries grams per minute. Hence
with , and the amount is grams. After 10 minutes about grams remain.
Amount and concentration
Definition The amount is the quantity of the substance in the compartment, for example grams of salt. The concentration is the amount per unit volume of liquid,
defined while the volume is positive, and measured in grams per liter when is in grams and in liters. Balances are written for the amount, because amounts add up and are what the streams carry in and out. When the volume changes, the quotient rule gives
so differs from by the term , and the amount and the concentration can even change in opposite directions.
In plain words The amount says how much salt the tank holds, and the concentration says how salty each liter is. Adding pure water leaves the first unchanged and lowers the second.
Example A tank with 100 grams of salt in 100 liters has a concentration of 1 gram per liter. Pouring in 100 liters of pure water keeps the amount at 100 grams but halves the concentration to gram per liter. In the filling tank of the variable volume example below, the amount keeps growing for as long as the tank has room, while the concentration stays below 2 grams per liter.
Perfect mixing
Definition A compartment is perfectly mixed, or well mixed, if the substance is spread uniformly through it at every instant. Then the liquid leaving through an outlet has the current concentration , and the outflow rate in the mass balance is
With this rule the balance becomes one equation for the single unknown . It is a modeling assumption and not a physical law. Layers of different concentration, slow stirring or a delay between inlet and outlet make the outlet concentration differ from , and then the equation describes a different tank.
In plain words Every liter that leaves is a fair sample of what the tank holds at that moment. That is what lets the outflow be computed from the amount and the volume alone.
Example At the start of the opening problem the tank holds 100 grams in 100 liters and drains at 1 liter per minute. Perfect mixing gives an outlet concentration of 1 gram per liter, so salt leaves at 1 gram per minute at that moment. The incoming concentration of 2 grams per liter does not appear in the outflow term. Writing there is a common slip that treats the outgoing liquid as if it had never mixed with the tank.
Variable volume
Definition The liquid volume obeys its own balance . With constant flows
and the model applies only while stays positive and within the capacity of the tank. With perfect mixing, constant flows and a constant incoming concentration, the amount satisfies the linear first-order equation
Its coefficient depends on time whenever the volume changes and liquid drains, and the equation is solved with the integrating factor . Since and , the same assumptions give an equation for the concentration,
So while liquid flows in, the concentration moves toward without ever crossing it, and it stays at if it starts there. While the tank only drains, the concentration stays constant.
In plain words When more liquid enters than leaves, the salt is spread through more and more liquid, so each liter that drains carries less salt than it would from a smaller tank holding the same amount. The outflow coefficient shrinks as the tank fills.
Example In the opening problem , , and , in liters, liters per minute and grams per liter. So and
Since , the integrating factor is , and multiplying gives . Using , the derivative of is , so . At this reads , so and
Substituting back, equals , and . After an hour the volume is 220 liters, the amount is about grams and the concentration about grams per liter, rising from 1 toward 2. Keeping the starting volume in the outflow term would give and only about grams after an hour, because that equation overstates how salty the outflow is.
Coupled compartments
Definition A compartment model splits a system into well-mixed compartments with amounts and volumes , and writes one mass balance for each. A flow from compartment to compartment removes the substance from compartment at the rate and adds it to compartment at the same rate. Each volume follows its own balance and stays constant when as much liquid flows into the compartment as flows out. The balances form a system of first-order equations, coupled because the rate of change of each amount depends on the others. In a closed system, where no substance enters or leaves from outside and none is produced or used up, each transfer term appears once with each sign. The balances then add up to zero, and the total amount is constant.
In plain words Transfers move salt from one tank to another without creating or destroying it. Each transfer is a loss in one balance and the same gain in another, so it cancels when the balances are added.
Example Two well-mixed tanks of 10 liters each exchange liquid at 1 liter per minute in each direction, so both volumes stay at 10 liters, and no salt enters or leaves from outside. Then
Start with and grams. The total has , so . The difference satisfies with , so . Recovering each amount as gives
Both amounts approach 15 grams, where the two concentrations are equal at grams per liter. Equal concentrations mean equal amounts here only because the volumes are equal.
Check yourself
- A 20 liter tank holds pure water. Brine with 4 grams of salt per liter flows in at 2 liters per minute, and the well-mixed liquid flows out at 2 liters per minute. Find the amount of salt and the time at which the concentration reaches 2 grams per liter.
Show the answer
The volume stays at 20 liters. Salt enters at grams per minute and leaves at grams per minute, so with . The difference satisfies and starts at , which gives
The concentration is . It equals 2 when , that is at minutes.
- Suppose the filling tank of the variable volume example holds at most 300 liters, and once it is full the extra liquid spills over the top. For which times does the formula apply, how much salt is in the tank when it becomes full, and which equation describes the amount afterwards?
Show the answer
The formula assumes , which reaches 300 liters at minutes, so it applies for . At that moment
grams, a concentration of about grams per liter. Afterwards the volume stays at 300 liters and liquid leaves at 3 liters per minute in total, 1 through the outlet and 2 over the top. With perfect mixing both streams have the concentration , so for
starting from . The amount now approaches 600 grams, which is again 2 grams per liter. Using the old formula past would overstate the amount, because it describes a tank that never overflows.
- Two well-mixed tanks of 10 liters and 20 liters exchange liquid at 2 liters per minute in each direction, and nothing enters or leaves from outside. Tank 1 starts with 30 grams of salt and tank 2 with none. A classmate expects each tank to end up with 15 grams. Find both amounts as functions of time and their limits.
Show the answer
The volumes stay at 10 and 20 liters, and the balances are
Adding them shows that the total stays at 30 grams, so and
The equilibrium is , and with the solution is , so . The limits are 10 grams and 20 grams, which is 1 gram per liter in each tank. The exchange balances when the concentrations agree, which here is not when the amounts agree. With 15 grams in each tank, the first would hold grams per liter and the second , and the exchange would keep moving salt into the second tank.