In a Diesel engine, the function of a fuel injector is to ...
mix the fuel and air
ignite the air-fuel mixture
provide flame front for ignition
spray atomized fuel in the cylinder