Voltage regulation of synchronous machine by zero power factor method or potier triangle method