massabalance
Mass balance is a bookkeeping method based on the law of conservation of mass. It is applied to any system defined by a control volume, where material can enter, leave, accumulate, or be produced or consumed inside.
Let M denote the total mass within the control volume. The rate of change of M is
The control-volume mass balance is widely used in chemical engineering, environmental modeling, hydrology, and geosciences. It
Mass balance calculations can track the total mass of all phases together or follow individual species, depending