From b52c7e260e1e3d4a6a0bf9680f679ef258efccb0 Mon Sep 17 00:00:00 2001 From: Remi Lehe Date: Wed, 16 Feb 2022 19:21:47 -0800 Subject: Rotate momentum for RZ flux injection (#2867) --- Source/Particles/PhysicalParticleContainer.cpp | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) (limited to 'Source/Particles/PhysicalParticleContainer.cpp') diff --git a/Source/Particles/PhysicalParticleContainer.cpp b/Source/Particles/PhysicalParticleContainer.cpp index 1ee12b769..27bb7cf28 100644 --- a/Source/Particles/PhysicalParticleContainer.cpp +++ b/Source/Particles/PhysicalParticleContainer.cpp @@ -1559,8 +1559,7 @@ PhysicalParticleContainer::AddPlasmaFlux (amrex::Real dt) // Rotate the position pos.x = xb*cos_theta; pos.y = xb*sin_theta; - if ( (inj_mom->type == InjectorMomentum::Type::gaussianflux) && - (loc_flux_normal_axis != 2) ) { + if (loc_flux_normal_axis != 2) { // Rotate the momentum // This because, when the flux direction is e.g. "r" // the `inj_mom` objects generates a v*Gaussian distribution -- cgit v1.2.3