Exemplo n.º 1
0
 def __init__(self, backend, n_sd=0):
     Core.__init__(self, n_sd, backend)
     self.core = self
     self.environment = DummyEnvironment()
     self.environment.register(self)
     self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)}
     self.particles = None
Exemplo n.º 2
0
 def __init__(self, backend=None, n_sd=0):
     backend = backend or Default()
     Core.__init__(self, n_sd, backend)
     self.core = self
     self.environment = DummyEnvironment()
     self.environment.register(self)
     self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)}
     self.state = None
Exemplo n.º 3
0
 def __init__(self, backend, n_sd=0, formulae=None):
     if formulae is None:
         formulae = Formulae()
     Core.__init__(self, n_sd, backend(formulae))
     self.core = self
     self.environment = DummyEnvironment()
     self.environment.register(self)
     self.req_attr = {'n': Multiplicities(self), 'cell id': CellID(self)}
     self.particles = None
Exemplo n.º 4
0
 def __init__(self, n_sd, backend):
     self.core = Core(n_sd, backend)
     self.req_attr = {
         'n': Multiplicities(self),
         'volume': Volume(self),
         'cell id': CellID(self)
     }
     self.aerosol_radius_threshold = 0
     self.condensation_params = None
Exemplo n.º 5
0
 def __init__(self, n_sd, backend, formulae=Formulae()):
     assert inspect.isclass(backend)
     self.formulae = formulae
     self.core = Core(n_sd, backend(formulae))
     self.req_attr = {
         'n': Multiplicities(self),
         'volume': Volume(self),
         'cell id': CellID(self)
     }
     self.aerosol_radius_threshold = 0
     self.condensation_params = None