The Islamic Republic is aiming to drive up the cost of the war for the US president – American casualties, energy costs, inflation – to persuade him to declare victory and go home.