The power dissipation p in the diode can be easily calculated when on knows the current I passing i it and the voltage V across it between the anode and cathode.
Simply you can use the expressiveness:
p= IV this s for the dc static power,
For dynamic power, p= Integral v i dt / T Where T is the integration is made on a time T.