From 4778663a5d46acdaf700ff63cff3b81e15138f7b Mon Sep 17 00:00:00 2001 From: "Eya D." <81635404+EyaDammak@users.noreply.github.com> Date: Fri, 14 Feb 2025 09:24:03 +0100 Subject: [PATCH] Update src/particles/plasma/PlasmaParticleContainer.cpp MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Co-authored-by: Maxence Thévenet --- src/particles/plasma/PlasmaParticleContainer.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/src/particles/plasma/PlasmaParticleContainer.cpp b/src/particles/plasma/PlasmaParticleContainer.cpp index 270994b10a..811b1b7fc1 100644 --- a/src/particles/plasma/PlasmaParticleContainer.cpp +++ b/src/particles/plasma/PlasmaParticleContainer.cpp @@ -681,7 +681,9 @@ LaserIonization (const int islice, // A_t = A (e_x +/- i e_y) in circular polarization ux = std::sqrt(amrex::abs(A*A)) * std::cos(angle); uy = std::sqrt(amrex::abs(A*A)) * std::sin(angle); - uz = amrex::abs(A*A);// / 2.; + // uz differs from Massimo PRE 2020 by a factor of 2 due to different + // convention for linear vs. circular polarization. + uz = amrex::abs(A*A); } const long pid = amrex::Gpu::Atomic::Add( p_ip_elec, 1u ); // ensures thread-safe access when incrementing `p_ip_elec`