RMG-Py
RMG-Py copied to clipboard
An error when run a case about pyrolysis of CH4+H2S. KeyError: 'Node not found for atom {\'*\': <Atom \'S....-\'>} in molecule <Molecule "[S-](=C)[SH+]#C"> in thermo database radical.'
Bug Description
Here is the error information.
After model enlargement:
The model core has 39 species and 474 reactions
The model edge has 266 species and 7388 reactions
For reaction generation 1 process is used.
Generating thermo for new species...
Error: Couldn't find in radical thermo database:
Error: <Molecule "S-[SH+]#C">
Error: multiplicity 5
1 S u0 p0 c+1 {2,S} {4,T} {5,S}
2 S u4 p0 c-1 {1,S} {3,D}
3 C u0 p0 c0 {2,D} {6,S} {7,S}
4 C u0 p0 c0 {1,T} {8,S}
5 H u0 p0 c0 {1,S}
6 H u0 p0 c0 {3,S}
7 H u0 p0 c0 {3,S}
8 H u0 p0 c0 {4,S}
Traceback (most recent call last):
File "/home/zhou/anaconda3/envs/rmg_env/bin/rmg.py", line 118, in
How To Reproduce
Here is the input.py.
database(
thermoLibraries = ['primaryThermoLibrary','SulfurLibrary'],
reactionLibraries = [],
seedMechanisms = [],
kineticsDepositories = ['training'],
kineticsFamilies = 'default',
kineticsEstimator = 'rate rules',
)
species(
label='H2S',
reactive=True,
structure=adjacencyList(
"""
1 S u0 p2 c0 {2,S} {3,S}
2 H u0 p0 c0 {1,S}
3 H u0 p0 c0 {1,S}
"""
),
)
species(
label='CH4',
reactive=True,
structure=SMILES("[CH4]"),
)
species(
label='N2',
reactive=False,
structure=SMILES('N#N'),
)
simpleReactor(
temperature=(1400,'K'),
pressure=(1,'bar'),
initialMoleFractions={
"H2S": 0.0175,
"CH4": 0.0245,
"N2": 0.958,
},
terminationConversion={
'H2S': 0.85,
},
terminationTime=(1000,'s'),
)
simulator(
atol=1e-16,
rtol=1e-8,
)
model(
toleranceKeepInEdge=1E-8,
toleranceMoveToCore=0.01,
toleranceInterruptSimulation=0.01,
maximumEdgeSpecies=100000
)
options(
units='si',
saveRestartPeriod=None,
generateOutputHTML=True,
generatePlots=False,
saveEdgeSpecies=False,
saveSimulationProfiles=False,
)
generatedSpeciesConstraints(
allowed=['input species','seed mechanisms','reaction libraries'],
maximumCarbonAtoms=12,
maximumSulfurAtoms=2,
#maximumHeavyAtoms=10,
#maximumRadicalElectrons=10,
)
Installation Information
- OS (include version if known): Ubuntu 18 in VMware
- Installation method: installation from binary , with anaconda)
- RMG-Py: 3.1.0
- RMG-database: 3.1.0
I'm honestly more amazed that whatever made this species made it into core than that this species existed. Are you sure you need a 1.0e-8 tolerance? I think that's causing it to add some crazy species that are reacting to make this super crazy species RMG can't handle.
This issue is being automatically marked as stale because it has not received any interaction in the last 90 days. Please leave a comment if this is still a relevant issue, otherwise it will automatically be closed in 30 days.