From dadee6456946b7520eae0762bdd34ef9cc35e176 Mon Sep 17 00:00:00 2001 From: kccwing <60852830+kccwing@users.noreply.github.com> Date: Thu, 28 Sep 2023 08:13:57 -0400 Subject: [PATCH] fix polars concatenation in assembly of aeroinformation issue with using overload of + operator - if polars of the same length, the result would be a summed array rather than concatenation --- sharpy/utils/generate_cases.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sharpy/utils/generate_cases.py b/sharpy/utils/generate_cases.py index e2b489fe2..757a25173 100644 --- a/sharpy/utils/generate_cases.py +++ b/sharpy/utils/generate_cases.py @@ -1342,7 +1342,7 @@ def assembly_aerodynamics(self, *args): if self.m_distribution.lower() == 'user_defined': self.user_defined_m_distribution = self.user_defined_m_distribution + aerodynamics_to_add.user_defined_m_distribution if self.polars is not None: - self.polars = self.polars + aerodynamics_to_add.polars + self.polars = np.array([self.polars, aerodynamics_to_add.polars]) total_num_airfoils += len(aerodynamics_to_add.airfoils[:, 0, 0]) # total_num_surfaces += len(aerodynamics_to_add.surface_m) total_num_surfaces += np.sum(aerodynamics_to_add.surface_m != -1)