Download LSP User`s Manual and Reference
Transcript
160 LSP User’s Manual and Reference (float) (float) (float) (float) (float) R. E. Clark and T. P. Hughes dx2 (radial grid size) x1s (axial starting point) x2s (radial starting point) Bz[nx2][nx1] (axial field values) Br[nx2][nx1] (radial field values) where the field values are in normalized code units (value in gauss divided by 1704.5), and spatial dimensions are in cm. This file may be either formatted ASCII or binary type. If it is the latter, it must be indicated where the file is specified on input (see Section 6.15 [External Fields Input], page 100). 7.5 ATHETA Magnetic Field File The ASCII file format produced by the ATHETA code (SNL) can be generated using the following FORTRAN code: Open (Unit=25,File=’ATHETA.DAT’,Form=’FORMATTED’,Status=’UNKNOWN’) Write (25,5) NK+1, NL+1 5 Format (2I5) Write (25,10) (RPOS(K),K = 1,NK) Write (25,10) (ZPOS(L),L = 1,NL) Write (25,10) ((BRFLD(L,K),K = 1,NK),L = 1,NL) Write (25,10) ((BZFLD(L,K),K = 1,NK),L = 1,NL) 10 Format(6(1PE12.4)) where NK, NL are the number of grid-points in the radial and axial directions, RPOS, ZPOS are the radial and axial grid coordinates in meters and BRFLD, BZFLD are the radial and axial components of the magnetic field in Tesla. LSP interpolates the values onto the 2-D or 3-D simulation grid. See Section 6.15 [External Fields Input], page 100. 7.6 MAG3D Magnetic Field File The ASCII file produced by the MAG3D code (NRL) contains Bx, By, Bz data in cartesian coordinates as follows: nxmax 40 nymax 40 x -10.0000 -9.48718 -8.97436 . . . 8.97436 9.48718 10.0000 nzmax 40 y -10.0000 -10.0000 -10.0000 . . . 10.0000 10.0000 10.0000 z -10.0000 -10.0000 -10.0000 . . . 10.0000 10.0000 10.0000 Bx 412.227 426.651 441.449 . . . -450.803 -435.347 -420.296 By -412.227 -426.651 -441.449 . . . 450.803 435.347 420.296 Bz 1.34749 1.33026 1.28552 . . . -0.0855465 -0.0926784 -0.0983440 where the field values are in units of kilogauss, and the spatial coordinates are in cm. See Section 6.15 [External Fields Input], page 100.