from atomate.utils.utils import get_database
from pymatgen import Structure
from pymatgen.analysis.elasticity.elastic import ElasticTensor
PATH_TO_MY_DB_JSON = <<my installation directory >>
atomate_db = get_database(PATH_TO_MY_DB_JSON, admin = True)
results = atomate_db.elasticity.find()
entries = [entry for entry in results]
for entry in entries:
structure = Structure.from_dict(entry['optimized_structure'])
elastic_tensor = entry['elastic_tensor']['raw'] # convert to pymatgen object
elastic_tensor = ElasticTensor.from_voigt(elastic_tensor)
print(elastic_tensor.g_vrh)
print(elastic_tensor.k_vrh)
The values I got for graphene is the same as what I had by doing calculations manually and performing a fit, but the values for MoS2 is very off. I am suspecting that the units are not consistent. I wonder what the unit the output is? I couldn't find anything in the documentation. Thanks in advance for your help!
Best,
Zoe
--
You received this message because you are subscribed to the Google Groups "atomate" group.
To unsubscribe from this group and stop receiving emails from it, send an email to atomate+u...@googlegroups.com.
To post to this group, send email to ato...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/atomate/8e49939d-1536-4cb1-965f-63f55c7b44b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.
To unsubscribe from this group and stop receiving emails from it, send an email to ato...@googlegroups.com.
To post to this group, send email to ato...@googlegroups.com.
To view this discussion on the web visit https://groups.google.com/d/msgid/atomate/8e49939d-1536-4cb1-965f-63f55c7b44b7%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.