def test_from_table(): bearing_file = (os.path.dirname(os.path.realpath(__file__)) + "/data/bearing_seal_si.xls") bearing = BearingElement.from_table(0, bearing_file) assert bearing.n == 0 assert_allclose(bearing.frequency[2], 523.5987755985) assert_allclose(bearing.kxx.coefficient[2], 53565700) # bearing with us units bearing_file = (os.path.dirname(os.path.realpath(__file__)) + "/data/bearing_seal_us.xls") bearing = BearingElement.from_table(0, bearing_file) assert bearing.n == 0 assert_allclose(bearing.frequency[2], 523.5987755985) assert_allclose(bearing.kxx.coefficient[2], 53565700)
def test_from_table(): bearing_file = os.path.dirname( os.path.realpath(__file__)) + "/data/bearing_seal.xls" bearing = BearingElement.from_table(0, bearing_file) assert bearing.n == 0 assert bearing.w[2] == 5000
def test_from_table(): bearing_file = (os.path.dirname(os.path.realpath(__file__)) + "/data/bearing_seal.xls") bearing = BearingElement.from_table(0, bearing_file) assert bearing.n == 0 assert math.isclose(bearing.w[2], 523.6, abs_tol=0.1)