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})
def setup_rmg_attr(): global rmg libfile = os.getenv("BRIGHT_DATA") + '/lwr_base.h5' load_track_nucs_hdf5(libfile) rmg = ReactorMG() rmg.loadlib(libfile)
def test_S_T(): rmg = ReactorMG() rmg.S_T = 180 assert_equal(rmg.S_T, 180)
def test_S_O(): rmg = ReactorMG() rmg.S_O = 123 assert_equal(rmg.S_O, 123)
def test_l(): rmg = ReactorMG() rmg.pitch = 0.7 assert_equal(rmg.pitch, 0.7)
def test_r(): rmg = ReactorMG() rmg.r_fuel = 0.411 assert_equal(rmg.r_fuel, 0.411)
def test_rescale_hydrogen_xs(): rmg = ReactorMG() rmg.rescale_hydrogen_xs = True assert_true(rmg.rescale_hydrogen_xs)
def test_Lattice(): rmg = ReactorMG() rmg.lattice_flag = 'Spherical' assert_equal(rmg.lattice_flag, 'Spherical')
def test_use_zeta(): rmg = ReactorMG() rmg.use_zeta = True assert_true(rmg.use_zeta)
def test_target_BU(): rmg = ReactorMG() rmg.target_BU = 50.0 assert_equal(rmg.target_BU, 50.0)
def test_P_NL(): rmg = ReactorMG() rmg.P_NL = 0.98 assert_equal(rmg.P_NL, 0.98)
def test_rho_cool(): rmg = ReactorMG() rmg.rho_cool = 0.73 assert_equal(rmg.rho_cool, 0.73)
def test_rho_fuel(): rmg = ReactorMG() rmg.rho_fuel = 10.7 assert_equal(rmg.rho_fuel, 10.7)
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})
def test_flux(): rmg = ReactorMG() rmg.flux = 2*(10**14) assert_equal(rmg.flux, 2*(10**14))
def test_B(): rmg = ReactorMG() rmg.B = 3 assert_equal(rmg.B, 3)