Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
19 changes: 19 additions & 0 deletions unstructured/idl/read_field.pro
Original file line number Diff line number Diff line change
Expand Up @@ -1667,6 +1667,25 @@ function read_field, name, x, y, t, slices=slices, mesh=mesh, $
symbol = '!3|!8B!D!9P!N!3|!X'
d = dimensions(/b0, _EXTRA=extra)

;===========================================
; toroidal vector potential
;===========================================
endif else if(strcmp('toroidal vector potential', name, /fold_case) eq 1) or $
(strcmp('ay', name, /fold_case) eq 1) then begin

psi = read_field('psi',x,y,t,slices=time, mesh=mesh, filename=filename, $
points=pts,rrange=xrange,zrange=yrange, $
linear=linear,complex=complex,phi=phi0)

if(itor eq 1) then begin
r = radius_matrix(x,y,t)
endif else r = 1.

data = psi/r
symbol = '!8A!D!9P!N!X'
d = dimensions(/b0, /l0, _EXTRA=extra)


;===========================================
; Pitch Angle
;===========================================
Expand Down