Use SHARPy output folder + documentation of settings
@@ -25,24 +25,25 @@ class AerogridPlot(BaseSolver):
settings_default = dict()
settings_description = dict()
- settings_types['folder'] = 'str'
- settings_default['folder'] = './output'
- settings_description['folder'] = 'Output folder'
-
settings_types['include_rbm'] = 'bool'
settings_default['include_rbm'] = True
+ settings_description['include_rbm'] = 'Include rigid body motions'
settings_types['include_forward_motion'] = 'bool'
settings_default['include_forward_motion'] = False
+ settings_description['include_forward_motion'] = 'Include forward motion'
settings_types['include_applied_forces'] = 'bool'
settings_default['include_applied_forces'] = True
+ settings_description['include_applied_forces'] = 'Include applied aerodynamic forces at the vertices'
settings_types['include_unsteady_applied_forces'] = 'bool'
settings_default['include_unsteady_applied_forces'] = False
+ settings_description['include_unsteady_applied_forces'] = 'Include unsteady aerodynamic forces at the vertices'
settings_types['minus_m_star'] = 'int'
settings_default['minus_m_star'] = 0
+ settings_description['minus_m_star'] = 'Subtract a number of wake panels that will not be plotted'
settings_types['name_prefix'] = 'str'
settings_default['name_prefix'] = ''
@@ -50,18 +51,23 @@ class AerogridPlot(BaseSolver):
settings_types['u_inf'] = 'float'
settings_default['u_inf'] = 0.
+ settings_description['u_inf'] = 'Free stream velocity'
settings_types['dt'] = 'float'
settings_default['dt'] = 0.
+ settings_description['dt'] = 'Time step increment'
settings_types['include_velocities'] = 'bool'
settings_default['include_velocities'] = False
+ settings_description['include_velocities'] = 'Include induced velocities at the vertices'
settings_types['include_incidence_angle'] = 'bool'
settings_default['include_incidence_angle'] = False
+ settings_description['include_incidence_angle'] = 'Include panel incidence angle'
settings_types['num_cores'] = 'int'
settings_default['num_cores'] = 1
+ settings_description['num_cores'] = 'Number of cores used to compute velocities/angles'
settings_types['vortex_radius'] = 'float'
settings_default['vortex_radius'] = vortex_radius_def
@@ -74,7 +80,7 @@ class AerogridPlot(BaseSolver):
self.settings = None
self.data = None
- self.folder = ''
+ self.folder = None
self.body_filename = ''
self.wake_filename = ''
self.ts_max = 0
@@ -89,9 +95,7 @@ class AerogridPlot(BaseSolver):
settings.to_custom_types(self.settings, self.settings_types, self.settings_default)
self.ts_max = self.data.ts + 1
# create folder for containing files if necessary
- if not os.path.exists(self.settings['folder']):
- os.makedirs(self.settings['folder'])
- self.folder = self.settings['folder'] + '/' + self.data.settings['SHARPy']['case'] + '/aero/'
+ self.folder = data.output_folder + '/aero/'
if not os.path.exists(self.folder):
os.makedirs(self.folder)
self.body_filename = (self.folder +
