def setUp(self): self.m = _gfrd.Model() self.s1 = self.m.new_species_type() self.s1['radius'] = '0.1' self.s1['D'] = '0.2' self.s2 = self.m.new_species_type() self.s2['radius'] = '0.3' self.s2['D'] = '0.4' self.nr = _gfrd.NetworkRulesWrapper(self.m.network_rules)
def setUp(self): self.m = _gfrd.Model() self.s1 = self.m.new_species_type() self.s2 = self.m.new_species_type()
import _gfrd import myrandom import vtk m = _gfrd.Model() S0 = m.new_species_type() S0['D'] = '.01' S0['radius'] = '.01' S0['surface'] = 'default' S1 = m.new_species_type() S1['D'] = '.01' S1['radius'] = '.01' S1['surface'] = 'default' S2 = m.new_species_type() S2['D'] = '.01' S2['radius'] = '.01' S2['surface'] = 'default' colors = { S0.id: (1., 0., 0.), S1.id: (0., 1., 0.), S2.id: (1., 1., 0.), } rr = _gfrd.ReactionRule((S0, S1), (S2, )) rr['k'] = '.01' m.network_rules.add_reaction_rule(rr) nrw = _gfrd.NetworkRulesWrapper(m.network_rules)
def setUp(self): self.m = _gfrd.Model()
def setUp(self): self.m = _gfrd.Model() self.s1 = _gfrd.SpeciesType() self.m.add_species_type(self.s1) self.s2 = _gfrd.SpeciesType() self.m.add_species_type(self.s2)