That's a little bit weird -- you output the same information twice. Why not just output it once and if someone wants to have it in different units (kJ instead of J), then let them convert it.

Second -- the units of dissipation should be Watts, not Watt/meter. Miscalculation?