def setUp(self): self.rating = 2000.0 self.diameter = 110.0 self.hubHeight = 100.0 self.nTurbines = 100 self.voltage = 137.0 self.distToInterconnect = 5.0 self.TCC = 1000.0 self.towerTopMass = 88.0 self.terrain = 0 # FLAT_TO_ROLLING self.layout = 1 # COMPLEX self.soil = 0 # STANDARD self.farmSize = _landbos.farmSize(self.rating, self.nTurbines) self.constructionTime = _landbos.defaultConstructionTime(self.nTurbines) self.accessRoadEntrances = _landbos.defaultAccessRoadEntrances(self.nTurbines) self.buildingSize = _landbos.defaultBuildingSize(self.farmSize) self.tempMetTowers = _landbos.defaultTempMetTowers(self.farmSize) self.permanentMetTowers = _landbos.defaultPermanentMetTowers(self.farmSize) self.weatherDelayDays = _landbos.defaultWeatherDelayDays(self.nTurbines) self.craneBreakdowns = _landbos.defaultCraneBreakdowns(self.nTurbines)
def execute(self): self.farmSize = _landbos.farmSize(self.rating, self.nTurbines)