From c001931994bf7b66e1c89f139bf702e288de0f6c Mon Sep 17 00:00:00 2001 From: Olga Shapoval Date: Tue, 10 Dec 2024 18:02:18 -0800 Subject: [PATCH 1/2] Added inject_from_embedded_boundary as an instance variable to the PICMI_AnalyticFluxDistribution class --- PICMI_Python/particles.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/PICMI_Python/particles.py b/PICMI_Python/particles.py index dc492c5..296e0cd 100644 --- a/PICMI_Python/particles.py +++ b/PICMI_Python/particles.py @@ -408,6 +408,7 @@ def __init__(self, flux, flux_normal_axis, directed_velocity = [0.,0.,0.], flux_tmin = None, flux_tmax = None, + inject_from_embedded_boundary = False, gaussian_flux_momentum_distribution = None, **kw): self.flux = f'{flux}'.replace('\n', '') @@ -420,6 +421,7 @@ def __init__(self, flux, flux_normal_axis, self.directed_velocity = directed_velocity self.flux_tmin = flux_tmin self.flux_tmax = flux_tmax + self.inject_from_embedded_boundary = inject_from_embedded_boundary self.gaussian_flux_momentum_distribution = gaussian_flux_momentum_distribution self.user_defined_kw = {} From 50390ce853ee41933972ac353ca7dc5d7bb6f3ac Mon Sep 17 00:00:00 2001 From: Olga Shapoval Date: Wed, 11 Dec 2024 10:02:51 -0800 Subject: [PATCH 2/2] Updated documentation --- PICMI_Python/particles.py | 3 +++ 1 file changed, 3 insertions(+) diff --git a/PICMI_Python/particles.py b/PICMI_Python/particles.py index 296e0cd..a44144e 100644 --- a/PICMI_Python/particles.py +++ b/PICMI_Python/particles.py @@ -394,6 +394,9 @@ class PICMI_AnalyticFluxDistribution(_ClassWithInit): flux_tmax: float, optional Time at which the flux injection will be turned off. + inject_from_embedded_boundary: bool, default=False + Flags whether to inject from the embedded boundary + gaussian_flux_momentum_distribution: bool, optional If True, the momentum distribution is v*Gaussian, in the direction normal to the plane. Otherwise,