Beispiel #1
0
    def test_list_functions(self):

        surfs = dagmc.get_surface_list()
        self.assertEqual(set(surfs), set(range(1, 19)))

        vols = dagmc.get_volume_list()
        self.assertEqual(set(vols), set(range(1, 5)))
Beispiel #2
0
    def test_list_functions(self):

        surfs = dagmc.get_surface_list()
        self.assertEqual(set(surfs), set(range(1, 19)))

        vols = dagmc.get_volume_list()
        self.assertEqual(set(vols), set(range(1, 5)))
Beispiel #3
0
def list_functions():
    from pyne import dagmc
    dagmc.load(path)

    surfs = dagmc.get_surface_list()
    vols = dagmc.get_volume_list()

    return [surfs, vols]
Beispiel #4
0
def list_functions():
    from pyne import dagmc
    dagmc.load(path)

    surfs = dagmc.get_surface_list()
    assert_equal(set(surfs), set(range(1, 19)))

    vols = dagmc.get_volume_list()
    assert_equal(set(vols), set(range(1, 5)))
Beispiel #5
0
def list_functions():
    from pyne import dagmc
    dagmc.load(path)
    
    surfs = dagmc.get_surface_list()
    assert_equal(set(surfs), set(range(1, 19)))

    vols = dagmc.get_volume_list()
    assert_equal(set(vols), set(range(1, 5)))
Beispiel #6
0
def determine_volid(xyz):
    vol_list = get_volume_list()
    for vol in vol_list:
        if point_in_volume(vol,xyz) == 1:
            return vol
    return 0