Skip to content
Merged
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
1 change: 0 additions & 1 deletion .github/workflows/python-tests-system.yml
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]

- name: Install Ard
run: |
Expand Down
1 change: 0 additions & 1 deletion .github/workflows/python-tests-unit.yml
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ jobs:
- name: Install dependencies
run: |
python -m pip install --upgrade pip
pip install .[dev]

- name: Install Ard
run: |
Expand Down
54 changes: 0 additions & 54 deletions ard/cost/approximate_turbine_spacing.py
Original file line number Diff line number Diff line change
@@ -1,58 +1,4 @@
import openmdao.api as om
from ard.cost.wisdem_wrap import LandBOSSE


class LandBOSSEWithSpacingApproximations(om.Group):
"""
OpenMDAO group that connects the SpacingApproximations component to the LandBOSSE component.

This group calculates the turbine spacing using the SpacingApproximations and passes it
to the LandBOSSE component for further cost estimation.
"""

def initialize(self):
"""Initialize the group and declare options."""
self.options.declare(
"modeling_options", types=dict, desc="Ard modeling options"
)

def setup(self):
"""Set up the group by adding and connecting components."""
# Add the PrimarySpacingApproximations component
self.add_subsystem(
"spacing_approximations",
SpacingApproximations(modeling_options=self.options["modeling_options"]),
promotes_inputs=["total_length_cables"],
)

# Add the LandBOSSE component
self.add_subsystem(
"landbosse",
LandBOSSE(),
promotes_inputs=[
"*",
(
"turbine_spacing_rotor_diameters",
"internal_turbine_spacing_rotor_diameters",
),
(
"row_spacing_rotor_diameters",
"internal_row_spacing_rotor_diameters",
),
],
promotes_outputs=["*"], # Expose all outputs from LandBOSSE
)

# Connect the turbine and row spacing outputs from the approximations to LandBOSSE
self.connect(
"spacing_approximations.primary_turbine_spacing_diameters",
"internal_turbine_spacing_rotor_diameters",
)

self.connect(
"spacing_approximations.secondary_turbine_spacing_diameters",
"internal_row_spacing_rotor_diameters",
)


class SpacingApproximations(om.ExplicitComponent):
Expand Down
Loading