Sentence:  The <WSD>energy</WSD> for any isothermal work done by the perfect gas must come as thermal energy from its surroundings . 
Meaning of the word marked with <WSD> tags:  (physics) a thermodynamic quantity equivalent to the capacity of a physical system to do work; the units of energy are joules or ergs