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

Commit

Permalink
Made a small tweak to rotations to help with energy balance in spin
Browse files Browse the repository at this point in the history
  • Loading branch information
daminton committed Dec 31, 2022
1 parent 28e5cde commit 0362ad0
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/fraggle/fraggle_generate.f90
Original file line number Diff line number Diff line change
Expand Up @@ -349,7 +349,7 @@ module subroutine fraggle_generate_rot_vec(collider)
rotdir = rotdir - 0.5_DP
rotdir = .unit. rotdir
call random_number(rotmag)
rotmag = rotmag * .mag. (Lbefore(:) - Lafter(:)) / ((nfrag - 1) * fragments%mass(i) * fragments%radius(i)**2 * fragments%Ip(3,i))
rotmag = 0.01_DP * rotmag * .mag. (Lbefore(:) - Lafter(:)) / ((nfrag - 1) * fragments%mass(i) * fragments%radius(i)**2 * fragments%Ip(3,i))
fragments%rot(:,i) = rotmag * rotdir
end do

Expand Down

0 comments on commit 0362ad0

Please sign in to comment.