pogona.SprayNozzle

class pogona.SprayNozzle[source]

Bases: pogona.component.Component

Attributes

component_name

Unique name of this component, unless it is "Generic component".

distribution_sigma

injection_amount

rotation

seed

Seed for the pseudo-random number generator.

translation

velocity

velocity_sigma

__init__()[source]

Methods

__init__()

finalize(simulation_kernel)

initialize(simulation_kernel, init_stage)

Use InitStages to initialize this Component instance.

inject_burst()

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.

__init__()[source]
finalize(simulation_kernel: pogona.simulation_kernel.SimulationKernel)
initialize(simulation_kernel: pogona.simulation_kernel.SimulationKernel, init_stage: pogona.component.InitStages)[source]

Use InitStages to initialize this Component instance.

inject_burst()[source]

Inject molecules in the next time step only

process_new_time_step(simulation_kernel: pogona.simulation_kernel.SimulationKernel, notification_stage: pogona.component.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: pogona.transformation.Transformation)[source]
turn_off()[source]

Stop injecting molecules

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