Plasma heating by collisionless magnetic reconnection: Analysis and computation