Skip to content
This repository was archived by the owner on Aug 28, 2024. It is now read-only.

Commit

Permalink
Corrected bad angular momentum calculation for colliding bodies with …
Browse files Browse the repository at this point in the history
…pre-existing spin. I accidentally put in the kinetic energy formula instead of angular momentum. Oopsies.
  • Loading branch information
daminton committed Jun 18, 2021
1 parent c415896 commit e3d1cf3
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/symba/symba_frag_pos.f90
Original file line number Diff line number Diff line change
Expand Up @@ -554,7 +554,7 @@ subroutine set_fragment_tangential_velocities(lerr)
! Start the first two bodies with the same rotation as the original two impactors, then distribute the remaining angular momentum among the rest
do i = 1, 2
rot_frag(:, i) = rot(:, i)
L_frag_spin(:) = L_frag_spin(:) + m_frag(i) * rad_frag(i)**2 * Ip_frag(3, i) * dot_product(rot_frag(:, i), rot_frag(:, i))
L_frag_spin(:) = L_frag_spin(:) + m_frag(i) * rad_frag(i)**2 * Ip_frag(3, i) * rot_frag(:, i)
end do
L_frag_orb(:) = L_frag_tot(:) - L_frag_spin(:)
L_frag_spin(:) = 0.0_DP
Expand Down

0 comments on commit e3d1cf3

Please sign in to comment.