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

Commit

Permalink
Browse files Browse the repository at this point in the history
Adjusted initial distribution of angular momentum value to help KE converge better
  • Loading branch information
daminton committed May 17, 2021
1 parent e945044 commit cc18f2d
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 @@ -506,7 +506,7 @@ subroutine set_fragment_tangential_velocities()
call util_crossproduct(v_r_unit(:, i), v_t_unit(:, i), L(:))
A(4:6, i) = m_frag(i) * rmag(i) * L(:)
else !For the remining bodies, distribute the angular momentum equally amongs them
v_t_mag(i) = 0.25_DP * L_orb_mag / (m_frag(i) * rmag(i) * nfrag)
v_t_mag(i) = 0.9_DP * L_orb_mag / (m_frag(i) * rmag(i) * nfrag)
v_frag(:, i) = v_t_mag(i) * v_t_unit(:, i)
L_lin_others(:) = L_lin_others(:) + m_frag(i) * v_frag(:, i)
call util_crossproduct(x_frag(:, i), v_frag(:, i), L(:))
Expand Down

0 comments on commit cc18f2d

Please sign in to comment.