Searched refs:q_q (Results 1 – 2 of 2) sorted by relevance
1543 PetscReal rpq[3], r, r3, q_q; in ComputeFieldAtParticles_Coulomb() local1546 q_q = ctx->charges[species[q]] * 1.; in ComputeFieldAtParticles_Coulomb()1551 for (PetscInt d = 0; d < dim; ++d) pE[d] += q_q * rpq[d] / r3; in ComputeFieldAtParticles_Coulomb()
2167 PetscReal rpq[3], r, r3, q_q; in ComputeFieldAtParticles_Coulomb() local2170 q_q = ctx->charges[species[q]] * 1.; in ComputeFieldAtParticles_Coulomb()2175 for (PetscInt d = 0; d < dim; ++d) pE[d] += q_q * rpq[d] / r3; in ComputeFieldAtParticles_Coulomb()