trend

- 4

Trapped Radiation ENvironment model Development

UD332

[ Name | Synopsis | Arguments | Description | Diagnostics | Common Blocks | Dependencies | See Also | Reported Bugs | Examples ]

Name

    Subroutine UD332 - evaluate the magnetic flux through a spherical pie

Synopsis

      REAL*8       colat,phi
      RECORD/zgeo/ mpos1, mpos2
      INTEGER*4    ifail
      
      UD332 (colat, mpos1, mpos2, phi, ifail)

Arguments

    colat
    Pole selection (first point) [in]
    mpos1
    Second point [in]
    mpos2
    Third point [in]
    phi
    Magnetic flux [out]
    ifail
    Error flag (see diagnostics) [out]

Description

    The subroutine UD332 evaluates the magnetic flux passing through a spherical pie. This subroutine is called by subroutine UD330 to evaluate the third invariant of a magnetic drift shell. The spherical pie is determined by three geographic locations at a fixed altitude. The first location corresponds to one of the geographic poles and is selected by the argument colat. The second location is determined by the arguments mpos1.elong and mpos1.colat. The third location is determined by the arguments mpos2.elong and mpos2.colat. One should note that the altitude is fixed by mpos1.radius and should be equal to mpos2.radius.

Diagnostics

    -33201, invalid value of colat
    -33202, not constant altitude

Common Blocks

    UC160, general constants
    UC190, control parameters, set 1
    UC192, control parameters, set 2

Dependencies

Called by

    UD331, evaluate the magnetic flux through a spherical cap

Calls

    UM530, evaluate the magnetic field vector

See also

    UD330, evaluate the third invariant

Reported Bugs

    None

Examples

    None