A numerical algorithm for the aerodynamic identification of structures