Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added inject_from_embedded_boundary as an instance variable to the PICMI_AnalyticFluxDistribution class #123

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions PICMI_Python/particles.py
Original file line number Diff line number Diff line change
Expand Up @@ -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,
Expand All @@ -408,6 +411,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', '')
Expand All @@ -420,6 +424,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 = {}
Expand Down