<jupyter_start><jupyter_text><NAME>National Renewable Energy LabLast updated: 12/23/2020<jupyter_code>import os
import pandas as pd
from ORBIT import ProjectManager, load_config

weather = pd.read_csv("example_weather.csv", parse_dates=["datetime"])\
            .set_index("datetime")<jupyter_output><empty_output><jupyter_text>Load the project configuration<jupyter_code>fixed_config = load_config("example_fixed_project.yaml") 

print(f"Num turbines: {fixed_config['plant']['num_turbines']}")
print(f"Turbine: {fixed_config['turbine']}")
print(f"\nSite: {fixed_config['site']}")<jupyter_output>Num turbines: 50
Turbine: SWT_6MW_154m_110m

Site: {'depth': 22.5, 'distance': 124, 'distance_to_landfall': 35, 'mean_windspeed': 9}<jupyter_text>Phases<jupyter_code>print(f"Design phases: {fixed_config['design_phases']}")
print(f"\nInstall phases: {list(fixed_config['install_phases'].keys())}")<jupyter_output>Design phases: ['MonopileDesign', 'ScourProtectionDesign', 'ArraySystemDesign', 'ExportSystemDesign', 'OffshoreSubstationDesign']

Install phases: ['ArrayCableInstallation', 'ExportCableInstallation', 'MonopileInstallation', 'OffshoreSubstationInstallation', 'ScourProtectionInstallation', 'TurbineInstallation']<jupyter_text>Run<jupyter_code>project = ProjectManager(fixed_config, weather=weather)
project.run()<jupyter_output><empty_output><jupyter_text>Top Level Outputs<jupyter_code>print(f"Installation CapEx:  {project.installation_capex/1e6:.0f} M")
print(f"System CapEx:        {project.system_capex/1e6:.0f} M")
print(f"Turbine CapEx:       {project.turbine_capex/1e6:.0f} M")
print(f"Soft CapEx:          {project.soft_capex/1e6:.0f} M")
print(f"Total CapEx:        {project.total_capex/1e6:.0f} M")

print(f"\nInstallation Time: {project.installation_time:.0f} h")<jupyter_output>Installation CapEx:  181 M
System CapEx:        257 M
Turbine CapEx:       390 M
Soft CapEx:          194 M
Total CapEx:        1021 M

Installation Time: 12731 h<jupyter_text>Phase Specific Outputs<jupyter_code>print(f"Monopile Installation:  {project.phases['MonopileInstallation'].installation_capex/1e6:.0f} M")
print(f"Monopile Procurement:  {project.phases['MonopileInstallation'].system_capex/1e6:.0f} M")
print(f"Turbine Installation:  {project.phases['TurbineInstallation'].installation_capex/1e6:.0f} M")
print(f"Array System Installation: {project.phases['ArrayCableInstallation'].installation_capex/1e6:.0f} M")
print(f"Array System Procurement:  {project.phases['ArrayCableInstallation'].system_capex/1e6:.0f} M")<jupyter_output>Array System Installation: 20 M
Array System Procurement:  24 M<jupyter_text>Installation Actions<jupyter_code>pd.DataFrame(project.actions)<jupyter_output><empty_output>
{'fraction_non_alphanumeric': 0.13679941002949852, 'fraction_numerical': 0.03023598820058997, 'mean_word_length': 8.486013986013987, 'pattern_counts': {'":': 0, '<': 26, '<?xml version=': 0, '>': 26, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'chain_length': '7', 'dir': 'jupyter-structured-clean-dedup', 'id': '443613', 'license': 'Apache-2.0', 'n_tokens_mistral': 1034, 'n_tokens_neox': 984, 'n_words': 147, 'path': 'examples/1. Example Fixed Project.ipynb', 'repo_name': 'RHammond2/ORBIT', 'size': '2720'}