Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
7 changes: 5 additions & 2 deletions landbosse/model/CollectionCost.py
Original file line number Diff line number Diff line change
Expand Up @@ -380,7 +380,7 @@ def calc_num_turb_partial_strings(self, num_leftover_turb, num_turb_per_cable):
# TODO: change length_to_substation calculation as a user defined input?
@staticmethod
def calc_cable_len_to_substation(
distance_to_grid, turbine_spacing_rotor_diameters, row_spacing_rotor_diameters, num_strings
distance_to_grid, turbine_spacing_rotor_diameters, row_spacing_rotor_diameters, num_strings, rotor_diameter_m,
):
"""
Calculate the distance for the largest cable run to substation
Expand All @@ -395,6 +395,8 @@ def calc_cable_len_to_substation(
Spacing between rows in wind plant, # of rotor diameters
num_strings : int
Total number of strings
rotor_diameter_m : int or float
Rotor diameter, m

Returns
-------
Expand Down Expand Up @@ -437,7 +439,7 @@ def calc_cable_len_to_substation(
string_to_substation_length.append(distance_to_grid)

# Sum up total length to substation
len_to_substation = np.sum(string_to_substation_length)
len_to_substation = np.sum(string_to_substation_length) * rotor_diameter_m * 1e-3

return len_to_substation

Expand Down Expand Up @@ -610,6 +612,7 @@ def create_ArraySystem(self):
self.input_dict["turbine_spacing_rotor_diameters"],
self.input_dict["row_spacing_rotor_diameters"],
self.output_dict["num_strings"],
self.input_dict["rotor_diameter_m"],
)
else:
self.output_dict["distance_to_grid_connection_km"] = self.input_dict["distance_to_grid_connection_km"]
Expand Down
Binary file modified project_input_template/project_data/ge15_expected_validation.xlsx
Binary file not shown.
Loading