Numerical framework for transcritical real-fluid reacting flow simulations using the flamelet progress variable approach