Move the aero grid inthe "noaero" sovler
@@ -23,6 +23,10 @@ class NoAero(BaseSolver):
settings_default = dict()
settings_description = dict()
+ settings_types['dt'] = 'float'
+ settings_default['dt'] = 0.1
+ settings_description['dt'] = 'Time step'
+
settings_table = settings.SettingsTable()
__doc__ += settings_table.generate(settings_types, settings_default, settings_description)
@@ -50,14 +54,32 @@ class NoAero(BaseSolver):
dt=None,
t=None,
unsteady_contribution=False):
+
+ # generate the wake because the solid shape might change
+ if aero_tstep is None:
+ aero_tstep = self.data.aero.timestep_info[self.data.ts]
+ self.data.aero.wake_shape_generator.generate({'zeta': aero_tstep.zeta,
+ 'zeta_star': aero_tstep.zeta_star,
+ 'gamma': aero_tstep.gamma,
+ 'gamma_star': aero_tstep.gamma_star,
+ 'dist_to_orig': aero_tstep.dist_to_orig,
+ 'wake_conv_vel': aero_tstep.wake_conv_vel})
+
return self.data
def add_step(self):
self.data.aero.add_timestep()
def update_grid(self, beam):
- pass
+ self.data.aero.generate_zeta(beam,
+ self.data.aero.aero_settings,
+ -1,
+ beam_ts=-1)
def update_custom_grid(self, structure_tstep, aero_tstep):
- pass
+ self.data.aero.generate_zeta_timestep_info(structure_tstep,
+ aero_tstep,
+ self.data.structure,
+ self.data.aero.aero_settings,
+ dt=self.settings['dt'].value)
