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.
- _active_zone: wolfhece.wolf_array.header_wolf[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 active_zone: wolfhece.wolf_array.header_wolf[source]