A dynamo is a permanent magnet, AC generator, you have one under the fan pulley, the AC needs to be rectified to DC via a rectifier, then controlled via a regulator, (depending on model), or by a combination rectifier/regulator.
Permanent magnet dynamos have low output, so replacement...