def test_set_te_thick(self): dat = AirfoilPoints.from_file( 'test//test_airfoil.dat').set_te_thickness(0.1) self.assertEqual(dat.te_thickness, .1)
def test_measurements(self): dat = AirfoilPoints.from_file('test//test_airfoil.dat') self.assertEqual(dat.chord, 1) self.assertEqual(dat.te_thickness, dat.positions[0].y - dat.positions[-1].y) self.assertEqual(dat.thickness, 0.14121)
def test_set_chord(self): dat = AirfoilPoints.from_file('test//test_airfoil.dat').set_chord(2) self.assertEqual(dat.chord, 2)
def test_from_file(self): dat = AirfoilPoints.from_file('test//test_airfoil.dat') self.assertEqual(dat.positions[0].surface, Surfaces.TOP) self.assertEqual(dat.positions[-1].surface, Surfaces.BTM)