Skip to content

get_plasma_greens.m

Basic Information

  SYNTAX:  [mp,gbr,gbz]=...
    get_plasma_greens(mpp,gbr2p,gbz2p,src_r_idx,src_z_idx,nz)

  PURPOSE:  Get mutual inductance, Br, and Bz green's function responses
    (plasma green's functions) to a given grid point current source.

  INPUT:
    mpp = plasma grid to plasma grid mutuals in compressed format
    gbr2p = Br green's functions from plasma grid to plasma grid
        in compressed format
    gbz2p = Bz green's functions from plasma grid to plasma grid
        in compressed format
    src_r_idx = index of r coordinate of current source in overall grid
            (0 < src_r_idx <= nr)
    src_z_idx = index of z coordinate of current source in overall grid
            (0 < src_z_idx <= nz)
    nz    = number of grids in z dimension

  OUTPUT:
    mp  = mutuals from selected grid current source to all other grids
    gbr = Br greens fns from selected grid current source to all other grids
    gbz = Bz greens fns from selected grid current source to all other grids
   (Output units are same as input objects mpp, gbr2p, gbz2p.)

  SEE ALSO: mpp_x_vec

Dependencies