Skip to content

Ground-state cohesive energy calculated using pymatgen is very different from the one reported in reference. #3770

Closed Answered by hongyi-zhao
hongyi-zhao asked this question in Q&A
Discussion options

You must be logged in to vote

Got it. The MP database provides multiple dataset, so the following method should be used:

In [15]: from mp_api.client import MPRester
    ...: from collections import defaultdict
    ...: 
    ...: def analyze_material_calculations(material_id):
    ...:     with MPRester() as mpr:
    ...:         entries = mpr.get_entries(material_id)
    ...: 
    ...:         calculations = defaultdict(list)
    ...: 
    ...:         for entry in entries:
    ...:             run_type = entry.parameters.get("run_type", "Unknown")
    ...:             composition = entry.composition
    ...:             num_atoms = sum(composition.values())  # 总原子数
    ...:             energy_per_fu = entry.energy / c…

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by hongyi-zhao
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
1 participant