def test2(self): td = TowerDiscretization() td.towerHeight = np.random.rand(1)[0] td.z = np.array([0.0, 0.5, 1.0]) td.d = np.random.rand(3) td.t = np.random.rand(3) td.L_reinforced = np.array([29.2, 29.2, 29.2]) td.n = np.array([10, 7]) # td.n_reinforced = 3 check_gradient_unit_test(self, td)
def test1(self): td = TowerDiscretization() td.towerHeight = 87.6 td.z = np.array([0.0, 0.5, 1.0]) td.d = np.array([6.0, 4.935, 3.87]) td.t = np.array([0.0351, 0.0299, 0.0247]) td.L_reinforced = np.array([29.2, 29.2, 29.2]) td.n = np.array([10, 7]) # td.n_reinforced = 3 check_gradient_unit_test(self, td)
def test3(self): td = TowerDiscretization() td.towerHeight = 87.6 td.z = np.array([0.0, 0.5, 1.0]) td.d = np.array([6.0, 4.935, 3.87]) td.t = np.array([0.0351, 0.0299, 0.0247]) td.L_reinforced = np.array([29.2, 29.2, 29.2]) td.n = np.array([10, 7]) td.monopileHeight = 30.0 td.d_monopile = 6.0 td.t_monopile = 0.0351 td.n_monopile = 5 check_gradient_unit_test(self, td)