Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

MD module needs to be updated #3

Open
ark245 opened this issue Apr 23, 2021 · 0 comments
Open

MD module needs to be updated #3

ark245 opened this issue Apr 23, 2021 · 0 comments

Comments

@ark245
Copy link
Contributor

ark245 commented Apr 23, 2021

KT does not run MD yet.

if mode == 'md':
		md(atoms)
def md(atoms,dir_name='md',**kwargs):
	total_zeolite_atoms = analyze_zeolite_structure(atoms)
	atoms = assign_calculator(atoms,my_encut=300) # Using ASE calculator
	atoms = initialize_magmoms(atoms,total_zeolite_atoms)
	atoms.calc.set(ibrion=0,potim=0.5,tebeg=298, nsw=100000, isif=2, smass=0, **kwargs)
	cwd = os.getcwd()
	encut_for_dir = atoms.calc.float_params['encut']
	directory = dir_name + '_' + str(encut_for_dir)
	if not os.path.exists(directory):
		os.makedirs(directory)
	os.chdir(directory)
	energy = atoms.get_potential_energy() # Run vasp here
	#change back
	os.chdir(cwd)
	return(atoms)
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant