In accordance with the energy conservation principle, this amount of heat should match the bulk effect of various heat sources and sinks in the volume such that
where QA–QF represents the amounts of heat that fluxed through the respective boundaries during the period of time t. These can be computed according to the