Skip to content
Snippets Groups Projects
Commit 493f4bd0 authored by mads's avatar mads
Browse files

fixed filename

parent d0fcace0
No related branches found
No related tags found
No related merge requests found
Pipeline #
......@@ -100,7 +100,8 @@ class StFile(object):
if __name__ == "__main__":
st = StFile(r"C:\mmpe\HAWC2\models\DTU10MWRef6.0\data/DTU_10MW_RWT_Blade_st.dat")
import os
st = StFile(os.path.dirname(__file__) + r"/tests/test_files/DTU_10MW_RWT_Blade_st.dat")
print (st.m())
print (st.E(radius=36, mset=1, set=1)) # Elastic blade
print (st.E(radius=36, mset=1, set=2)) # stiff blade
......
......@@ -18,7 +18,7 @@ class TestStFile(unittest.TestCase):
def test_stfile(self):
st = StFile(testfilepath + "DTU_10MW_RWT_blade_st.dat")
st = StFile(testfilepath + "DTU_10MW_RWT_Blade_st.dat")
self.assertEqual(st.radius()[2], 3.74238)
self.assertEqual(st.radius(3), 3.74238)
self.assertEqual(st.x_e(67.7351), 4.4320990737400E-01)
......@@ -27,7 +27,7 @@ class TestStFile(unittest.TestCase):
def test_stfile_interpolate(self):
st = StFile(testfilepath + "DTU_10MW_RWT_blade_st.dat")
st = StFile(testfilepath + "DTU_10MW_RWT_Blade_st.dat")
self.assertAlmostEqual(st.x_e(72.2261), 0.381148048)
self.assertAlmostEqual(st.y_e(72.2261), 0.016692967)
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment