When it comes to APU, the way it works is quite simple.
It's an engine, so you have to start it, and when it's finally running (needs some seconds), you can use the APU generator to make it produce electricity.
So the behavior is not so complex. Switch ON, wait 5 to 10 seconds, switch APU gen ON, you get power
is it a electrical engine ,or Piston engine ?
I found a photo on internet
http://aviationglossary.com/wp-content/ ... Airbus.jpg
A self-contained generator in an aircraft producing power for ground operation and for starting the engines
this engine looks electrical to me ,so is an electrical engine to generate electricity?