Coupled thermal-fluid analysis with flowpath-cavity interaction in a gas turbine engine