예제 #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)