DynamicControlSurface

class sharpy.generators.dynamiccontrolsurface.DynamicControlSurface[source]

Dynamic Control Surface deflection Generator

The object generates a deflection in radians based on the time series given as a single vector in the input data. A first order finite-differences scheme is used to calculate the deflection rate based on the provided time step increment.

To call this generator, the generator_id = DynamicControlSurface key shall be used for the setting control_surface_deflection in the AerogridLoader solver.

One instance of this generator will be created for each control surface, thus, a group of settings should be defined for each control surface (cs0_settings, cs1_settings … in the example below). All of these groups of settings should be collected as values in a dictionary which keys are the associated control surface number in string format. This dictionary should be parsed to the variable

control_surface_deflection_generator_settings in AerogridLoader. This is shown better in the example below:

Examples:

Attributes:

deflection (np.array): Array of deflection of the control surface deflection_dot (np.array): Array of the time derivative of the cs deflection. Calculated using 1st order finite differences.

This generator takes the following inputs:

Name

Type

Description

Default

dt

float

Time step increment

None

deflection_file

str

Path to the file with the deflection information

None