Skip to content

Commit 57d0c53

Browse files
committed
RMG-Py v2.1.5 release
2 parents 352fafe + 5cf04af commit 57d0c53

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

67 files changed

+3991
-503
lines changed

.travis.yml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -33,12 +33,14 @@ before_install:
3333
install:
3434
- conda env create -f environment_linux.yml
3535
- source activate rmg_env
36+
- conda list
3637
- pip install codecov
3738
- yes 'Yes' | $HOME/miniconda/envs/rmg_env/bin/mopac $MOPACKEY > /dev/null
3839
- make
3940

4041
script:
41-
- make test-all
42+
- make test-unittests
43+
- make test-functional
4244
- make test-database
4345

4446
after_success:

Makefile

Lines changed: 21 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -83,13 +83,31 @@ else
8383
nosetests --nocapture --nologcapture --all-modules --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
8484
endif
8585

86-
test:
86+
test-unittests:
8787
ifeq ($(OS),Windows_NT)
88-
nosetests --nocapture --nologcapture --all-modules --attr '!auth' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
88+
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
8989
else
9090
mkdir -p testing/coverage
9191
rm -rf testing/coverage/*
92-
nosetests --nocapture --nologcapture --all-modules --attr '!auth' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
92+
nosetests --nocapture --nologcapture --all-modules -A 'not functional' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
93+
endif
94+
95+
test test-unittests-non-auth:
96+
ifeq ($(OS),Windows_NT)
97+
nosetests --nocapture --nologcapture --all-modules -A 'not functional and not auth' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
98+
else
99+
mkdir -p testing/coverage
100+
rm -rf testing/coverage/*
101+
nosetests --nocapture --nologcapture --all-modules -A 'not functional and not auth' --verbose --with-coverage --cover-inclusive --cover-package=rmgpy --cover-erase --cover-html --cover-html-dir=testing/coverage --exe rmgpy
102+
endif
103+
104+
test-functional:
105+
ifeq ($(OS),Windows_NT)
106+
nosetests --nocapture --nologcapture --all-modules -A 'functional' --verbose --exe rmgpy
107+
else
108+
mkdir -p testing/coverage
109+
rm -rf testing/coverage/*
110+
nosetests --nocapture --nologcapture --all-modules -A 'functional' --verbose --exe rmgpy
93111
endif
94112

95113
test-database:

README.md

Lines changed: 17 additions & 20 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,12 @@
11
# <img align="top" src="https://raw.githubusercontent.com/ReactionMechanismGenerator/RMG-Py/master/documentation/source/_static/rmg-logo-small.png"> Reaction Mechanism Generator (RMG)
22

3+
[![Build status](https://img.shields.io/travis/ReactionMechanismGenerator/RMG-Py/master.svg)](https://travis-ci.org/ReactionMechanismGenerator/RMG-Py)
4+
[![Codecov report](https://img.shields.io/codecov/c/github/ReactionMechanismGenerator/RMG-Py/master.svg)](https://codecov.io/gh/ReactionMechanismGenerator/RMG-Py)
5+
[![Codacy report](https://img.shields.io/codacy/grade/c4b23c89e2e6486e981704d8d973d3e7/master.svg)](https://www.codacy.com/app/ReactionMechanismGenerator/RMG-Py/dashboard)
6+
[![GitHub release](https://img.shields.io/github/release/ReactionMechanismGenerator/RMG-Py.svg)](https://github.com/ReactionMechanismGenerator/RMG-Py/releases)
7+
[![Anconda](https://img.shields.io/conda/v/rmg/rmg.svg)](https://anaconda.org/rmg/rmg)
8+
[![Gitter](https://img.shields.io/gitter/room/ReactionMechanismGenerator/RMG-Py.svg)](https://gitter.im/ReactionMechanismGenerator/RMG-Py)
9+
[![RMG Website](https://img.shields.io/website-up-down-green-red/http/rmg.mit.edu.svg?label=rmg%20website)](http://rmg.mit.edu/)
310

411
## Description
512
This repository contains the Python version of **Reaction Mechanism Generator (RMG)**,
@@ -16,14 +23,9 @@ Gaussian, MOPAC, QChem, and MOLPRO.
1623
- [RMG Github Repository](https://github.com/ReactionMechanismGenerator/RMG-Py): contains the latest source code for RMG
1724
- [RMG-database Github Repository](https://github.com/ReactionMechanismGenerator/RMG-database): contains source code for the latest version of the database
1825

19-
## Latest Stable Release
20-
**RMG v2.1.4**
21-
[![Anaconda-Server Badge](https://anaconda.org/rmg/rmg/badges/version.svg)](https://anaconda.org/rmg/rmg)
22-
23-
View the [Release Notes](http://reactionmechanismgenerator.github.io/RMG-Py/users/rmg/releaseNotes.html).
24-
2526
## How to Install
26-
View the [Download and Install](http://reactionmechanismgenerator.github.io/RMG-Py/users/rmg/installation/index.html) page.
27+
You can either download the source from GitHub and compile yourself, or download the binaries from Anaconda.
28+
Please see the [Download and Install](http://reactionmechanismgenerator.github.io/RMG-Py/users/rmg/installation/index.html) page for detailed instructions.
2729

2830
## Documentation
2931
- [RMG Documentation](http://ReactionMechanismGenerator.github.io/RMG-Py/) ([PDF version](https://github.com/ReactionMechanismGenerator/RMG-Py/raw/master/documentation/RMG-Py_and_CanTherm_Documentation.pdf))
@@ -32,18 +34,14 @@ View the [Download and Install](http://reactionmechanismgenerator.github.io/RMG-
3234

3335
Alternatively, PDF versions of all the documentation can also be found in the `documentation` folder of the source code.
3436

35-
## Credits
36-
37-
- [Professor William H. Green's research group](http://cheme.scripts.mit.edu/green-group/) at the
38-
[Massachusetts Institute of Technology](http://web.mit.edu/)
39-
- [Professor Richard H. West's research group](http://www.northeastern.edu/comocheng/) at
40-
[Northeastern University](http://www.northeastern.edu/).
37+
## How to Contribute
38+
Please see the [Contributor Guidelines](https://github.com/ReactionMechanismGenerator/RMG-Py/wiki/RMG-Contributor-Guidelines)
39+
for details on how to contribute to RMG-Py or RMG-database.
4140

4241
## How to Give Feedback
4342

4443
Please post any issues you may have to the [issues page](https://github.com/ReactionMechanismGenerator/RMG-Py/issues/)
4544
or drop in to the [chat room](https://gitter.im/ReactionMechanismGenerator/RMG-Py) or email [rmg_dev@mit.edu](mailto:rmg_dev@mit.edu) if you have questions.
46-
[![Join the chat at https://gitter.im/ReactionMechanismGenerator/RMG-Py](https://badges.gitter.im/ReactionMechanismGenerator/RMG-Py.svg)](https://gitter.im/ReactionMechanismGenerator/RMG-Py?utm_source=badge&utm_medium=badge&utm_campaign=pr-badge&utm_content=badge)
4745

4846
## Useful Links
4947

@@ -52,10 +50,9 @@ perform thermodynamics and kinetics searches
5250
- [Wiki](https://github.com/ReactionMechanismGenerator/RMG-Py/wiki): a wiki for developer notes
5351
- [Issues Page](https://github.com/ReactionMechanismGenerator/RMG-Py/issues/): view current issues and feature requests
5452

53+
## Credits
5554

56-
## Continuous Integration
57-
58-
We have a continuous integration build test suite
59-
which you can access at https://travis-ci.org/ReactionMechanismGenerator/RMG-Py
60-
The current build status is
61-
[![Build Status](https://travis-ci.org/ReactionMechanismGenerator/RMG-Py.svg?branch=master)](https://travis-ci.org/ReactionMechanismGenerator/RMG-Py)
55+
- [Professor William H. Green's research group](http://cheme.scripts.mit.edu/green-group/) at the
56+
[Massachusetts Institute of Technology](http://web.mit.edu/)
57+
- [Professor Richard H. West's research group](http://www.northeastern.edu/comocheng/) at
58+
[Northeastern University](http://www.northeastern.edu/).

documentation/source/users/rmg/database/kinetics.rst

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,6 +71,8 @@ Below is a list of pre-packaged kinetics library reactions in RMG:
7171
+---------------------------------------+------------------------------------------------------------------------------------------+
7272
|BurkeH2O2inN2 |Comprehensive H2/O2 kinetic model in N2 atmosphere |
7373
+---------------------------------------+------------------------------------------------------------------------------------------+
74+
|C2H4+O_Klipp2017 |C2H4 + O intersystem crossing reactions, probably important for all C/H/O combustion |
75+
+---------------------------------------+------------------------------------------------------------------------------------------+
7476
|C10H11 |Cyclopentadiene pyrolysis in the presence of ethene |
7577
+---------------------------------------+------------------------------------------------------------------------------------------+
7678
|C3 |Cyclopentadiene pyrolysis in the presence of ethene |

documentation/source/users/rmg/releaseNotes.rst

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,39 @@
44
Release Notes
55
*************
66

7+
RMG-Py Version 2.1.5
8+
====================
9+
Date: October 18, 2017
10+
11+
- New bicyclic formula:
12+
- Estimates polycyclic corrections for unsaturated bicyclics by adjusting the correction for the saturated version
13+
- Can provide a decent estimate in many cases where there is not an exact match
14+
15+
- Other changes:
16+
- Refactored simulation algorithm to properly add multiple objects per iteration
17+
- Print equilibrium constant and reverse rate coefficient values when using Cantherm to calculate kinetics
18+
- Speed up degeneracy calculation by reducing unnecessary operations
19+
20+
- Fixes:
21+
- Loosen tolerance for bond order identification to account for floating point error
22+
- Fixed uncertainty analysis to allow floats as bond orders
23+
- Fixed some comment parsing issues in uncertainty analysis
24+
- Added product structure atom relabeling for families added in RMG-database v2.1.5
25+
- Fixed issue with automatic debugging of kinetics errors due to forbidden structures
26+
27+
RMG-database Version 2.1.5
28+
==========================
29+
Date: October 18, 2017
30+
31+
- Additions:
32+
- New thermo groups added for species relevant in cyclopentadiene and natural gas pyrolysis
33+
- Added C2H4+O_Klipp2017 kinetics library
34+
35+
- Fixes:
36+
- Prevent charged carbenes from reacting in Singlet_Carbene_Intra_Disproportionation
37+
- Updated H_Abstraction rates in ethylamine library and corresponding training reactions
38+
39+
740
RMG-Py Version 2.1.4
841
====================
942
Date: September 08, 2017

environment_linux.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- libgcc # [unix]
77
- python
88
- numpy >=1.10.0
9-
- cantera >=2.2
9+
- cantera >=2.3.0a3
1010
- coolprop
1111
- cython >=0.25.2
1212
- matplotlib >=1.5

environment_mac.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- libgcc # [unix]
77
- python
88
- numpy >=1.10.0
9-
- cantera >=2.2
9+
- cantera >=2.3.0a3
1010
- coolprop
1111
- cython >=0.25.2
1212
- matplotlib >=1.5

environment_windows.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ dependencies:
66
- mingwpy
77
- python
88
- numpy >=1.10.0
9-
- cantera >=2.2
9+
- cantera >=2.3.0a3
1010
- coolprop
1111
- cython >=0.25.2
1212
- matplotlib >=1.5
Lines changed: 68 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,68 @@
1+
# Data sources
2+
database(
3+
thermoLibraries = ['primaryThermoLibrary'],
4+
reactionLibraries = [],
5+
seedMechanisms = [],
6+
kineticsDepositories = ['training'],
7+
kineticsFamilies = 'default',
8+
kineticsEstimator = 'rate rules',
9+
)
10+
11+
# List of species
12+
species(
13+
label='ethane',
14+
reactive=True,
15+
structure=SMILES("CC"),
16+
)
17+
18+
# Reaction systems
19+
simpleReactor(
20+
temperature=(1350,'K'),
21+
pressure=(1.0,'bar'),
22+
initialMoleFractions={
23+
"ethane": 1.0,
24+
},
25+
terminationConversion={
26+
'ethane': 0.9,
27+
},
28+
terminationTime=(1e6,'s'),
29+
)
30+
31+
simpleReactor(
32+
temperature=(1000,'K'),
33+
pressure=(1.0,'bar'),
34+
initialMoleFractions={
35+
"ethane": 1.0,
36+
},
37+
terminationConversion={
38+
'ethane': 0.9,
39+
},
40+
terminationTime=(1e6,'s'),
41+
)
42+
43+
44+
45+
simulator(
46+
atol=1e-16,
47+
rtol=1e-8,
48+
)
49+
50+
model(
51+
toleranceKeepInEdge=0.0,
52+
toleranceMoveToCore=100,
53+
toleranceInterruptSimulation=100,
54+
maximumEdgeSpecies=100000,
55+
toleranceMoveEdgeReactionToSurface=2.0,
56+
toleranceMoveSurfaceReactionToCore=100,
57+
toleranceMoveSurfaceSpeciesToCore=1e-6,
58+
maxNumObjsPerIter=0,
59+
)
60+
61+
options(
62+
units='si',
63+
saveRestartPeriod=None,
64+
generateOutputHTML=False,
65+
generatePlots=False,
66+
saveEdgeSpecies=True,
67+
saveSimulationProfiles=True,
68+
)

examples/rmg/minimal_staged/input.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -50,9 +50,9 @@
5050
model( #second stage
5151
toleranceKeepInEdge=0.0,
5252
toleranceMoveToCore=0.1,
53-
toleranceInterruptSimulation=0.1,
53+
toleranceInterruptSimulation=1.0,
5454
maximumEdgeSpecies=100000,
55-
maxNumObjsPerIter=2,
55+
maxNumObjsPerIter=3,
5656
maxNumSpecies = 100,
5757
)
5858

0 commit comments

Comments
 (0)