A numerical method for turbomachinery aeroelasticity