def test_foundation2(self): soil = 1 # BOUYANT # change soil type cost = _landbos.foundationCost(self.rating, self.diameter, self.towerTopMass, self.hubHeight, soil, self.nTurbines) self.assertAlmostEqual(13286437, cost, delta=0.5)
def test_insurance(self): fcost = _landbos.foundationCost(self.rating, self.diameter, self.towerTopMass, self.hubHeight, self.soil, self.nTurbines) performanceBond = False values = _landbos.insuranceMultiplierAndCost(self.TCC, self.farmSize, fcost, performanceBond) cost = values['cost'] + values['alpha']*_landbos.totalCost(self.rating, self.diameter, self.hubHeight, self.nTurbines, self.voltage, self.distToInterconnect, self.terrain, self.layout, self.soil, self.farmSize, self.TCC, self.towerTopMass, self.constructionTime, self.buildingSize, self.tempMetTowers, self.permanentMetTowers, self.weatherDelayDays, self.craneBreakdowns, self.accessRoadEntrances, performanceBond=performanceBond) self.assertAlmostEqual(2265350, cost, delta=0.5)
def execute(self): self.cost = _landbos.foundationCost(self.rating, self.diameter, self.topMass/1000.0, self.hubHeight, Enum2Int(self, 'soil'), self.nTurbines)
def execute(self): self.cost = _landbos.foundationCost(self.rating, self.diameter, self.topMass / 1000.0, self.hubHeight, Enum2Int(self, 'soil'), self.nTurbines)
def test_foundation(self): cost = _landbos.foundationCost(self.rating, self.diameter, self.towerTopMass, self.hubHeight, self.soil, self.nTurbines) self.assertAlmostEqual(11286437, cost, delta=0.5)