Mass and energy balance