calcPeriodicDistanceToSurface Subroutine

private subroutine calcPeriodicDistanceToSurface(ri, R, L)

wrap_periodic checks whether a distance r from x_particle to

Arguments

Type IntentOptional Attributes Name
real(kind=rk), intent(inout) :: ri

Distance (in one of the Cartesian directions xi) from the particle origin to the barycenter of a point on the surface.

real(kind=rk), intent(in) :: R

Radius of the particle

real(kind=rk), intent(in) :: L

Length of the periodic domain (in direction xi )