Coupling codes for nozzle flow modeling in diesel injection system