windisch.turbines_input_parameters
Provides TurbinesInputParameters, a class that formats input and output parameters and associated values into an array. This array is later on consumed by WindTurbineModel.
Functions
|
Check if json file containing input parameters exists, and if so, return it. |
Classes
|
A class used to represent wind turbines with associated type, size, technology, year and parameters. |
- class windisch.turbines_input_parameters.TurbinesInputParameters(parameters=None, extra=None)
A class used to represent wind turbines with associated type, size, technology, year and parameters.
This class inherits from NamedParameters, located in the klausen package. It sources default parameters for all wind turbine types from a dictionary in default_parameters and format them into an array following the structured described in the klausen package.
- Variables:
sizes (list) – List of string items e.g., [‘100kW’, ‘500kW’, ‘1000kW’]
application (list) – List of string items e.g., [‘onshore’, ‘offshore’]
parameters (list) – List of string items e.g., [‘lifetime’, ‘power output’, …]
years (list) – List of integers e.g., [2000, 2010, 2020, 2040]
metadata (dict) – Dictionary for metadata.
values (dict) – Dictionary for storing values, of format {‘param’:[value]}.
iterations (int) – Number of iterations executed by the method
stochastic(). None ifstatic()used instead.
- add_turbine_parameters(parameters)
Split data and metadata according to
klausenconvention.The parameters are split into the metadata and values attributes of the CarInputParameters class by the add_parameters() method of the parent class.
- Parameters:
parameters (dict) – A dictionary that contains parameters.
- windisch.turbines_input_parameters.load_parameters(obj: str | Path)
Check if json file containing input parameters exists, and if so, return it. :param obj: :return: