From efd450ecc31dc651315c6350dd0104cba8e46c31 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Tue, 27 Jun 2023 14:20:07 -0700 Subject: Define new `InjectorFlux` object, and use it in `AddPlasmaFlux` (#4040) * Create flux injector object * Call new flux injector in AddPlasmaFlux * Update syntax in tests * Also test the flux parser * Remove the use of `density_min` and `density_max` for flux injection * Update PICMI interface * Update documentation * Remove .cpp file --- Python/pywarpx/picmi.py | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'Python/pywarpx/picmi.py') diff --git a/Python/pywarpx/picmi.py b/Python/pywarpx/picmi.py index efa14badd..a607010c7 100644 --- a/Python/pywarpx/picmi.py +++ b/Python/pywarpx/picmi.py @@ -401,10 +401,10 @@ class UniformFluxDistribution(picmistandard.PICMI_UniformFluxDistribution, Densi self.set_mangle_dict() self.set_species_attributes(species, layout) - species.profile = "constant" - species.density = self.flux + species.flux_profile = "constant" + species.flux = self.flux if density_scale is not None: - species.density *= density_scale + species.flux *= density_scale species.flux_normal_axis = self.flux_normal_axis species.surface_flux_pos = self.surface_flux_position species.flux_direction = self.flux_direction -- cgit v1.2.3