tdc_orbit Derived Type

type, public :: tdc_orbit

A global type with information needed by the time dependent coordinate transformation object.


Contents

Source Code


Components

TypeVisibility AttributesNameInitial
real(kind=wp), private :: r

The radial coordinate, (in Schwarzschild coordinates).

real(kind=wp), private :: drdt

The time derivative of the radial coordinate, .

real(kind=wp), private :: d2rdt2

The second time derivative of the radial coordinate, .


Type-Bound Procedures

procedure, public :: set_tdc

Routine to set the tdc_orbit values.

  • public subroutine set_tdc(this, r, drdt, d2rdt2)

    Arguments

    Type IntentOptional AttributesName
    class(tdc_orbit), intent(inout) :: this

    The routine is called on this tdc_orbit object.

    real(kind=wp), intent(in) :: r

    The radial coordinate, (in Schwarzschild coordinates).

    real(kind=wp), intent(in) :: drdt

    The time derivative of the radial coordinate, .

    real(kind=wp), intent(in) :: d2rdt2

    The second time derivative of the radial coordinate, .

procedure, public :: get_tdc

Routine to get the tdc_orbit values.

  • public subroutine get_tdc(this, r, drdt, d2rdt2)

    Arguments

    Type IntentOptional AttributesName
    class(tdc_orbit), intent(inout) :: this

    The routine is called on this tdc_orbit object.

    real(kind=wp), intent(out) :: r

    The radial coordinate, (in Schwarzschild coordinates).

    real(kind=wp), intent(out) :: drdt

    The time derivative of the radial coordinate, .

    real(kind=wp), intent(out) :: d2rdt2

    The second time derivative of the radial coordinate, .

Source Code

  type :: tdc_orbit
  !! A global type with information needed by the time dependent coordinate
  !! transformation object.
    real(wp), private :: r
    !! The radial coordinate, \(r\) (in Schwarzschild coordinates).
    real(wp), private :: drdt
    !! The time derivative of the radial coordinate, \(\dot{r}\).
    real(wp), private :: d2rdt2
    !! The second time derivative of the radial coordinate, \(\ddot{r}\).
  contains
    procedure :: set_tdc
    !! Routine to set the [[tdc_orbit]] values.
    procedure :: get_tdc
    !! Routine to get the [[tdc_orbit]] values.
  end type tdc_orbit