Skip to content

Commit

Permalink
Update inject.f90
Browse files Browse the repository at this point in the history
When injecting particles at rinj with Keplerian velocity, we do not take into account the velocity and position of the central object
  • Loading branch information
crislong committed Jun 3, 2024
1 parent 11749fe commit 9fa15bf
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/main/inject_keplerian.f90
Original file line number Diff line number Diff line change
Expand Up @@ -171,8 +171,8 @@ subroutine inject_particles(time,dtlast,xyzh,vxyzu,xyzmh_ptmass,vxyz_ptmass,&

vphi = vkep*(1. - (zi/rinj)**2)**(-0.75) ! see Martire et al. (2024)

xyzi = (/rinj*cosphi,rinj*sinphi,zi/) + x0
vxyz = (/-vphi*sinphi, vphi*cosphi, 0./) + v0
xyzi = (/rinj*cosphi,rinj*sinphi,zi/)
vxyz = (/-vphi*sinphi, vphi*cosphi, 0./)

u = 1.5*cs**2

Expand Down

0 comments on commit 9fa15bf

Please sign in to comment.