Пример #1
0
def test_chemical_form_cool():
    rmg = ReactorMG()
    rmg.chemical_form_cool = {"H1": 2.0, "O16": 1.0,
        "B10": 0.199 * 550 * 10.0**-6, 
        "B11": 0.801 * 550 * 10.0**-6}
    assert_equal(rmg.chemical_form_cool, {"H1": 2.0, "O16": 1.0,
        "B10": 0.199 * 550 * 10.0**-6,
        "B11": 0.801 * 550 * 10.0**-6})
Пример #2
0
def setup_rmg_attr():
    global rmg
    libfile = os.getenv("BRIGHT_DATA") + '/lwr_base.h5'
    load_track_nucs_hdf5(libfile)
    rmg = ReactorMG()
    rmg.loadlib(libfile)
Пример #3
0
def test_S_T():
    rmg = ReactorMG()
    rmg.S_T = 180
    assert_equal(rmg.S_T, 180)
Пример #4
0
def test_S_O():
    rmg = ReactorMG()
    rmg.S_O = 123
    assert_equal(rmg.S_O, 123)
Пример #5
0
def test_l():
    rmg = ReactorMG()
    rmg.pitch = 0.7
    assert_equal(rmg.pitch, 0.7)
Пример #6
0
def test_r():
    rmg = ReactorMG()
    rmg.r_fuel = 0.411
    assert_equal(rmg.r_fuel, 0.411)
Пример #7
0
def test_rescale_hydrogen_xs():
    rmg = ReactorMG()
    rmg.rescale_hydrogen_xs = True
    assert_true(rmg.rescale_hydrogen_xs)
Пример #8
0
def test_Lattice():
    rmg = ReactorMG()
    rmg.lattice_flag = 'Spherical'
    assert_equal(rmg.lattice_flag, 'Spherical')
Пример #9
0
def test_use_zeta():
    rmg = ReactorMG()
    rmg.use_zeta = True
    assert_true(rmg.use_zeta)
Пример #10
0
def test_target_BU():
    rmg = ReactorMG()
    rmg.target_BU = 50.0
    assert_equal(rmg.target_BU, 50.0)
Пример #11
0
def test_P_NL():
    rmg = ReactorMG()
    rmg.P_NL = 0.98
    assert_equal(rmg.P_NL, 0.98)
Пример #12
0
def test_rho_cool():
    rmg = ReactorMG()
    rmg.rho_cool = 0.73
    assert_equal(rmg.rho_cool, 0.73)
Пример #13
0
def test_rho_fuel():
    rmg = ReactorMG()
    rmg.rho_fuel = 10.7
    assert_equal(rmg.rho_fuel, 10.7)
Пример #14
0
def test_chemical_form_fuel():
    rmg = ReactorMG()
    rmg.chemical_form_fuel = {"IHM": 1.0, "O16": 2.0}
    assert_equal(rmg.chemical_form_fuel, {"IHM": 1.0, "O16": 2.0})
Пример #15
0
def test_flux():
    rmg = ReactorMG()
    rmg.flux = 2*(10**14)
    assert_equal(rmg.flux, 2*(10**14))
Пример #16
0
def test_B():
    rmg = ReactorMG()
    rmg.B = 3
    assert_equal(rmg.B, 3)