As Hopper says, scavenging of the cylinder happens by one piston uncovering the Inlet ports while the other piston has uncovered the Exhaust ports. The air for scavenging comes from a blower, often a Roots type, (If it is, you hear the characteristic howl)
The scavenge blower is mechanically driven, as in engines such as the Commer TS3, or the GM V71 and 92, and other more conventional two strokes. The EMD and GM two strokes are uniflow engines in that the exhaust is controlled by a normal poppet valve.
Small two stroke motor cycle engines are often “loop scavenged”, without a blower, by having the transfer port and exhaust port open at the same time. The exhaust system also has a hand in scavenging, by being tuned to produce a sub atmospheric pressure at the cylinder end, when the exhaust port is open; but this can work against you at speeds other than the optimum for scavenging.
In an opposed piston two stroke, one piston controls the inlet port, whilst the other controls the exhaust port. The combustion chamber is the small space remaining between the two pistons, and the recess within the piston heads, when the pistons are at their closest point.
After a short period with both ports open, the exhaust port is covered by the piston, and the cylinder begins to charge. (In the case of a turbocharged two stroke, such as the EMD railroad engines, the scavenging is made more effective by the boost pressure. As it is in a turbocharged four stroke. This “blow down” effect helps to lower temperatures within the cylinder, to benefit the pistons and liner lubrication)
Then both pistons approach each other to compress the charge air, ready for the fuel to be injected.
As combustion comes to an end, the exhaust port is uncovered by one piston as it descends.
What we are discussing is most probably the mechanically driven exciter for the main generator, which also delivers cooling air to the main generator.
Howard