Dynamic modelling of subgrid scalar dissipation rate in premixed and partially premixed flames with differential filter