A compartment is a block that acts as an integrator of quantities of contaminants in a model. The quantity held within this block is calculated with a differential equation, where the input and output rates are defined by the transfer blocks.