Beispiel #1
0
        [1, 0, 0],
        [0, -1, 0]
    ]),
    np.matrix([
        [0, 0, 1],  # Rotation (1-11)-axis (3-fold)
        [-1, 0, 0],
        [0, -1, 0]
    ]),
    np.matrix([
        [0, 0, -1],  # Rotation (-111)-axis (3-fold)
        [-1, 0, 0],
        [0, 1, 0]
    ])
]

symmetries = get_all_symmetries(basesymmetries, 48)

# Definition of used surfaces
surface_names = [(1, 0, 0), (-1, 0, 0), (0, 1, 0), (0, -1, 0), (0, 0, 1),
                 (0, 0, -1), (1, 1, 0), (-1, -1, 0), (1, 0, 1), (-1, 0, -1),
                 (0, 1, 1), (0, -1, -1), (1, -1, 0), (-1, 1, 0), (1, 0, -1),
                 (-1, 0, 1), (0, 1, -1), (0, -1, 1), (1, 1, 1), (-1, -1, -1),
                 (-1, 1, 1), (1, -1, -1), (1, -1, 1), (-1, 1, -1), (1, 1, -1),
                 (-1, -1, 1)]

surface_numbers = {}
for i, s in enumerate(surface_names):
    surface_numbers[s] = i

surface_count = len(surface_names)
Beispiel #2
0
                             [-1, 0, 0],
                             [0, 0, 1]]),
                  np.matrix([[0, 0, 1],   # Rotation (111)-axis (3-fold)
                             [1, 0, 0],
                             [0, 1, 0]]),
                  np.matrix([[0, 0, -1],  # Rotation (11-1)-axis (3-fold)
                             [1, 0, 0],
                             [0, -1, 0]]),
                  np.matrix([[0, 0, 1],   # Rotation (1-11)-axis (3-fold)
                             [-1, 0, 0],
                             [0, -1, 0]]),
                  np.matrix([[0, 0, -1],  # Rotation (-111)-axis (3-fold)
                             [-1, 0, 0],
                             [0, 1, 0]])]

symmetries = get_all_symmetries(basesymmetries, 48)

# Definition of used surfaces
surface_names = [(1, 0, 0), (-1, 0, 0),
                 (0, 1, 0), (0, -1, 0),
                 (0, 0, 1), (0, 0, -1),
                 (1, 1, 0), (-1, -1, 0),
                 (1, 0, 1), (-1, 0, -1),
                 (0, 1, 1), (0, -1, -1),
                 (1, -1, 0), (-1, 1, 0),
                 (1, 0, -1), (-1, 0, 1),
                 (0, 1, -1), (0, -1, 1),
                 (1, 1, 1), (-1, -1, -1),
                 (-1, 1, 1), (1, -1, -1),
                 (1, -1, 1), (-1, 1, -1),
                 (1, 1, -1), (-1, -1, 1)]