Skip to content

Solvation ready to merge#126

Closed
bslakman wants to merge 61 commits into
ReactionMechanismGenerator:masterfrom
bslakman:solvation
Closed

Solvation ready to merge#126
bslakman wants to merge 61 commits into
ReactionMechanismGenerator:masterfrom
bslakman:solvation

Conversation

@bslakman
Copy link
Copy Markdown
Member

This brings:

  • solvent corrections to thermochemistry
  • liquid phase reactor model
  • diffusion limited reaction kinetics

Will also need to update the database.

bslakman and others added 30 commits December 17, 2012 16:44
Not sure this is the best thing to do, but it's one option.
The LSER is a linear equation, so linear averaging seems reasonable.
What did @ajalan do in Java?
Modified input file, loading and building models for including salvation. Changed the thermo of a species based on its solute parameters and the solvent it's in.
If equilibrium constant is 0, raise an error. Update solvent name in the main method. Correct the way we add enthalpy and entropy of solvation to Wilhoit.S0 and Wilhoit.H0.
There is no pressure, and you initialize it with species 
concentrations (IN SI UNITS!) not mole fractions.

It looks like the ODEs were already neglecting volume changes
due to stoichiometry, so we don't need to change that here.
Should be able to use it something like:

# Reaction systems
liquidReactor(
    temperature=(750,'K'),
    initialConcentrations={
        "ethane": (1.0,'mol/L')
    },
    terminationConversion={
        'ethane': 0.9,
    },
    terminationTime=(1e6,'s'),
)
...but don't forget the
solvation(
	solvent='water'
)
Settings might not make much sense yet, but it's a start.
…moved.

After reading an input file, the dictionary storing initial mole fractions
has its keys changed from species names into species objects. This is now
delegated to the reactonSystem object, so that liquidReactor and simpleReactor
can do it differently (liquidReactors don't have initial mole fractions).
…lculations.

This should ensure the high pressure limit for any pressure-dependent
reactions. Perhaps there's a better way to do this..?
Conflicts:
	rmgpy/rmg/model.py
	rmgpy/solver/simple.pyx

Biggest risk of conflicts is the change in the solvers.
This new one treats y as the mole number (not concentration)
and has analytical Jacobian. 
I will then apply the changes again to turn it back into a LiquidReactor.
There is no pressure, and you initialize it with species
concentrations (IN SI UNITS!) not mole fractions.

the volume is calculated at the beginning so that you contain
one mole total of initial core species (like for the ideal gas reactor
where we have used mole fractions as initial mole number) but
then the volume is stored and held constant. This is then used
to calculate concentrations as the simulation proceeds.

This was based on a couple of cherry-picked commits that has been modified
by @rwest Richard West <r.west@neu.edu> to reflect recent changes
…lculations.

This should ensure the high pressure limit for any pressure-dependent
reactions. Perhaps there's a better way to do this..?

Conflicts:
	rmgpy/solver/liquid.pyx
Resolved on cherry-pick by @rwest Richard West <r.west@neu.edu>
This helped me debug something; doesn't hurt to leave it on.
All master changes merged with solvation. Changes to base and simple reactor, and now a new liquid reactor class incorporating these changes
Factor for converting from logK to lnK was incorrect
bslakman added 27 commits April 8, 2013 13:43
The McGowan volume, V, is now a 6th solute descriptor and is set by the
method setMcGowanVolume(species)
Right now, the temperature is arbitrarily set for that which you want 
the diffusivity limit to be evaluated in the chemkin output.
Uses the Stokes-Einstein diffusivity model for spheres
…onential factor.

The diffusion factor is the effective rate constant divided by the intrinsic
rate constant. The pre-exponential factor, A, is decreased by the diffusion
factor.
This method is now in the solvation module instead of the Species class in model.py.
Sets the V parameter to the McGowan volume rather than returning it
New class DiffusionLimited contains methods for calculating diffusion
limited kinetics given a reaction's intrinsic kinetics
…tion

Conflicts:
	rmgpy/reaction.py
	rmgpy/rmg/model.py
There is one DiffusionLimited object, diffusionLimiter. It is enabled
upon startup if there is solvation
Solvation, DiffusionLimited, Reaction & Model
We use 5 solvent parameters from the DIPPR for a viscosity
correlation found in Perry's Handbook.
This will speed things up a little by not doing quantity
conversions for every reaction and simulation step.
Using Abraham's A & B values for solutes, calculate a correction
to the intrinsic rate constant for a reaction in solution.
If we already know the k_eff for a reaction at a given temperature,
we don't need to calculate it again, just look it up.
Solvation branch should now be ready to merge.
@rwest rwest closed this in 16e62ba Nov 26, 2013
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants