From 0a79ca4fc0616e362d5b13ecf7aa8fc7e4ce5b72 Mon Sep 17 00:00:00 2001 From: kccwing <60852830+kccwing@users.noreply.github.com> Date: Mon, 9 Dec 2024 04:31:10 +0000 Subject: [PATCH] Update body and wake FoR multiplication silly mistake really - position in Gframe of multibody is offset by cga_0 not cga(t) --- sharpy/postproc/aerogridplot.py | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/sharpy/postproc/aerogridplot.py b/sharpy/postproc/aerogridplot.py index a66fc86f5..88a7f2b97 100644 --- a/sharpy/postproc/aerogridplot.py +++ b/sharpy/postproc/aerogridplot.py @@ -208,7 +208,7 @@ def plot_body(self): # cga = algebra.euler2rot([0, self.data.trimmed_values[0], 0]) # coords[counter, :] += np.dot(cga, struct_tstep.for_pos[0:3]) # except AttributeError: - coords[counter, :] += np.dot(struct_tstep.cga(), struct_tstep.for_pos[0:3]) + coords[counter, :] += np.dot(self.data.structure.timestep_info[0].cga(), struct_tstep.for_pos[0:3]) if self.settings['include_forward_motion']: coords[counter, 0] -= self.settings['dt']*self.ts*self.settings['u_inf'] @@ -331,7 +331,7 @@ def plot_wake(self): # cga = algebra.euler2rot([0, self.data.trimmed_values[0], 0]) # coords[counter, :] += np.dot(cga, self.data.structure.timestep_info[self.ts].for_pos[0:3]) # except AttributeError: - coords[counter, :] += np.dot(self.data.structure.timestep_info[self.ts].cga(), self.data.structure.timestep_info[self.ts].for_pos[0:3]) + coords[counter, :] += np.dot(self.data.structure.timestep_info[0].cga(), self.data.structure.timestep_info[self.ts].for_pos[0:3]) if self.settings['include_forward_motion']: coords[counter, 0] -= self.settings['dt']*self.ts*self.settings['u_inf']