Пример #1
0
class Test_Bedplate(unittest.TestCase):
    def setUp(self):

        self.bpl = Bedplate()

        self.bpl.drivetrain_design = 'geared'

        self.bpl.rotor_diameter = 126.
        rotor_speed = 12.1
        DrivetrainEfficiency = 0.95
        machine_rating = 5000.
        self.bpl.rotor_torque = 1.5 * (machine_rating * 1000. /
                                       DrivetrainEfficiency) / (rotor_speed *
                                                                (pi / 30.))
        self.bpl.rotor_thrust = 2.5448e5
        self.bpl.rotor_mass = 142585.75
        self.bpl.tower_top_diameter = 3.78

    def test_functionality(self):

        self.bpl.run()

        self.assertEqual(round(self.bpl.mass, 1), 108512.5)

    def test_gradient(self):

        check_gradient_unit_test(self, self.bpl, display=False)
Пример #2
0
class Test_Bedplate(unittest.TestCase):

    def setUp(self):

        self.bpl = Bedplate()

        self.bpl.drivetrain_design = 'geared'

        self.bpl.rotor_diameter = 126.
        rotor_speed = 12.1
        DrivetrainEfficiency = 0.95
        machine_rating = 5000.
        self.bpl.rotor_torque = 1.5 * (machine_rating * 1000. / DrivetrainEfficiency) / (rotor_speed * (pi / 30.))
        self.bpl.rotor_thrust = 2.5448e5
        self.bpl.rotor_mass = 142585.75
        self.bpl.tower_top_diameter = 3.78 

    def test_functionality(self):
        
        self.bpl.run()
        
        self.assertEqual(round(self.bpl.mass,1), 108512.5)

    def test_gradient(self):

        check_gradient_unit_test(self, self.bpl, display=False)
Пример #3
0
    def setUp(self):

        self.bpl = Bedplate()

        self.bpl.drivetrain_design = 'geared'

        self.bpl.rotor_diameter = 126.
        rotor_speed = 12.1
        DrivetrainEfficiency = 0.95
        machine_rating = 5000.
        self.bpl.rotor_torque = 1.5 * (machine_rating * 1000. /
                                       DrivetrainEfficiency) / (rotor_speed *
                                                                (pi / 30.))
        self.bpl.rotor_thrust = 2.5448e5
        self.bpl.rotor_mass = 142585.75
        self.bpl.tower_top_diameter = 3.78
Пример #4
0
    def setUp(self):

        self.bpl = Bedplate()

        self.bpl.drivetrain_design = 'geared'

        self.bpl.rotor_diameter = 126.
        rotor_speed = 12.1
        DrivetrainEfficiency = 0.95
        machine_rating = 5000.
        self.bpl.rotor_torque = 1.5 * (machine_rating * 1000. / DrivetrainEfficiency) / (rotor_speed * (pi / 30.))
        self.bpl.rotor_thrust = 2.5448e5
        self.bpl.rotor_mass = 142585.75
        self.bpl.tower_top_diameter = 3.78