Hi Ben,
The model assumes a 3-phase system where nodes (for each bus) are on phases a, b and c. That's the reason behind the *3 multiplication.
If you have modified the network (e.g., to a 4-wire or a single-phase system), you will need to modify those functions accordingly.
Regards,
V