pogona.SprayNozzle
- class pogona.SprayNozzle[source]
Bases:
Component
Attributes
Unique name of this component, unless it is "Generic component".
Seed for the pseudo-random number generator.
Methods
__init__
()finalize
(simulation_kernel)initialize
(simulation_kernel, init_stage)Use
InitStages
to initialize this Component instance.Inject molecules in the next time step only
process_new_time_step
(simulation_kernel, ...)set_arguments
(**kwargs)Read arguments as key value pairs and set this component's member variables accordingly.
set_transformation
(transformation)turn_off
()Stop injecting molecules
turn_on
()Turn on the injector and start spawning particles.
- finalize(simulation_kernel: SimulationKernel)
- initialize(simulation_kernel: SimulationKernel, init_stage: InitStages)[source]
Use
InitStages
to initialize this Component instance.
- process_new_time_step(simulation_kernel: SimulationKernel, notification_stage: NotificationStages)[source]
- set_arguments(**kwargs)
Read arguments as key value pairs and set this component’s member variables accordingly. Validity of the argument values will be checked in
initialize()
.
- set_transformation(transformation: Transformation)[source]
- turn_on()[source]
Turn on the injector and start spawning particles. Usually called in the NotificationStages.MODULATION stage, so before SPAWNING in the current time step.
- Returns
- component_name = 'Generic component'
Unique name of this component, unless it is “Generic component”.
- distribution_sigma = 2.5
- id
Unique integer component ID
- injection_amount = 100
- rotation = [0, 0, 0]
- seed = ''
Seed for the pseudo-random number generator. If empty, the random number generator of the simulation kernel will be used. If ‘random’, a random seed will be used for initialization. Will be converted to int otherwise.
- translation = [0, 0, 0]
- velocity = 1000.0
- velocity_sigma = 100.0