Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
61 commits
Select commit Hold shift + click to select a range
19cc760
New file for working with solute descriptors for solvated molecules; …
bslakman Dec 17, 2012
01ef413
further changes to solvation.py
bslakman Dec 20, 2012
fb73f4b
Created file for testing solvation.py and abraham.py for getting solu…
bslakman Jan 28, 2013
a3d13a5
Fixes to solvation module
bslakman Jan 28, 2013
6024903
Merge remote-tracking branch 'origin/master' into solvation
bslakman Jan 28, 2013
da7e746
Moved the solvationTest into rmgpy/data to live alongside the file it…
bslakman Jan 28, 2013
64328fb
getSoluteDataFromGroups(species) averages over resonance isomers.
bslakman Jan 28, 2013
bcbe4ef
Corrected some errors to solvation module and its test class.
bslakman Jan 28, 2013
f9860f4
Changed test to "assertAlmostEqual()" and added some test cases.
bslakman Feb 5, 2013
bae2615
Modified solvation module to read in Platts non atom centered groups.
bslakman Feb 19, 2013
b81ae79
Added methods for working with solvent descriptors.
bslakman Mar 4, 2013
8bcbae1
Changes for incorporating solvation.
bslakman Mar 4, 2013
19c3fa6
Reorganization of solvation module.
bslakman Mar 4, 2013
95774f2
Fixes to solvation module and calculating solvation correction.
bslakman Mar 6, 2013
fdaae95
More changes for working with solvents.
bslakman Mar 11, 2013
20bf1a5
Copied simple.pyx to liquid.pyx to start making a liquid reactor.
bslakman Mar 18, 2013
7ddef7f
Turned solver/liquid.pyx into a Liquid Phase Batch Reactor.
bslakman Mar 18, 2013
e300265
setup.py cythonizes the new liquid reactor
bslakman Mar 25, 2013
59ec133
Make "liquidReactor" field in input file.
bslakman Mar 18, 2013
31cb1c4
Made a liquid_phase example input file.
bslakman Mar 25, 2013
8826676
Converting initialMoleFractions keys from names into species objects …
bslakman Mar 25, 2013
70e4b41
Liquid reactors have arbitrary high 1000 Bar pressure for kinetics ca…
bslakman Mar 25, 2013
dcf76ee
Tests solvation module for calculating Abraham solute descriptors and…
bslakman Mar 25, 2013
b39bb3c
Merge branch 'master' into solvation
rwest Mar 26, 2013
37b15d9
Replaced liquid.pyx with modified simple.pyx
rwest Mar 26, 2013
288a41a
Turned solver/liquid.pyx into a Liquid Phase Batch Reactor.
bslakman Mar 18, 2013
558a7e9
Liquid reactors have arbitrary high 1000 Bar pressure for kinetics ca…
bslakman Mar 25, 2013
a8ed54a
Made liquid phase example input file save the concentration profiles.
rwest Mar 26, 2013
b40da6f
Merge pull request #1 from rwest/solvation
bslakman Mar 27, 2013
4a5b4c6
Fixed calculation of delG solvation.
bslakman Mar 27, 2013
a50cb08
Added test cases for delG solvation.
bslakman Mar 27, 2013
810210c
Made a sample input file for liquid-phase.
bslakman Apr 8, 2013
f12e644
Added solvation test cases for some other solvents.
bslakman Apr 8, 2013
65e2be3
Add method for finding McGowan volume of a solute.
bslakman Apr 8, 2013
18fc7e3
Added solvent viscosity and temperature to RMG model.
bslakman Apr 8, 2013
c72baff
Method for calculating diffusivity in a solvent.
bslakman Apr 8, 2013
c2c147d
Some fixes for working with diffusivity.
bslakman Apr 9, 2013
79edf96
Count bonds the correct number of times when calculating McGowan volume.
bslakman Apr 14, 2013
129f9a6
Methods for calculating k_diff, the diffusion factor, and the pre-exp…
bslakman Apr 14, 2013
67a9142
Moved method for calculating Stokes-Einstein diffusivity.
bslakman Apr 16, 2013
c7e3a3d
Fix to setMcGowanVolume method
bslakman Apr 23, 2013
12e0a49
Moved methods for diffusion kinetics into a new file.
bslakman Apr 23, 2013
1310785
Removed the arbitrary temperature that had been used to calculate sol…
bslakman Apr 23, 2013
210aa21
Merge remote-tracking branch 'refs/remotes/richard/master' into solva…
bslakman Apr 23, 2013
ad1d80f
Fixes to input file, and model.py after merge
bslakman Apr 30, 2013
014b56f
Temperature is a float, not a Quantity
bslakman May 2, 2013
96c3920
diffusionLimiter is module-level variable
bslakman May 2, 2013
b79a637
Viscosity should be a Quantity with units
bslakman May 2, 2013
6b464ec
Cleaned up an ugly printout in logging
bslakman May 10, 2013
0d85d36
Cleanup and comments for some modules.
bslakman May 13, 2013
4f114f2
Solvent viscosity can now be calculated at any temperature.
bslakman May 15, 2013
1f70cdc
Error message now more clear.
bslakman May 15, 2013
d2e5aaf
Keep viscosity a value, rather than a Quantity.
bslakman May 22, 2013
c737568
Calculation of intrinsic rate correction for a solvent.
bslakman May 22, 2013
83a52ff
Merge remote-tracking branch 'refs/remotes/origin/master' into solvation
bslakman May 24, 2013
a8b0c43
Removed unused import.
bslakman Jun 10, 2013
eca7ca5
Fix to solvation module.
bslakman Jun 10, 2013
a46b979
Speed up calculations for k_eff.
bslakman Jun 10, 2013
54d1399
Changes for using a solute library.
bslakman Jun 11, 2013
c6a082b
Merge remote-tracking branch 'origin/master' into solvation.
bslakman Jun 17, 2013
f082a5c
Fixed some bugs involving solvation
bslakman Jul 22, 2013
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
59 changes: 59 additions & 0 deletions examples/rmg/liquid_phase/input.py
Original file line number Diff line number Diff line change
@@ -0,0 +1,59 @@
# Data sources
database(
thermoLibraries = ['primaryThermoLibrary'],
reactionLibraries = [],
seedMechanisms = [],
kineticsDepositories = ['training'],
kineticsFamilies = ['!Intra_Disproportionation'],
kineticsEstimator = 'rate rules',
)

