pyLM  v1.1
A Python Problem Solving Environment for the simulation of stochastic biological systems
 All Classes Namespaces Files Functions Variables Pages
Public Member Functions | Public Attributes | List of all members
pyLM.RDME.CMESimulation Class Reference

A CME simulation that contains reactions and species. More...

Public Member Functions

def __init__
 A constructor fo the CMESimulation. More...
 
def defineSpecies
 Define a specie/s of particles that exist in the simulation. More...
 
def addParticles
 Add a specified number of particles of the specified type to the specified region. More...
 
def addConcentration
 Add a concentration of particles of the specified type to the simulation. More...
 
def addReaction
 Adds a 0th, 1st or 2nd order reaction. More...
 

Public Attributes

 particleMap
 
 species_id
 
 initial_counts
 
 reactions
 
 parameters
 
 volume
 
 name
 
 replicates
 
 filename
 

Detailed Description

A CME simulation that contains reactions and species.

Constructor & Destructor Documentation

def pyLM.RDME.CMESimulation.__init__ (   self,
  volume = None,
  name = "unnamed" 
)

A constructor fo the CMESimulation.

Parameters
volumeThe reaction vessel volume (in Litres). Specifying 'None' signifies that the user has already accounted for volume in rate constants.
nameThe name of the CME simulation; Default: "unnamed"
Returns
self

Member Function Documentation

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
speciesThe name of the specie to add
concentrationThe concentration of the species (Molar). Particle count is rounded to nearest integer.
Exceptions
Anerror 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
speciesThe name of the specie to add particles to
countThe 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
reactantThe list or reactants
productThe list of products
rateThe rate of reaction
def pyLM.RDME.CMESimulation.defineSpecies (   self,
  species 
)

Define a specie/s of particles that exist in the simulation.

Parameters
self
speciesA list of species to add to the simulation

Member Data Documentation

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: