Fix dumb mistake
This commit is contained in:
@@ -99,7 +99,7 @@ vec_3d PenningTrap::external_E_field(vec_3d r)
|
||||
{
|
||||
r(2) *= -2.;
|
||||
|
||||
return vec_3d(this->V_0(this->t) / (this->d * this->d) * r);
|
||||
return vec_3d((this->V_0(this->t) / (this->d * this->d)) * r);
|
||||
}
|
||||
|
||||
vec_3d PenningTrap::external_B_field(vec_3d r)
|
||||
@@ -141,7 +141,7 @@ vec_3d PenningTrap::total_force_particles(unsigned int i)
|
||||
res += this->force_on_particle(i, j);
|
||||
}
|
||||
|
||||
return vec_3d(res * K_E * (this->particles[i].q / this->particles[i].m));
|
||||
return vec_3d(res * K_E * (this->particles[i].q));
|
||||
}
|
||||
|
||||
vec_3d PenningTrap::total_force(unsigned int i)
|
||||
|
||||
Reference in New Issue
Block a user