diff options
author | 2023-06-27 14:20:07 -0700 | |
---|---|---|
committer | 2023-06-27 14:20:07 -0700 | |
commit | efd450ecc31dc651315c6350dd0104cba8e46c31 (patch) | |
tree | 092121c084d5515d2cc94b9e95821d81f5270ce1 /Python/pywarpx/picmi.py | |
parent | 61d7dc8412eb78b05a42a854085004caa47c35df (diff) | |
download | WarpX-efd450ecc31dc651315c6350dd0104cba8e46c31.tar.gz WarpX-efd450ecc31dc651315c6350dd0104cba8e46c31.tar.zst WarpX-efd450ecc31dc651315c6350dd0104cba8e46c31.zip |
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
Diffstat (limited to 'Python/pywarpx/picmi.py')
-rw-r--r-- | Python/pywarpx/picmi.py | 6 |
1 files changed, 3 insertions, 3 deletions
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 |