EART60061 Chap.9 Compartmental Models and Numerical Verification
Compartmental Models and Numerical Verification
Compartmental Models represent a continuous system as boxes within which variation is negligible compared with variation between them. The soil carbon exercise uses two compartments, litter and deeper soil, exchanging carbon with an outside world large enough that its inputs stay constant.
Fluxes between compartments are assumed donor controlled and linear, equal to a transfer coefficient times the donor store, and the storage of each compartment changes by inputs minus outputs.
Written as recurrence relationships the equations are solved step by step in a spreadsheet, so the solution must be verified, by halving the time step and by comparing with the analytical solution at equilibrium, where rates of change are zero. The outputs show which soils are gaining or losing carbon and how long they take to reach equilibrium.
The same technique is used to follow radionuclides and heavy metals through waste sites, organisms and the human body, so recognising its abstractions is a transferable skill. Worked steps by hand make the spreadsheet logic transparent before the recurrence is copied down for a century or more.
What this chapter covers
- 01
Defining compartments and boundaries
- 02
Flux notation and the outside world
- 03
Donor-controlled linear fluxes
- 04
Storage equations as recurrence relationships
- 05
Time-step verification
- 06
Equilibrium as a boundary condition
- 07
Sources, sinks and residence time
- 08
Uses of compartment models beyond soil carbon
Worked example · free
Step a two-compartment carbon model and find its equilibrium
- 2X1 after one year = 3,000 + 500 - (0.08 + 0.02) times 3,000 = 3,200.
- 2X2 after one year = 40,000 + 200 + 0.02 times 3,000 - 0.005 times 40,000 = 40,060.
- 2At equilibrium X1 = 500 / 0.10 = 5,000 and X2 = (200 + 0.02 times 5,000) / 0.005 = 60,000.
Key terms
- Compartment
- A part of a system treated as internally uniform, because variation inside it is small compared with variation outside it.
- Residence time
- The reciprocal of a compartment's total transfer coefficient, the typical time material stays there.
- Boundary condition
- A special condition, such as equilibrium, under which otherwise insoluble differential equations can be solved.
- Recurrence relationship
- An equation that computes the next value of a quantity from its current value, repeated step after step.
- Equilibrium store
- The amount held in a compartment when inputs exactly balance outputs, so the rate of change is zero.
Compartmental Models and Numerical Verification FAQ
What does donor controlled mean for a flux?
The flux depends only on the amount in the compartment it leaves, and in the simplest linear form equals a transfer coefficient multiplied by that store. The receiving compartment has no influence, which is an assumption that could be relaxed if the model failed to validate.
How is a compartmental model verified?
Two ways are shown. Rerun with a smaller time step and check whether the answer changes by an amount that matters, and run until the stores stop changing and compare them with the analytical equilibrium found by setting both rates of change to zero.
Why is a transfer coefficient above one per time step a problem?
With a one-year step, a coefficient above one asks the compartment to lose more carbon in a step than it holds, which is only possible if carbon is created. The exercise excludes such a dataset as conceptually incorrect, and the check applies to any recurrence model.
Why are fluxes from the outside world constant?
Compartment 0 represents everything outside the modelled system and is assumed so large that drawing material from it does not change its concentration. Its fluxes into the compartments therefore stay constant, while fluxes between compartments change as the stores change.
How small does the time step need to be?
Small enough that halving it again makes no difference that matters for the purpose and the accuracy of the input data. In the course demonstration a one-year and a half-year step differed by under 1%, so the extra calculations brought no useful benefit.
Exam move
Draw the compartments and arrows before writing any equation, then write each storage equation as inputs minus outputs. Practise one recurrence step by hand and the equilibrium solution for several parameter sets. In the spreadsheet, rerun with half the time step and write the verification sentence, including the size of the difference and why it is acceptable.
Finally, test the coefficient check: multiply each transfer coefficient by the time step and confirm the product is below one before trusting the run.