strikepoints.m
USAGE: sr = strikepoints(equ,resp1)
sr = strikepoints(equ,resp2,tok)
PURPOSE: Find strike points and related response objects
Some of the returned points may not be true strike points
INPUTS: equ, equilibrium description, required fields are:
rg, zg = grid coordinates
psizr = flux on grid
psibry = boundary flux
xlim, ylim OR Rlim, Zlim OR limdata = limiter coordinates
resp1, plasma response, required fields are:
dpsizrdx, dpsibrydx = response to a variable called x
resp2, plasma response from gspert (x=[is;Ip;li;betap])
Fields dcphid* from gspert are used internally with tok.mpp
to calculate dpsizrdx, dpsibrydx, for x=[is;Ip;li;betap]
tok, TokSys description of tokamak (tok_data_struct)
OUTPUTS: sr, strike points and responses in a structure with fields:
rst, zst = *all* points on limiter where flux = psibry
dpsistdx = flux change at rst, zst in response to x
drstdx, dzstdx = displacement along limiter in response to x
Dependencies