ControlSurfacePidController¶
The settings that this solver accepts are given by a dictionary, with the following key-value pairs:
Name Type Description Default time_history_input_filestrRoute and file name of the time history of desired state NonePfloatProportional gain of the controller NoneIfloatIntegral gain of the controller 0.0DfloatDifferential gain of the controller 0.0input_typestrQuantity used to define the reference state. Supported: pitch NonedtfloatTime step of the simulation Nonecontrolled_surfaceslist(int)Control surface indices to be actuated by this controller Nonecontrolled_surfaces_coefflist(float)Control surface deflection coefficients. For example, for antisymmetric deflections => [1, -1]. [1.0]write_controller_logboolWrite a time history of input, required input, and control Truecontroller_log_routestrDirectory where the log will be stored ./output/Main routine of the controller. Input is data (the self.data in the solver), and currrent_state which is a dictionary with [‘structural’, ‘aero’] time steps for the current iteration.
Parameters: - data – problem data containing all the information.
- controlled_state – dict with two vars: structural and aero containing the timestep_info that will be returned with the control variables.
Returns: A dict with structural and aero time steps and control input included.