Analysis of flame-flame interactions in premixed hydrocarbon and hydrogen flames