Skip to content

rn.build() on MGPE-enumerated reactions #280

@ancarnevali

Description

@ancarnevali

Hi!
I am trying to construct a reaction network after enumerating reactions with MinimizeGrandPotentialEnumerator, but am encountering some probelms when running find_pathways.

with MPRester(key) as mpr:
    entries = mpr.get_entries_in_chemsys("Fe-O-Nb")
temp = 1073
gibbs_entries = GibbsEntrySet.from_computed_entries(entries, temp)
tresh = 0.005
entry_set = gibbs_entries.filter_by_stability(tresh)
###
mgpe = minimizeGrandPotentialEnumerator(
    open_elem=Element("O"), mu=0, filter_duplicates=True
)
rxns = mgpe.enumerate(entry_set)
grand_potential_rxns = rxns.set_chempot(open_el=Element("O"), chempot=0.0)
###
cf = Softplus(temp)
rn = ReactionNetwork(grand_potential_rxns, cf) # should I be passing non `set_chempot`ted reactions instead?
rn.build()
rn.set_precursors(["Fe2O3", "NbO"])
rn.set_target("Nb2FeO6")
paths = rn.find_pathways(["Nb2FeO6"])

This returns no paths for the target compound.
On a sidenote, plotting the rn shows a rather expected graph, too. This might indicate that, if there is an issue, this might be in the find_pathways method?

Running the same script with the basic open enumerator be = BasicOpenEnumerator(open_phases=["O2"], filter_duplicates=True) has no issues though, and returns reaction paths as expected.

Is there something I am missing about the use of MGPE for building the reaction network, or what do you think is going on here?

Thank you!

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions