示例#1
0
 def test_HR(self):
     ### Single wind rose type
     hrAEP = AEPMultipleWindRoses()
     hrAEP.add('wf', FGCLarsen())
     hrAEP.configure()
     hrAEP.connect('wt_layout', 'wf.wt_layout')
     hrAEP.wt_layout = PlantFromWWH(filename='wind_farms/horns_rev/hornsrev1_turbine_nodescription.wwh').wt_layout
     hrAEP.wind_directions = [0., 90., 180., 270.]#linspace(0.0, 360.0, 3)[:-1]
     hrAEP.wind_speeds = [8., 12., 24.]#linspace(4.0, 25.0, 3)
     hrAEP.run()
     print hrAEP.net_aep
     print hrAEP.wt_aep
示例#2
0
def my_aep_calculation(wind_farm_model):
    aep = AEPMultipleWindRoses()
    aep.add('wf', wind_farm_model())
    aep.configure()
    aep.connect('wt_layout', 'wf.wt_layout')
    # The wind speed/directions bins to consider in the AEP calculation
    aep.wind_speeds = np.linspace(4., 25., 10).tolist()
    aep.wind_directions = np.linspace(0., 360., 36)[:-1].tolist()
    # Number of wind turbines
    nwt = 5
    aep.wt_layout = generate_random_wt_layout(nwt=nwt)
    aep.run()
    return aep
def my_aep_calculation(wind_farm_model):
    aep = AEPMultipleWindRoses()
    aep.add("wf", wind_farm_model())
    aep.configure()
    aep.connect("wt_layout", "wf.wt_layout")
    # The wind speed/directions bins to consider in the AEP calculation
    aep.wind_speeds = np.linspace(4.0, 25.0, 10).tolist()
    aep.wind_directions = np.linspace(0.0, 360.0, 36)[:-1].tolist()
    # Number of wind turbines
    nwt = 5
    aep.wt_layout = generate_random_wt_layout(nwt=nwt)
    aep.run()
    return aep
示例#4
0
def prof():
    ### Single wind rose type
    hrAEP = AEPMultipleWindRoses()
    hrAEP.add('wf', FGCLarsen())
    hrAEP.configure()
    #hrAEP.connect('wt_layout', 'wf.wt_layout')
    wt_layout = PlantFromWWH(filename='hornsrev1_turbine_nodescription.wwh').wt_layout
    hrAEP.wf.wt_layout = wt_layout  ## <- to speed things up
    hrAEP.wt_layout = wt_layout
    hrAEP.wind_directions = linspace(0.0, 360.0, 36)[:-1]
    hrAEP.wind_speeds =linspace(4.0, 25.0, 22)
    hrAEP.run()
    print hrAEP.net_aep
    print hrAEP.wt_aep
示例#5
0
 def test_HR(self):
     ### Single wind rose type
     hrAEP = AEPMultipleWindRoses()
     hrAEP.add('wf', FGCLarsen())
     hrAEP.configure()
     hrAEP.connect('wt_layout', 'wf.wt_layout')
     hrAEP.wt_layout = PlantFromWWH(
         filename='wind_farms/horns_rev/hornsrev1_turbine_nodescription.wwh'
     ).wt_layout
     hrAEP.wind_directions = [0., 90., 180.,
                              270.]  #linspace(0.0, 360.0, 3)[:-1]
     hrAEP.wind_speeds = [8., 12., 24.]  #linspace(4.0, 25.0, 3)
     hrAEP.run()
     print hrAEP.net_aep
     print hrAEP.wt_aep