예제 #1
0
def NumericDispFunc(queue, int_file, spin_file, direction, k_min, k_max, steps):
    pid = os.getpid()
    int_file = createFileCopy(int_file, pid, 0)
    spin_file = createFileCopy(spin_file, pid, 1)
    Hsave = spinwave_calc_file.driver1(spin_file, int_file)
    qrange, wranges = spinwave_calc_file.driver2(Hsave, direction, steps, k_min, k_max)
    queue.put((pid,(qrange, wranges)))
예제 #2
0
def AnalyticDispFunc(queue, int_file, spin_file):
    pid = os.getpid()
    int_file = createFileCopy(int_file, pid, 0)
    spin_file = createFileCopy(spin_file, pid, 1)
    #Since calculating Hsave is most of what the numeric process does, it might be better not to do this twice.
    Hsave = spinwave_calc_file.driver1(spin_file, int_file)
    myeigs=printing.eig_process(deepcopy(Hsave))
    queue.put((pid, printing.create_latex(myeigs, "eigs")))         
예제 #3
0
def CalcHsaveFunc(queue, int_file, spin_file, direction, k_min, k_max, steps):
    pid = os.getpid()
    int_file = createFileCopy(int_file, pid, 0)
    spin_file = createFileCopy(spin_file, pid, 1)
    Hsave = spinwave_calc_file.driver1(spin_file, int_file)
    queue.put((pid, (Hsave, direction, k_min, k_max, steps)))