how it works an electrical system  in an aircraft?

An aircraft electrical system is a system of components and systems used in an aircraft to generate, store, distribute, and utilize electrical energy. Aircraft systems can include engines, avionics and navigation, lighting and accessories, components such as starters and alternators, and even crew comfort, among many other things. The electricity generated by aircraft systems allows for smoother flight and more efficient operation.

The primary source of electricity in an aircraft is the engine. The engine employs an alternator, a generator that produces electricity as the engine runs. The alternator converts the mechanical energy (rotation) of the engine into electrical energy, generating an electromotive force, or voltage. This voltage allows the flow of electrical current, which is then directed through cables to devices needed in the day-to-day operation of the aircraft.

When electricity is not in use, it is stored in the airplane’s battery. A battery works like a dam, storing electricity until it is needed. This stored electricity is then used to power the aircraft’s electronic systems when the engine is not running. It is also used to start the engine and to turn on lights and other components on the plane.