# List of species
species(
label='octane',
reactive=True,
structure=SMILES("C(CCCCC)CC"),
)

species(
label='oxygen',
reactive=True,
structure=SMILES("[O][O]"),
)

# Reaction systems
liquidReactor(
temperature=(500,'K'),
initialConcentrations={
"octane": (6.154e-3,'mol/cm^3'),
"oxygen": (4.953e-6,'mol/cm^3')
},
terminationConversion={
'octane': 0.9,
},
terminationTime=(1e6,'s'),
)

solvation(
solvent='octane'
)

simulator(
atol=1e-16,
rtol=1e-8,
)

model(
toleranceKeepInEdge=1E-9,
toleranceMoveToCore=0.001,
toleranceInterruptSimulation=0.1,
maximumEdgeSpecies=100000
)

options(
units='si',
saveRestartPeriod=None,
drawMolecules=False,
generatePlots=False,
saveConcentrationProfiles=True,
)
4 changes: 4 additions & 0 deletions examples/rmg/minimal/input.py
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,10 @@
terminationTime=(1e6,'s'),
)

solvation(
solvent='water'
)

simulator(
atol=1e-16,
rtol=1e-8,
Expand Down
2 changes: 1 addition & 1 deletion rmgpy/data/kinetics/family.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,7 +39,7 @@

from rmgpy.data.base import Database, Entry, LogicNode, LogicOr, ForbiddenStructures,\
ForbiddenStructureException, getAllCombinations
from rmgpy.reaction import Reaction, ReactionError
from rmgpy.reaction import Reaction
from rmgpy.kinetics import Arrhenius, ArrheniusEP, ThirdBody, Lindemann, Troe, \
PDepArrhenius, MultiArrhenius, MultiPDepArrhenius, \
Chebyshev, KineticsData, PDepKineticsModel
Expand Down
16 changes: 15 additions & 1 deletion rmgpy/data/rmg.py
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@
from thermo import ThermoDatabase
from kinetics import KineticsDatabase
from statmech import StatmechDatabase
from solvation import SolvationDatabase

# Module-level variable to store the (only) instance of RMGDatabase in use.
database = None
Expand All @@ -55,6 +56,7 @@ def __init__(self):
self.forbiddenStructures = None
self.kinetics = None
self.statmech = None
self.solvation = None

# Store the newly created database in the module.
global database
Expand All @@ -69,7 +71,8 @@ def load(self,
kineticsFamilies=None,
kineticsDepositories=None,
statmechLibraries=None,
depository=True
depository=True,
solvation=True,
):
"""
Load the RMG database from the given `path` on disk, where `path`
Expand All @@ -87,6 +90,9 @@ def load(self,
kineticsDepositories
)
self.loadStatmech(os.path.join(path, 'statmech'), statmechLibraries, depository)

if solvation:
self.loadSolvation(os.path.join(path, 'solvation'))

def loadThermo(self, path, thermoLibraries=None, depository=True):
"""
Expand Down Expand Up @@ -133,6 +139,14 @@ def loadKinetics(self,
depositories=kineticsDepositories
)

def loadSolvation(self, path):
"""
Load the RMG solvation database from the given `path` on disk, where
`path` points to the top-level folder of the RMG solvation database.
"""
self.solvation = SolvationDatabase()
self.solvation.load(path)

def loadStatmech(self, path, statmechLibraries=None, depository=True):
"""
Load the RMG statmech database from the given `path` on disk, where
Expand Down
Loading