Constructor for a two_body_rotating_frame
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(celestial_body), | intent(in) | :: | primary_body |
the primary body of the frame |
||
type(celestial_body), | intent(in) | :: | secondary_body |
the secondary body used to construct the frame |
||
integer, | intent(in) | :: | center |
the frame center (can
be |
||
real(kind=wp), | intent(in) | :: | et |
epoch at which the frame is defined [sec] |
pure function two_body_rotating_frame_constructor(& primary_body,secondary_body,center,et) result(f) implicit none type(two_body_rotating_frame) :: f type(celestial_body),intent(in) :: primary_body !! the primary body of !! the frame type(celestial_body),intent(in) :: secondary_body !! the secondary body used !! to construct the frame integer,intent(in) :: center !! the frame center (can !! be `primary_body`, !! `secondary_body`, or !! `barycenter`) real(wp),intent(in) :: et !! epoch at which the !! frame is defined [sec] f%primary_body = primary_body f%secondary_body = secondary_body f%center = center f%et = et end function two_body_rotating_frame_constructor