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
pySTDLM.Distributions.ParticleGenerator Class Reference

A particle generator that adds particles to a particular region of a simulation. More...

Public Member Functions

def __init__
 Constructor. More...
 
def addParticlesToRegion
 Add a number of particles to a region based on Monte-Carlo sampling of the generator. More...
 

Public Attributes

 generator
 
 particlename
 
 totalAdded
 
 addedLast
 

Detailed Description

A particle generator that adds particles to a particular region of a simulation.

Constructor & Destructor Documentation

def pySTDLM.Distributions.ParticleGenerator.__init__ (   self,
  gen,
  ptype 
)

Constructor.

Parameters
genA PDF set for x,y,z that on the domain [-1,1] and range [0,1) where x is the range of interest
ptypeThe name of the particle

Member Function Documentation

def pySTDLM.Distributions.ParticleGenerator.addParticlesToRegion (   self,
  rdmesim,
  region,
  number,
  directions,
  spatial = None 
)

Add a number of particles to a region based on Monte-Carlo sampling of the generator.

Parameters
self
rdmesimAn RDME simulation object that has already been "discretized"
regionA region name of the simulation to add particles to
numberThe number of the particle to add
directionsA list of the form (x,y,z) where a 0 indicates a uniform distribution in that direction and a 1 indicates the particles are sampled from the generator in that direction
spatial(OPTIONAL) A definition of a subsection of the domain that this generation should occur in as a list of lists [[xl,yl,zl],[xh,yh,zh]], otherwise the generator is scaled from (0,0,0) to domain extends (w,h,d)

Member Data Documentation

pySTDLM.Distributions.ParticleGenerator.addedLast
pySTDLM.Distributions.ParticleGenerator.generator
pySTDLM.Distributions.ParticleGenerator.particlename
pySTDLM.Distributions.ParticleGenerator.totalAdded

The documentation for this class was generated from the following file: