Generation of useful energy through direct and controlled combustion