Added the possibility of not indicating stall angles for StallCheck
@@ -80,6 +80,7 @@ class StallCheck(BaseSolver):
for i_elem in range(self.data.structure.num_elem):
for i_local_node in range(self.data.structure.num_node_elem):
airfoil_id = self.data.aero.aero_dict['airfoil_distribution'][i_elem, i_local_node]
+ if self.settings['airfoil_stall_angles']:
i_global_node = self.data.structure.connectivities[i_elem, i_local_node]
for i_dict in self.data.aero.struct2aero_mapping[i_global_node]:
i_surf = i_dict['i_surf']
@@ -91,7 +92,7 @@ class StallCheck(BaseSolver):
if i_n == tstep.dimensions[i_surf][1]:
continue
- limits = self.settings['stall_angles'][str(airfoil_id)]
+ limits = self.settings['airfoil_stall_angles'][str(airfoil_id)]
if tstep.postproc_cell['incidence_angle'][i_surf][0, i_n] < float(limits[0]):
stalled_panels = True
stalled_surfs[i_surf] += tstep.postproc_cell['incidence_angle'][i_surf].shape[1]
