Exemple #1
0
def test_sigma_a_reaction():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_rx = sigma_a_reaction("U238", "z_2n", group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction("U238", "gamma", group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction("H1", "gamma")
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)
Exemple #2
0
def test_sigma_a_reaction():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_rx = sigma_a_reaction('U238', 'z_2n', group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('U238', 'gamma', group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('H1', 'gamma')
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)
Exemple #3
0
def test_sigma_a_reaction():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_rx = sigma_a_reaction("U238", "z_2n", group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction("U238", "gamma", group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction("H1", "gamma")
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)
Exemple #4
0
def test_sigma_a_reaction():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    sig_rx = sigma_a_reaction('U238', '2n', group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('U238', 'gamma', group_struct=E_g)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('H1', 'g')
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)
Exemple #5
0
def test_sigma_a_reaction():
    E_g = np.array([10.0, 7.5, 5.0, 2.5, 0.1])
    E_n = xs_cache['E_n']
    phi_n = np.ones(len(E_n) - 1)

    sig_rx = sigma_a_reaction('U238', '2n', E_g, E_n, phi_n)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('U238', 'gamma', E_g, E_n, phi_n)
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)

    sig_rx = sigma_a_reaction('H1', 'g')
    observed = (0.0 <= sig_rx).all()
    assert_true(observed)