fix in density calculation

This commit is contained in:
2024-05-27 11:00:52 +02:00
parent fea00f9a0a
commit f82cbf4c47
5 changed files with 16 additions and 4 deletions
+1 -1
View File
@@ -237,7 +237,7 @@ void DriftMover::move(particle::Particle* particle,
if (v_perp_norm > SimConstants::compare_epsilon) {
const double gyro_radius = particle->mass_kg() * v_perp_norm /
(B_norm * std::abs(particle->charge_C()));
(B_norm * particle->charge_C());
const blitz::TinyVector<double, 3> velocity_normal =
(-1) * blitz::cross(B, v_perp);