Example #1
0
def iaendpoints(OPTION="LOOP"):
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = None
    OPTION = upper(OPTION)
    if OPTION == "LOOP":
        Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))
    elif OPTION == "HOMOTOPIC":
        Iab = iase2hmt(iabinary([[0, 1, 0], [0, 1, 0], [0, 0, 0]]), iabinary([[0, 0, 0], [1, 0, 1], [1, 1, 1]]))

    return Iab
Example #2
0
def iahomothin():
    from iase2hmt import iase2hmt
    from iabinary import iabinary

    Iab = iase2hmt(iabinary([[0, 0, 0], [0, 1, 0], [1, 1, 1]]), iabinary([[1, 1, 1], [0, 0, 0], [0, 0, 0]]))

    return Iab
Example #3
0
def iainterot(Iab, theta=45, DIRECTION="CLOCKWISE"):
    from iase2hmt import iase2hmt
    from iaserot import iaserot


    DIRECTION = upper(DIRECTION)
    A,Bc = Iab
    if DIRECTION != 'CLOCKWISE':
        theta = 360 - theta
    Irot = iase2hmt( iaserot(A, theta),
                    iaserot(Bc,theta))


    return Irot