grammatical structure
hello guys
I need a help with finding the grammatical structure used in the following sentence.
In 1980, thermal power stations were the main source of electricity in France, generating around 120 terawatt hours of power.
what is the function of " generating" here?

