Skip to content

Commit

Permalink
Update PlasmaParticleContainer.cpp
Browse files Browse the repository at this point in the history
  • Loading branch information
EyaDammak authored Feb 14, 2025
1 parent 4778663 commit 7862de9
Showing 1 changed file with 3 additions and 1 deletion.
4 changes: 3 additions & 1 deletion src/particles/plasma/PlasmaParticleContainer.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -678,7 +678,9 @@ LaserIonization (const int islice,
uz = (amrex::abs(A * A) / 4._rt + p_pol * p_pol / 2._rt);
} else {
amrex::Real const angle = amrex::Random(engine) * 2._rt * MathConst::pi;
// A_t = A (e_x +/- i e_y) in circular polarization
// A_t = A (e_x +/- i e_y) in circular polarization.
// ux and uy differ from Massimo PRE 2020 by a factor of sqrt(2) due to different
// convention for linear vs. circular polarization.
ux = std::sqrt(amrex::abs(A*A)) * std::cos(angle);
uy = std::sqrt(amrex::abs(A*A)) * std::sin(angle);
// uz differs from Massimo PRE 2020 by a factor of 2 due to different
Expand Down

0 comments on commit 7862de9

Please sign in to comment.