wolfgpu.injector_wrapper

Module Contents

class wolfgpu.injector_wrapper.InjectorWrapper(injector: wolfgpu.injector.SimulationInjector, sim: wolfgpu.simple_simulation.SimpleSimulation, active_zone: wolfhece.wolf_array.header_wolf, identifier: str, time_to_first_injection: wolfgpu.simple_simulation.SimulationDuration)[source]

An injector wrapper allows to add information on top of a user defined injector. It’s useful because while being executed by the simulator, it’s convenient to maintain some state around an injector. It also allows to leave the user’s injector code free of information he’s not concerned about.

_injector[source]
_injector_time_sampler[source]
_identifier[source]
_time_to_first_injection[source]
_active_zone: wolfhece.wolf_array.header_wolf[source]
_infiltration_zones_injection_zone = None[source]
_non_updated_infiltration_zones_count_active_zone = None[source]
_sim: wolfgpu.simple_simulation.SimpleSimulation[source]
set_infiltration_chronology(infiltration_chronolgy: wolfgpu.simplesimu.infiltrations.InfiltrationChronology)[source]
active_zone_as_slices() tuple[slice, slice][source]

Active zone of the injector is defined from (0,0), lambert coordinates; its origin is measured in that frame of reference. So is the simulation domain.

property injector[source]
property time_sampler[source]
property identifier[source]
property active_zone: wolfhece.wolf_array.header_wolf[source]
property time_to_first_injection[source]