Yanmar used Hitachi alternators on YM1700 and YM2000.
AutoZone stocks rebuilt alternator # 14105, specified for 1970-1973 Datsun (Nissan) model 510 sedan. (without A/C).
It is an Hitachi alternator that looks identical to the Yanmar version and mounts in the same space. There are some trivial differences:
You need to swap over your pulley shield.
35 amp capacity in place of 15 amp.
price only $39.99. (plus $15 refundable core charge).
I've used this alternator for a year, and it works fine.
The A/C version alternator for Datsun 510 has 50 amp output but is a little larger diameter, so that might require a longer adjustment arm and belt. It might be preferable if you want to power an inverter.
Also, the $22 Wells regulator that AutoZone offers for Datsun 1970 - 1973 is a direct replacement for the original Yanmar one - same connectors and mounting, and they test identical on Autozone's test rig.
I suggest start by taking in your alternator and regulator together to be tested.