def configure_lcoe_with_csm_fin(assembly): """ fin inputs: fixed_charge_rate = Float construction_finance_rate = Float tax_rate = Float discount_rate = Float construction_time = Float """ assembly.replace('fin_a', fin_csm_assembly()) assembly.add('fixed_charge_rate', Float(0.12, iotype = 'in', desc = 'fixed charge rate for coe calculation')) assembly.add('construction_finance_rate', Float(0.00, iotype='in', desc = 'construction financing rate applied to overnight capital costs')) assembly.add('tax_rate', Float(0.4, iotype = 'in', desc = 'tax rate applied to operations')) assembly.add('discount_rate', Float(0.07, iotype = 'in', desc = 'applicable project discount rate')) assembly.add('construction_time', Float(1.0, iotype = 'in', desc = 'number of years to complete project construction')) # connections to fin assembly.connect('sea_depth', 'fin_a.sea_depth') assembly.connect('project_lifetime','fin_a.project_lifetime') assembly.connect('fixed_charge_rate','fin_a.fixed_charge_rate') assembly.connect('construction_finance_rate','fin_a.construction_finance_rate') assembly.connect('tax_rate','fin_a.tax_rate') assembly.connect('discount_rate','fin_a.discount_rate') assembly.connect('construction_time','fin_a.construction_time')
def setUp(self): self.fin = fin_csm_assembly() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 self.fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843
def setUp(self): self.fin = fin_csm_assembly() self.fin.turbine_cost = 6087803.555 / 50 self.fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 self.fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex self.fin.bos_costs = 7668775.3 self.fin.net_aep = 15756299.843
def configure(self): """ tcc_a inputs: advanced_blade = Bool offshore = Bool assemblyCostMultiplier = Float overheadCostMultiplier = Float profitMultiplier = Float transportMultiplier = Float aep inputs: array_losses = Float other_losses = Float fin inputs: fixed_charge_rate = Float construction_finance_rate = Float tax_rate = Float discount_rate = Float construction_time = Float bos inputs: bos_multiplier = Float inputs: sea_depth year month project lifetime if csm opex additional inputs: availability = Float() if openwind opex additional inputs: power_curve rpm ct if with_landbos additional inputs: voltage distInter terrain layout soil """ # configure base assembly configure_extended_financial_analysis(self) # putting replace statements here for now; TODO - openmdao bug # replace BOS with either CSM or landbos if self.with_landbos: self.replace('bos_a', NREL_Land_BOSSE()) else: self.replace('bos_a', bos_csm_assembly()) self.replace('tcc_a', Turbine_CostsSE()) if self.with_ecn_opex: self.replace('opex_a', opex_ecn_assembly(ecn_file)) else: self.replace('opex_a', opex_csm_assembly()) self.replace('aep_a', aep_weibull_assembly()) self.replace('fin_a', fin_csm_assembly()) # add TurbineSE assembly configure_turbine(self, self.with_new_nacelle, self.flexible_blade, self.with_3pt_drive) # replace TCC with turbine_costs configure_lcoe_with_turb_costs(self) # replace BOS with either CSM or landbos if self.with_landbos: configure_lcoe_with_landbos(self) else: configure_lcoe_with_csm_bos(self) # replace AEP with weibull AEP (TODO: option for basic aep) configure_lcoe_with_weibull_aep(self) # replace OPEX with CSM or ECN opex and add AEP if self.with_ecn_opex: configure_lcoe_with_ecn_opex(self,ecn_file) self.connect('opex_a.availability','aep_a.availability') # connecting here due to aep / opex reversal depending on model else: configure_lcoe_with_csm_opex(self) self.add('availability',Float(0.94, iotype='in', desc='average annual availbility of wind turbines at plant', group='Plant_AEP')) self.connect('availability','aep_a.availability') # connecting here due to aep / opex reversal depending on model # replace Finance with CSM Finance configure_lcoe_with_csm_fin(self)
def configure(self): """ tcc_a inputs: advanced_blade = Bool offshore = Bool assemblyCostMultiplier = Float overheadCostMultiplier = Float profitMultiplier = Float transportMultiplier = Float aep inputs: array_losses = Float other_losses = Float fin inputs: fixed_charge_rate = Float construction_finance_rate = Float tax_rate = Float discount_rate = Float construction_time = Float bos inputs: bos_multiplier = Float inputs: sea_depth year month project lifetime if csm opex additional inputs: availability = Float() if openwind opex additional inputs: power_curve rpm ct if with_landbos additional inputs: voltage distInter terrain layout soil """ # configure base assembly configure_extended_financial_analysis(self) # putting replace statements here for now; TODO - openmdao bug # replace BOS with either CSM or landbos if self.with_landbos: self.replace('bos_a', NREL_Land_BOSSE()) else: self.replace('bos_a', bos_csm_assembly()) self.replace('tcc_a', Turbine_CostsSE()) if self.with_ecn_opex: self.replace('opex_a', opex_ecn_assembly(ecn_file)) else: self.replace('opex_a', opex_csm_assembly()) self.replace('aep_a', aep_weibull_assembly()) self.replace('fin_a', fin_csm_assembly()) # add TurbineSE assembly configure_turbine(self, self.with_new_nacelle, self.flexible_blade, self.with_3pt_drive) # replace TCC with turbine_costs configure_lcoe_with_turb_costs(self) # replace BOS with either CSM or landbos if self.with_landbos: configure_lcoe_with_landbos(self) else: configure_lcoe_with_csm_bos(self) # replace AEP with weibull AEP (TODO: option for basic aep) configure_lcoe_with_weibull_aep(self) # replace OPEX with CSM or ECN opex and add AEP if self.with_ecn_opex: configure_lcoe_with_ecn_opex(self, ecn_file) self.connect( 'opex_a.availability', 'aep_a.availability' ) # connecting here due to aep / opex reversal depending on model else: configure_lcoe_with_csm_opex(self) self.add( 'availability', Float( 0.94, iotype='in', desc='average annual availbility of wind turbines at plant' )) self.connect( 'availability', 'aep_a.availability' ) # connecting here due to aep / opex reversal depending on model # replace Finance with CSM Finance configure_lcoe_with_csm_fin(self)
def configure(self): configure_extended_financial_analysis(self) self.replace('tcc_a', tcc_csm_assembly()) self.replace('bos_a', bos_csm_assembly()) self.replace('opex_a', opex_csm_assembly()) self.replace('aep_a', aep_csm_assembly()) self.replace('fin_a', fin_csm_assembly()) # connect i/o to component and assembly inputs # turbine configuration # rotor self.connect('rotor_diameter', ['aep_a.rotor_diameter', 'tcc_a.rotor_diameter', 'bos_a.rotor_diameter']) self.connect('max_tip_speed', ['aep_a.max_tip_speed']) self.connect('opt_tsr','aep_a.opt_tsr') self.connect('cut_in_wind_speed','aep_a.cut_in_wind_speed') self.connect('cut_out_wind_speed','aep_a.cut_out_wind_speed') self.connect('altitude','aep_a.altitude') self.connect('shear_exponent','aep_a.shear_exponent') self.connect('wind_speed_50m','aep_a.wind_speed_50m') self.connect('weibull_k','aep_a.weibull_k') self.connect('soiling_losses','aep_a.soiling_losses') self.connect('array_losses','aep_a.array_losses') self.connect('availability','aep_a.availability') self.connect('thrust_coefficient','aep_a.thrust_coefficient') self.connect('blade_number','tcc_a.blade_number') self.connect('advanced_blade','tcc_a.advanced_blade') # drivetrain self.connect('machine_rating', ['aep_a.machine_rating', 'tcc_a.machine_rating', 'bos_a.machine_rating', 'opex_a.machine_rating']) self.connect('drivetrain_design', ['aep_a.drivetrain_design', 'tcc_a.drivetrain_design']) self.connect('crane','tcc_a.crane') self.connect('advanced_bedplate','tcc_a.advanced_bedplate') # tower self.connect('hub_height', ['aep_a.hub_height', 'tcc_a.hub_height', 'bos_a.hub_height']) self.connect('advanced_tower','tcc_a.advanced_tower') # plant configuration # climate self.connect('sea_depth', ['bos_a.sea_depth', 'opex_a.sea_depth', 'fin_a.sea_depth']) self.connect('offshore','tcc_a.offshore') # plant operation self.connect('turbine_number', ['aep_a.turbine_number', 'bos_a.turbine_number', 'opex_a.turbine_number']) # financial self.connect('year', ['tcc_a.year', 'bos_a.year', 'opex_a.year']) self.connect('month', ['tcc_a.month', 'bos_a.month', 'opex_a.month']) self.connect('fixed_charge_rate','fin_a.fixed_charge_rate') self.connect('construction_finance_rate','fin_a.construction_finance_rate') self.connect('tax_rate','fin_a.tax_rate') self.connect('discount_rate','fin_a.discount_rate') self.connect('construction_time','fin_a.construction_time') self.connect('project_lifetime','fin_a.project_lifetime') # connections self.connect('aep_a.rotor_thrust','tcc_a.rotor_thrust') self.connect('aep_a.rotor_torque','tcc_a.rotor_torque') self.connect('aep_a.net_aep', ['opex_a.net_aep']) self.connect('tcc_a.turbine_cost','bos_a.turbine_cost') # create passthroughs for key output variables of interest # aep_a self.connect('aep_a.rated_rotor_speed','rated_rotor_speed') self.connect('aep_a.rated_wind_speed','rated_wind_speed') self.connect('aep_a.rotor_thrust','rotor_thrust') self.connect('aep_a.rotor_torque','rotor_torque') self.connect('aep_a.power_curve','power_curve') self.connect('aep_a.max_efficiency','max_efficiency') self.connect('aep_a.gross_aep','gross_aep') # tcc_a self.connect('tcc_a.turbine_mass','turbine_mass') # fin_a self.connect('fin_a.lcoe','lcoe')
def configure(self): configure_extended_financial_analysis(self) self.replace('tcc_a', tcc_csm_assembly()) self.replace('bos_a', bos_csm_assembly()) self.replace('opex_a', opex_csm_assembly()) self.replace('aep_a', aep_csm_assembly()) self.replace('fin_a', fin_csm_assembly()) # connect i/o to component and assembly inputs # turbine configuration # rotor self.connect('rotor_diameter', ['aep_a.rotor_diameter', 'tcc_a.rotor_diameter', 'bos_a.rotor_diameter']) self.connect('max_tip_speed', ['aep_a.max_tip_speed']) self.connect('max_power_coefficient', 'aep_a.max_power_coefficient') self.connect('opt_tsr','aep_a.opt_tsr') self.connect('cut_in_wind_speed','aep_a.cut_in_wind_speed') self.connect('cut_out_wind_speed','aep_a.cut_out_wind_speed') self.connect('altitude','aep_a.altitude') self.connect('shear_exponent','aep_a.shear_exponent') self.connect('wind_speed_50m','aep_a.wind_speed_50m') self.connect('weibull_k','aep_a.weibull_k') self.connect('soiling_losses','aep_a.soiling_losses') self.connect('array_losses','aep_a.array_losses') self.connect('availability','aep_a.availability') self.connect('thrust_coefficient','aep_a.thrust_coefficient') self.connect('max_efficiency', 'aep_a.max_efficiency') self.connect('blade_number','tcc_a.blade_number') self.connect('advanced_blade','tcc_a.advanced_blade') # drivetrain self.connect('machine_rating', ['aep_a.machine_rating', 'tcc_a.machine_rating', 'bos_a.machine_rating', 'opex_a.machine_rating']) self.connect('drivetrain_design', ['aep_a.drivetrain_design', 'tcc_a.drivetrain_design']) self.connect('crane','tcc_a.crane') self.connect('advanced_bedplate','tcc_a.advanced_bedplate') # tower self.connect('hub_height', ['aep_a.hub_height', 'tcc_a.hub_height', 'bos_a.hub_height']) self.connect('advanced_tower','tcc_a.advanced_tower') # plant configuration # climate self.connect('sea_depth', ['bos_a.sea_depth', 'opex_a.sea_depth', 'fin_a.sea_depth']) self.connect('offshore','tcc_a.offshore') # plant operation self.connect('turbine_number', ['aep_a.turbine_number', 'bos_a.turbine_number', 'opex_a.turbine_number']) # financial self.connect('year', ['tcc_a.year', 'bos_a.year', 'opex_a.year']) self.connect('month', ['tcc_a.month', 'bos_a.month', 'opex_a.month']) self.connect('fixed_charge_rate','fin_a.fixed_charge_rate') self.connect('construction_finance_rate','fin_a.construction_finance_rate') self.connect('tax_rate','fin_a.tax_rate') self.connect('discount_rate','fin_a.discount_rate') self.connect('construction_time','fin_a.construction_time') self.connect('project_lifetime','fin_a.project_lifetime') # connections self.connect('aep_a.rotor_thrust','tcc_a.rotor_thrust') self.connect('aep_a.rotor_torque','tcc_a.rotor_torque') self.connect('aep_a.net_aep', ['opex_a.net_aep']) self.connect('tcc_a.turbine_cost','bos_a.turbine_cost') # create passthroughs for key output variables of interest # aep_a self.connect('aep_a.rated_rotor_speed','rated_rotor_speed') self.connect('aep_a.rated_wind_speed','rated_wind_speed') self.connect('aep_a.rotor_thrust','rotor_thrust') self.connect('aep_a.rotor_torque','rotor_torque') self.connect('aep_a.power_curve','power_curve') #self.connect('aep_a.max_efficiency','max_efficiency') self.connect('aep_a.gross_aep','gross_aep') self.connect('aep_a.capacity_factor','capacity_factor') # tcc_a self.connect('tcc_a.turbine_mass','turbine_mass') # fin_a self.connect('fin_a.lcoe','lcoe')
# 1 --------- # A simple test of nrel_csm_fin model from plant_financese.nrel_csm_fin.nrel_csm_fin import fin_csm_assembly fin = fin_csm_assembly() # 1 --------- # 2 --------- # Plant cost and energy production inputs fin.turbine_cost = 6087803.555 / 50 fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex fin.bos_costs = 7668775.3 fin.net_aep = 15756299.843 fin.fixed_charge_rate = 0.12 fin.construction_finance_rate = 0.00 fin.tax_rate = 0.4 fin.discount_rate = 0.07 fin.construction_time = 1.0 fin.project_lifetime = 20.0 fin.sea_depth = 20.0 # 2 --------- # 3 ---------
def configure(self): configure_extended_financial_analysis(self) self.replace("tcc_a", tcc_csm_assembly()) self.replace("bos_a", bos_csm_assembly()) self.replace("opex_a", opex_csm_assembly()) self.replace("aep_a", aep_csm_assembly()) self.replace("fin_a", fin_csm_assembly()) # connect i/o to component and assembly inputs # turbine configuration # rotor self.connect("rotor_diameter", ["aep_a.rotor_diameter", "tcc_a.rotor_diameter", "bos_a.rotor_diameter"]) self.connect("max_tip_speed", ["aep_a.max_tip_speed"]) self.connect("max_power_coefficient", "aep_a.max_power_coefficient") self.connect("opt_tsr", "aep_a.opt_tsr") self.connect("cut_in_wind_speed", "aep_a.cut_in_wind_speed") self.connect("cut_out_wind_speed", "aep_a.cut_out_wind_speed") self.connect("altitude", "aep_a.altitude") self.connect("shear_exponent", "aep_a.shear_exponent") self.connect("wind_speed_50m", "aep_a.wind_speed_50m") self.connect("weibull_k", "aep_a.weibull_k") self.connect("soiling_losses", "aep_a.soiling_losses") self.connect("array_losses", "aep_a.array_losses") self.connect("availability", "aep_a.availability") self.connect("thrust_coefficient", "aep_a.thrust_coefficient") self.connect("max_efficiency", "aep_a.max_efficiency") self.connect("blade_number", "tcc_a.blade_number") self.connect("advanced_blade", "tcc_a.advanced_blade") # drivetrain self.connect( "machine_rating", ["aep_a.machine_rating", "tcc_a.machine_rating", "bos_a.machine_rating", "opex_a.machine_rating"], ) self.connect("drivetrain_design", ["aep_a.drivetrain_design", "tcc_a.drivetrain_design"]) self.connect("crane", "tcc_a.crane") self.connect("advanced_bedplate", "tcc_a.advanced_bedplate") # tower self.connect("hub_height", ["aep_a.hub_height", "tcc_a.hub_height", "bos_a.hub_height"]) self.connect("advanced_tower", "tcc_a.advanced_tower") # plant configuration # climate self.connect("sea_depth", ["bos_a.sea_depth", "opex_a.sea_depth", "fin_a.sea_depth"]) self.connect("offshore", "tcc_a.offshore") # plant operation self.connect("turbine_number", ["aep_a.turbine_number", "bos_a.turbine_number", "opex_a.turbine_number"]) # financial self.connect("year", ["tcc_a.year", "bos_a.year", "opex_a.year"]) self.connect("month", ["tcc_a.month", "bos_a.month", "opex_a.month"]) self.connect("fixed_charge_rate", "fin_a.fixed_charge_rate") self.connect("construction_finance_rate", "fin_a.construction_finance_rate") self.connect("tax_rate", "fin_a.tax_rate") self.connect("discount_rate", "fin_a.discount_rate") self.connect("construction_time", "fin_a.construction_time") self.connect("project_lifetime", "fin_a.project_lifetime") # connections self.connect("aep_a.rotor_thrust", "tcc_a.rotor_thrust") self.connect("aep_a.rotor_torque", "tcc_a.rotor_torque") self.connect("aep_a.net_aep", ["opex_a.net_aep"]) self.connect("tcc_a.turbine_cost", "bos_a.turbine_cost") # create passthroughs for key output variables of interest # aep_a self.connect("aep_a.rated_rotor_speed", "rated_rotor_speed") self.connect("aep_a.rated_wind_speed", "rated_wind_speed") self.connect("aep_a.rotor_thrust", "rotor_thrust") self.connect("aep_a.rotor_torque", "rotor_torque") self.connect("aep_a.power_curve", "power_curve") # self.connect('aep_a.max_efficiency','max_efficiency') self.connect("aep_a.gross_aep", "gross_aep") self.connect("aep_a.capacity_factor", "capacity_factor") # tcc_a self.connect("tcc_a.turbine_mass", "turbine_mass") # fin_a self.connect("fin_a.lcoe", "lcoe")
# 1 --------- # A simple test of nrel_csm_fin model from plant_financese.nrel_csm_fin.nrel_csm_fin import fin_csm_assembly fin = fin_csm_assembly() # 1 --------- # 2 --------- # Plant cost and energy production inputs fin.turbine_cost = 6087803.555 / 50 fin.turbine_number = 50 preventative_opex = 401819.023 lease_opex = 22225.395 corrective_opex = 91048.387 fin.avg_annual_opex = preventative_opex + corrective_opex + lease_opex fin.bos_costs = 7668775.3 fin.net_aep = 15756299.843 fin.fixed_charge_rate = 0.12 fin.construction_finance_rate = 0.00 fin.tax_rate = 0.4 fin.discount_rate = 0.07 fin.construction_time = 1.0 fin.project_lifetime = 20.0 fin.sea_depth = 20.0 # 2 --------- # 3 ---------