cleaner implementation of heat transfer eqns