diff options
author | 2023-02-21 09:05:16 -0800 | |
---|---|---|
committer | 2023-02-21 09:05:16 -0800 | |
commit | 8f31cea2a47749ca697b64a93837842f990312ed (patch) | |
tree | 155ec4b9d31063b407797203c2fa7202117ecd4c /Examples/Tests/photon_pusher | |
parent | 7eae30870646a2efbdf9164d46c75e540251e5f0 (diff) | |
download | WarpX-8f31cea2a47749ca697b64a93837842f990312ed.tar.gz WarpX-8f31cea2a47749ca697b64a93837842f990312ed.tar.zst WarpX-8f31cea2a47749ca697b64a93837842f990312ed.zip |
Renamed "particle_vel" to "particle_mom" (#3672)
* Renamed particle_vel to particle_mom
* Changed vel to u
* Updated gitignore with vscode-specific folder
* Updated docs for single particle
* Revert "Updated gitignore with vscode-specific folder"
This reverts commit cb44ef8d66c123daa93d6a13d5a1d88416e866bb.
* Fixed typo
* [pre-commit.ci] auto fixes from pre-commit.com hooks
for more information, see https://pre-commit.ci
* Fixed other typo
* Add species indication in warning
---------
Co-authored-by: pre-commit-ci[bot] <66853113+pre-commit-ci[bot]@users.noreply.github.com>
Diffstat (limited to 'Examples/Tests/photon_pusher')
-rwxr-xr-x | Examples/Tests/photon_pusher/analysis_photon_pusher.py | 2 | ||||
-rw-r--r-- | Examples/Tests/photon_pusher/inputs_3d | 32 |
2 files changed, 17 insertions, 17 deletions
diff --git a/Examples/Tests/photon_pusher/analysis_photon_pusher.py b/Examples/Tests/photon_pusher/analysis_photon_pusher.py index 92d1e95f7..7518bd5ad 100755 --- a/Examples/Tests/photon_pusher/analysis_photon_pusher.py +++ b/Examples/Tests/photon_pusher/analysis_photon_pusher.py @@ -149,7 +149,7 @@ def generate(): f.write('{}.injection_style = "SingleParticle"\n'.format(name)) f.write("{}.single_particle_pos = {} {} {}\n". format(name, init_pos[0], init_pos[1], init_pos[2])) - f.write("{}.single_particle_vel = {} {} {}\n". + f.write("{}.single_particle_u = {} {} {}\n". format(name, velx, vely, velz)) f.write("{}.single_particle_weight = 1.0\n".format(name)) f.write("\n".format(name)) diff --git a/Examples/Tests/photon_pusher/inputs_3d b/Examples/Tests/photon_pusher/inputs_3d index a9ff8ac7b..e2c75981e 100644 --- a/Examples/Tests/photon_pusher/inputs_3d +++ b/Examples/Tests/photon_pusher/inputs_3d @@ -28,112 +28,112 @@ p_xp_1.charge = -q_e p_xp_1.mass = m_e p_xp_1.injection_style = "SingleParticle" p_xp_1.single_particle_pos = 0.0 0.0 0.0 -p_xp_1.single_particle_vel = 1.0 0.0 0.0 +p_xp_1.single_particle_u = 1.0 0.0 0.0 p_xp_1.single_particle_weight = 1.0 p_xn_1.charge = -q_e p_xn_1.mass = m_e p_xn_1.injection_style = "SingleParticle" p_xn_1.single_particle_pos = 0.0 0.0 0.0 -p_xn_1.single_particle_vel = -1.0 0.0 0.0 +p_xn_1.single_particle_u = -1.0 0.0 0.0 p_xn_1.single_particle_weight = 1.0 p_yp_1.charge = -q_e p_yp_1.mass = m_e p_yp_1.injection_style = "SingleParticle" p_yp_1.single_particle_pos = 0.0 0.0 0.0 -p_yp_1.single_particle_vel = 0.0 1.0 0.0 +p_yp_1.single_particle_u = 0.0 1.0 0.0 p_yp_1.single_particle_weight = 1.0 p_yn_1.charge = -q_e p_yn_1.mass = m_e p_yn_1.injection_style = "SingleParticle" p_yn_1.single_particle_pos = 0.0 0.0 0.0 -p_yn_1.single_particle_vel = 0.0 -1.0 0.0 +p_yn_1.single_particle_u = 0.0 -1.0 0.0 p_yn_1.single_particle_weight = 1.0 p_zp_1.charge = -q_e p_zp_1.mass = m_e p_zp_1.injection_style = "SingleParticle" p_zp_1.single_particle_pos = 0.0 0.0 0.0 -p_zp_1.single_particle_vel = 0.0 0.0 1.0 +p_zp_1.single_particle_u = 0.0 0.0 1.0 p_zp_1.single_particle_weight = 1.0 p_zn_1.charge = -q_e p_zn_1.mass = m_e p_zn_1.injection_style = "SingleParticle" p_zn_1.single_particle_pos = 0.0 0.0 0.0 -p_zn_1.single_particle_vel = 0.0 0.0 -1.0 +p_zn_1.single_particle_u = 0.0 0.0 -1.0 p_zn_1.single_particle_weight = 1.0 p_dp_1.charge = -q_e p_dp_1.mass = m_e p_dp_1.injection_style = "SingleParticle" p_dp_1.single_particle_pos = 0.0 0.0 0.0 -p_dp_1.single_particle_vel = 1.0 1.0 1.0 +p_dp_1.single_particle_u = 1.0 1.0 1.0 p_dp_1.single_particle_weight = 1.0 p_dn_1.charge = -q_e p_dn_1.mass = m_e p_dn_1.injection_style = "SingleParticle" p_dn_1.single_particle_pos = 0.0 0.0 0.0 -p_dn_1.single_particle_vel = -1.0 -1.0 -1.0 +p_dn_1.single_particle_u = -1.0 -1.0 -1.0 p_dn_1.single_particle_weight = 1.0 p_xp_10.charge = -q_e p_xp_10.mass = m_e p_xp_10.injection_style = "SingleParticle" p_xp_10.single_particle_pos = 0.0 0.0 0.0 -p_xp_10.single_particle_vel = 10.0 0.0 0.0 +p_xp_10.single_particle_u = 10.0 0.0 0.0 p_xp_10.single_particle_weight = 1.0 p_xn_10.charge = -q_e p_xn_10.mass = m_e p_xn_10.injection_style = "SingleParticle" p_xn_10.single_particle_pos = 0.0 0.0 0.0 -p_xn_10.single_particle_vel = -10.0 0.0 0.0 +p_xn_10.single_particle_u = -10.0 0.0 0.0 p_xn_10.single_particle_weight = 1.0 p_yp_10.charge = -q_e p_yp_10.mass = m_e p_yp_10.injection_style = "SingleParticle" p_yp_10.single_particle_pos = 0.0 0.0 0.0 -p_yp_10.single_particle_vel = 0.0 10.0 0.0 +p_yp_10.single_particle_u = 0.0 10.0 0.0 p_yp_10.single_particle_weight = 1.0 p_yn_10.charge = -q_e p_yn_10.mass = m_e p_yn_10.injection_style = "SingleParticle" p_yn_10.single_particle_pos = 0.0 0.0 0.0 -p_yn_10.single_particle_vel = 0.0 -10.0 0.0 +p_yn_10.single_particle_u = 0.0 -10.0 0.0 p_yn_10.single_particle_weight = 1.0 p_zp_10.charge = -q_e p_zp_10.mass = m_e p_zp_10.injection_style = "SingleParticle" p_zp_10.single_particle_pos = 0.0 0.0 0.0 -p_zp_10.single_particle_vel = 0.0 0.0 10.0 +p_zp_10.single_particle_u = 0.0 0.0 10.0 p_zp_10.single_particle_weight = 1.0 p_zn_10.charge = -q_e p_zn_10.mass = m_e p_zn_10.injection_style = "SingleParticle" p_zn_10.single_particle_pos = 0.0 0.0 0.0 -p_zn_10.single_particle_vel = 0.0 0.0 -10.0 +p_zn_10.single_particle_u = 0.0 0.0 -10.0 p_zn_10.single_particle_weight = 1.0 p_dp_10.charge = -q_e p_dp_10.mass = m_e p_dp_10.injection_style = "SingleParticle" p_dp_10.single_particle_pos = 0.0 0.0 0.0 -p_dp_10.single_particle_vel = 10.0 10.0 10.0 +p_dp_10.single_particle_u = 10.0 10.0 10.0 p_dp_10.single_particle_weight = 1.0 p_dn_10.charge = -q_e p_dn_10.mass = m_e p_dn_10.injection_style = "SingleParticle" p_dn_10.single_particle_pos = 0.0 0.0 0.0 -p_dn_10.single_particle_vel = -10.0 -10.0 -10.0 +p_dn_10.single_particle_u = -10.0 -10.0 -10.0 p_dn_10.single_particle_weight = 1.0 # Diagnostics |