polygon_projection Subroutine

public subroutine polygon_projection(self, x, y, phi, projection_x, projection_y)

Find the x and y components of a unit vector along the nearest polygon edge The polygon boundary dV is expected to have positive (counterclockwise) orientation Can check this with signed_area (in initialisation)

Type Bound

divertor_equilibrium_t

Arguments

Type IntentOptional Attributes Name
class(divertor_equilibrium_t), intent(in) :: self
real(kind=FP), intent(in) :: x
real(kind=FP), intent(in) :: y
real(kind=FP), intent(in) :: phi
real(kind=FP), intent(out) :: projection_x
real(kind=FP), intent(out) :: projection_y