trajectory Derived Type

type, public :: trajectory

a segment trajectory (for plotting or output)


Inherited by

type~~trajectory~~InheritedByGraph type~trajectory trajectory type~segment segment type~segment->type~trajectory traj_inertial, traj_rotating, traj_se_rotating type~mission_type mission_type type~mission_type->type~segment segs type~my_solver_type my_solver_type type~my_solver_type->type~mission_type mission

Components

Type Visibility Attributes Name Initial
real(kind=wp), public, dimension(:), allocatable :: et
real(kind=wp), public, dimension(:), allocatable :: x
real(kind=wp), public, dimension(:), allocatable :: y
real(kind=wp), public, dimension(:), allocatable :: z
real(kind=wp), public, dimension(:), allocatable :: vx
real(kind=wp), public, dimension(:), allocatable :: vy
real(kind=wp), public, dimension(:), allocatable :: vz

Type-Bound Procedures

procedure, public :: destroy => destroy_trajectory

  • public pure subroutine destroy_trajectory(me)

    Destroy a trajectory (deallocate the data arrays).

    Arguments

    Type IntentOptional Attributes Name
    class(trajectory), intent(inout) :: me

procedure, public :: add => add_point_to_trajectory

  • public subroutine add_point_to_trajectory(me, et, x)

    Add a point to a trajectory variable.

    Arguments

    Type IntentOptional Attributes Name
    class(trajectory), intent(inout) :: me

    the trajectory

    real(kind=wp), intent(in) :: et
    real(kind=wp), intent(in), dimension(6) :: x

Source Code

    type :: trajectory
        !! a segment trajectory (for plotting or output)
        real(wp),dimension(:),allocatable :: et
        real(wp),dimension(:),allocatable :: x
        real(wp),dimension(:),allocatable :: y
        real(wp),dimension(:),allocatable :: z
        real(wp),dimension(:),allocatable :: vx
        real(wp),dimension(:),allocatable :: vy
        real(wp),dimension(:),allocatable :: vz
        contains
        procedure :: destroy => destroy_trajectory
        procedure :: add => add_point_to_trajectory
    end type trajectory