Tailoring the first law of thermodynamics for convective flows | Synapse