Skip to content

shape_edit.m

Basic Information

  USAGE:   [r,z] = shape_edit(r0,z0,s)

  PURPOSE: Edit a plasma shape by specifying new shape parameters
           Original shape parameters can be found with
           s0 = shape_params(r0,z0)

  INPUTS:  s, structure with new shape parameters, these can be edited:
              rsurf, zsurf, aminor, bminor, elong, triu, tril,
              squo, squi, sqli, sqlo
           Omit fields or set value to nan for parameters to be ignored
           One of aminor, bminor, elong must be ignored (default bminor)

  OUTPUTS: r,z, modified boundary coordinates

  See also SHAPE_CREATE, SHAPE_PARAMS