예제 #1
0
def run_gaussmd(com_file):
    name = com_file[5].split(" ")[-1].strip()
    run_dir = name+"_run"
    try:
        os.mkdir(run_dir)
    except OSError:
        shutil.rmtree(run_dir)
        os.mkdir(run_dir)
    com = ga_tasks.com_writer(com_file,name)
    sb.call(("mv "+com+" "+run_dir),shell=True)
    os.chdir(run_dir)
    sb.call(("g09run "+com),shell=True)
    outfile = name+".log"
    max_d_moment = ga_tasks.max_d_grabber(outfile)
    os.chdir("..")
    shutil.rmtree(run_dir)
    return(name,max_d_moment)
예제 #2
0
def run_gaussmd(com_file):
    name = com_file[5].split(" ")[-1].strip()
    run_dir = name + "_run"
    try:
        os.mkdir(run_dir)
    except OSError:
        shutil.rmtree(run_dir)
        os.mkdir(run_dir)
    com = ga_tasks.com_writer(com_file, name)
    sb.call(("mv " + com + " " + run_dir), shell=True)
    os.chdir(run_dir)
    sb.call(("g09run " + com), shell=True)
    outfile = name + ".log"
    max_d_moment = ga_tasks.max_d_grabber(outfile)
    os.chdir("..")
    shutil.rmtree(run_dir)
    return (name, max_d_moment)
예제 #3
0
def run_gauss(com_file):
    name = com_file[5].split(" ")[-1].strip()
    run_dir = name+"_run"
    try:
        os.mkdir(run_dir) 
    except OSError:
        shutil.rmtree(run_dir)
        os.mkdir(run_dir)    
    com = ga_tasks.com_writer(com_file,name)
    sb.call(("mv "+com+" "+run_dir),shell=True)
    os.chdir(run_dir)
    sb.call(("g09 "+com),shell=True)
    outfile = name+".log"
    energy = ga_tasks.energy_grabber(outfile)
    structure = ga_tasks.structure_grabber(outfile)
    os.chdir("..")
    shutil.rmtree(run_dir)
    return (name,energy,structure)
예제 #4
0
def run_gauss(com_file):
    name = com_file[5].split(" ")[-1].strip()
    run_dir = name + "_run"
    try:
        os.mkdir(run_dir)
    except OSError:
        shutil.rmtree(run_dir)
        os.mkdir(run_dir)
    com = ga_tasks.com_writer(com_file, name)
    sb.call(("mv " + com + " " + run_dir), shell=True)
    os.chdir(run_dir)
    sb.call(("g09 " + com), shell=True)
    outfile = name + ".log"
    energy = ga_tasks.energy_grabber(outfile)
    structure = ga_tasks.structure_grabber(outfile)
    os.chdir("..")
    shutil.rmtree(run_dir)
    return (name, energy, structure)