Rates of Energy Gain and Loss in the Circumstellar Envelopes of Be Stars