thermal current calculations