A CME simulation that contains reactions and species.
More...
A CME simulation that contains reactions and species.
def pyLM.RDME.CMESimulation.__init__ |
( |
|
self, |
|
|
|
volume = None , |
|
|
|
name = "unnamed" |
|
) |
| |
A constructor fo the CMESimulation.
- Parameters
-
volume | The reaction vessel volume (in Litres). Specifying 'None' signifies that the user has already accounted for volume in rate constants. |
name | The name of the CME simulation; Default: "unnamed" |
- Returns
- self
def pyLM.RDME.CMESimulation.addConcentration |
( |
|
self, |
|
|
|
species = 'unknown' , |
|
|
|
conc = 0.0 |
|
) |
| |
Add a concentration of particles of the specified type to the simulation.
- Parameters
-
self | |
species | The name of the specie to add |
concentration | The concentration of the species (Molar). Particle count is rounded to nearest integer. |
- Exceptions
-
An | error if the volume is not specified |
def pyLM.RDME.CMESimulation.addParticles |
( |
|
self, |
|
|
|
species = 'unknown' , |
|
|
|
count = 1 |
|
) |
| |
Add a specified number of particles of the specified type to the specified region.
- Parameters
-
self | |
species | The name of the specie to add particles to |
count | The number of that particle to start with (default 1) |
def pyLM.RDME.CMESimulation.addReaction |
( |
|
self, |
|
|
|
reactant, |
|
|
|
product, |
|
|
|
rate |
|
) |
| |
Adds a 0th, 1st or 2nd order reaction.
- Parameters
-
self | |
reactant | The list or reactants |
product | The list of products |
rate | The rate of reaction |
def pyLM.RDME.CMESimulation.defineSpecies |
( |
|
self, |
|
|
|
species |
|
) |
| |
Define a specie/s of particles that exist in the simulation.
- Parameters
-
self | |
species | A list of species to add to the simulation |
pyLM.RDME.CMESimulation.filename |
pyLM.RDME.CMESimulation.initial_counts |
pyLM.RDME.CMESimulation.name |
pyLM.RDME.CMESimulation.parameters |
pyLM.RDME.CMESimulation.particleMap |
pyLM.RDME.CMESimulation.reactions |
pyLM.RDME.CMESimulation.replicates |
pyLM.RDME.CMESimulation.species_id |
pyLM.RDME.CMESimulation.volume |
The documentation for this class was generated from the following file: