Skip to content

Commit

Permalink
import module optimize_lattice_parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
sakim8048 committed Jan 10, 2025
1 parent 5d42f0a commit 3f24d6b
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions pynta/main.py
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
import yaml
from copy import deepcopy
import numpy as np
from pynta.calculator import get_lattice_parameter
from pynta.calculator import get_lattice_parameter,optimize_lattice_parameter
from fireworks import LaunchPad, Workflow
from fireworks.queue.queue_launcher import rapidfire as rapidfirequeue
from fireworks.features.multi_launcher import launch_multiprocess
Expand Down Expand Up @@ -135,7 +135,8 @@ def generate_slab(self,skip_launch=False):
slab_type = getattr(ase.build,self.surface_type)
#optimize the lattice constant
if self.a is None:
a = get_lattice_parameter(self.metal,self.surface_type,self.software,self.lattice_opt_software_kwargs)
a = optimize_lattice_parameter(self.metal,self.surface_type,self.software,self.lattice_opt_software_kwargs)
#a = get_lattice_parameter(self.metal,self.surface_type,self.software,self.lattice_opt_software_kwargs, a0=3.15)
print("computed lattice constant of: {} Angstroms".format(a))
self.a = a
else:
Expand Down Expand Up @@ -641,6 +642,8 @@ def reset(self,wfid):

if opt_method == 'QuasiNewton':
namexyz = f'weakopt_{base}.xyz'
elif opt_method == 'sella': # if the opt_method is sella...
namexyz = f'{base}.xyz'
else:
namexyz = f'{base}_init.xyz'

Expand Down

0 comments on commit 3f24d6b

Please sign in to comment.