The invention discloses an injection control method and
system for an
ammonia fuel engine, and relates to the field of
ammonia fuel engines. The method comprises the steps that when the
ammonia fuel engine is switched from a pure diesel mode to an ammonia-diesel dual-fuel mode, the
total energy for maintaining operation of the pure diesel mode is determined; according to the ammonia substitution rate and the
total energy under the current working condition, the ammonia
fuel injection amount is determined, and ammonia
fuel injection is conducted according to the ammonia
fuel injection amount; the ammonia concentration output after
waste gas discharged by the ammonia fuel engine is treated by a post-
treatment system is obtained; if the output ammonia concentration is larger than or equal to the first concentration threshold value, the ammonia concentration and the
nitrogen-
oxygen concentration of the input end of a mixer in the aftertreatment
system are obtained; and if the ammonia concentration and the
nitrogen-
oxygen concentration of the input end are not zero and the absolute value of the difference value between the ammonia concentration and the
nitrogen-
oxygen concentration of the input end is smaller than or equal to a second concentration threshold value, the ammonia fuel injection amount is adjusted through a correction factor. According to the invention, ammonia fuel injection can be accurately controlled, and ammonia leakage and excessive emission are prevented.