An Investigation Of The Magnetic Field Structure Of Flaring Solar Active Regions Using Global Magnetic Field Models And Automated Techniques