Computer modeling and simulation of electrical power systems