power system functions

power system functions