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

Calls

proc~~polygon_projection~~CallsGraph proc~polygon_projection divertor_equilibrium_t%polygon_projection bx bx proc~polygon_projection->bx by by proc~polygon_projection->by none~closest_polyedge polygon2d_t%closest_polyedge proc~polygon_projection->none~closest_polyedge