56 SUBROUTINE trecur( NCPFC, RI, ZI, PC, NTYPE, NECON, WECON,
57 * hors, vers, npri, nter )
64 dimension ri(*), zi(*), pc(*), hors(*), vers(*), wecon(*)
65 INTEGER ntype(*), necon(*)
68 dimension rs(700), zs(700), delz(300), delr(300)
69 INTEGER ndw(300), ndh(300)
79 write(fname,
'(a,a)') path(1:kname),
'coilres.dat'
80 open(ninp,file=fname,form=
'formatted')
97 write(fname,
'(a,a)') path(1:kname),
'coil.dat'
98 open(1,file=fname,form=
'formatted')
103 READ(1,*) npfc, keycur
115 11
FORMAT(/,2x,i3,2x,5e14.7)
116 16
FORMAT(7x,i3,11x,2e14.7,e12.4,2x,i7)
117 10
FORMAT(/,3x,
'NUM.',2x,
'RC (M)',8x,
'ZC (M)',8x,
'WC (M)',
118 * 8x,
'HC (M)', 8x,
'CURRENT (MA)')
119 15
FORMAT( 9x,
'NDI ',10x,
'AWC',11x,
'AHC',11x,
'NTURN ',
120 * 7x,
' PF-COIL SIGN ')
137 READ(1,*) rc,zc, wc,hc, awc,ahc, pfcur1(i), nturn(i), nepfc(i)
144 IF( keycur .EQ. 1 ) pfcur1(i) = pfcur1(i) * nturn(i)
149 CALL
divpar( rc, zc, wc, hc, awc, ahc, pfcur1(i), ndi,
150 * ndivre, ndivw, ndivh, rs, zs, ps, verc, horc )
153 wepfc(i) = nturn(i) / ndiv(i)
155 pfcur2(i) = pfcur1(i)
156 pfcw1(i) = pfcur1(i) / nturn(i)
157 pfcd1(i) = pfcur1(i) / ndiv(i)
171 ncpfc = ncpfc + ndivre
195 IF( nepfc(j) .EQ. i )
THEN
205 pfvol1(i) = pfres(i)*pfceqw(i)
213 4444
FORMAT(2x,i8,4x,e13.6,5x,e13.6,5x,e13.6)
220 42
FORMAT(/,2x,
'PFC NUM.',4x,
'PFC SIGN',6x,
'PFC WEIGHT ',
221 * 5x,
'TURN CURRENT' )
222 44
FORMAT(2x,i8,4x,i8,5x,e13.6,5x,e13.6)
233 12
FORMAT(/,2x,
'NUM.',2x,
'NDIVRE',2x,
'NDIVW',2x,
'NDIVH',2x,
234 *
'CELL CURRENT',4x,
'CELL Z-SIZE',4x,
'CELL R-SIZE')
235 14
FORMAT(2x,i3,2x,i6,2x,i5,2x,i5,2x,e13.5,2x,e13.5,2x,e13.5)
258 111
FORMAT( 2x, 10i5 )
259 222
FORMAT( 2x, 7e11.4 )
311 SUBROUTINE divpar( RC, ZC, WC, HC, AWC, AHC, CURC, NDIV,
312 * ndivre, ndivw, ndivh, rs, zs, ps,
318 dimension rs(1), zs(1)
340 IF(ahc.LT.0) ahc = ahc + 180.
353 awcr = awc * pi /180.
354 ahcr = ahc * pi /180.
356 r0 = rc - 0.5*( wc + hc * cos(ahcr)/sin(ahcr) )
357 z0 = zc - 0.5*( hc + wc * sin(awcr)/cos(awcr) )
359 wsize = wc / cos(awcr)
360 hsize = hc / sin(ahcr)
363 wz = wc * sin(awcr) / cos(awcr)
364 hr = hc * cos(ahcr) / sin(ahcr)
369 sw = sqrt( ndiva*wsize/hsize )
370 sh = sqrt( ndiva*hsize/wsize )
377 IF(ndivw.EQ.0) ndivw = 1
378 IF(ndivh.EQ.0) ndivh = 1
380 IF((ndiv.LT.0).AND.(ndivw.GT.ndiva)) ndivw = ndiva
381 IF((ndiv.LT.0).AND.(ndivh.GT.ndiva)) ndivh = ndiva
383 ndivre = ndivw * ndivh
396 rs(1) = r0 + 0.5*(wr + hr)
397 zs(1) = z0 + 0.5*(wz + hz)
402 rs(l) = rs(1) + (i-1)*wr + (j-1)*hr
403 zs(l) = zs(1) + (i-1)*wz + (j-1)*hz
subroutine trecur(NCPFC, RI, ZI, PC, NTYPE, NECON, WECON, HORS, VERS, NPRI, NTER)
subroutine divpar(RC, ZC, WC, HC, AWC, AHC, CURC, NDIV, NDIVRE, NDIVW, NDIVH, RS, ZS, PS, VERS, HORS)