build_gap_response.m
SYNTAX: gap_response = build_gap_response(gap_in)
PURPOSE: Build gap response for gaps defined in gap_in
INPUT:
gap_in = structure
gapspec = [r z gr gz] for each gap (4 x ngap) (see calc_gap.m)
gapnames = Names of gaps (optional)
tok_data_struct = Toksys vacuum object (from make_tok_objects.m)
resp = Plasma system response model (rzrig or gspert)
equil_data = Equilibrium data structure
post_proc = Statements to evaluate at end of function.
OUTPUT:
gap_response = structure
gapresp = response structure with fields:
dgapdis: gap response to conductors [m/A]
dgapdip,*dli,*dbetap, etc: exogenous responses
gaps: distances from boundary to wall through r,z along gr,gz [m]
gapspec: New gap specification on form [r z gr gz]
gapnames = Gap names
METHOD:
Dependencies