Ejemplo n.º 1
0
def test_calc_flexure_parameter():
    eet, youngs = 65000.0, 7e10
    alpha_1d = get_flexure_parameter(eet, youngs, 1)
    alpha_2d = get_flexure_parameter(eet, youngs, 2)
    assert alpha_2d == approx(84828.72)
    assert alpha_1d == approx(np.power(4.0, 0.25) * alpha_2d)
Ejemplo n.º 2
0
def test_calc_flexure_parameter_bad_ndim():
    with raises(ValueError):
        get_flexure_parameter(65000.0, 7e10, 0)
    with raises(ValueError):
        get_flexure_parameter(65000.0, 7e10, 3)