ard.utils#
Functions
|
Create a FLORIS turbine from a generic Ard turbine specification. |
|
Utility to load turbine spec. |
- ard.utils.load_turbine_spec(filename_turbine_spec)[source]#
Utility to load turbine spec. files, & transform relative to absolute links.
- Parameters:
filename_turbine_spec (Pathlike) -- filename of a turbine specification to load
- Returns:
a turbine specification dictionary
- Return type:
dict
- ard.utils.create_FLORIS_turbine(input_turbine_spec, filename_turbine_FLORIS=None)[source]#
Create a FLORIS turbine from a generic Ard turbine specification.
- Return type:
dict
- Parameters:
input_turbine_spec (dict | PathLike) -- a turbine specification from which to extract a FLORIS turbine
filename_turbine_FLORIS (PathLike, optional) -- a path to save a FLORIS turbine configuration yaml file, optionally
- Returns:
a FLORIS turbine configuration in dictionary form
- Return type:
dict
- Raises:
TypeError -- if the turbine specification input is not the correct type