Skip to content

Commit

Permalink
Skip computation of collision sources of an ion species with itself
Browse files Browse the repository at this point in the history
  • Loading branch information
amrueda committed Dec 18, 2024
1 parent 5dabad1 commit 5c772f6
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/equations/ideal_glm_mhd_multiion.jl
Original file line number Diff line number Diff line change
Expand Up @@ -334,6 +334,9 @@ function source_terms_collision_ion_ion(u, x, t,
S_q3 = zero(eltype(u))
S_E = zero(eltype(u))
for l in eachcomponent(equations)
# Do not compute collisions of an ion species with itself
k == l && continue

rho_l, v1_l, v2_l, v3_l, p_l = get_component(l, prim, equations)
T_l = p_l / (rho_l * gas_constants[l])

Expand Down

0 comments on commit 5c772f6

Please sign in to comment.