trend

- 4

Trapped Radiation ENvironment model Development

UA634

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

Name

    Subroutine UA634 - compute mass density from number density

Synopsis

      REAL*8    dens(30), cs(30), tmass
      INTEGER*4 nsp, ksp(30), kflg, ifail
      
      CALL UA634 (dens, nsp, ksp, kflg, cs, tmass, ifail) 

Arguments

    dens
    Number density (see note of subroutine UA630) [in]
    nsp
    Number of species [in]
    ksp
    List of species code [in]
    kflg
    Control parameter [in]
    cs
    Cross section (see note of subroutine UA630) [in]
    tmass
    Averaged mass [out]
    ifail
    Error flag (see diagnostics) [out]

Description

    The subroutine UA634 averages the number densities of atmospheric component with different weighting. The weighting algorithm is selected by the argument kflg:
    • when kflg=0, the number densities are weighted with the atomic mass of the constituents and argument tmass corresponds to the total mass;
    • when kflg=1, the number densities are weighted by the atomic mass of the constituents and the factor stored in argument cs;
    • when kflg=2, the number densities are only weighted by the factor stored in argument cs.
    Generally the argument cs is used to specify a particle cross section.

Diagnostics

    -63401, invalid species code
    -63402, invalid value for kflg

Common Blocks

    UC160, general constants

Dependencies

Called by

    UA630, evaluate the atmospheric densities
    UA636, evaluate a weighted atmospheric mass

Calls

    None

See also

    None

Reported Bugs

    None

Examples

    None