4 c vv(i) - vertical(z)
SIZE of thin plate
5 c hh(i) - horisontal(r)
SIZE of thin plate
7 SUBROUTINE trefw( NOUT, NTER, NINFW, NP,
8 * kd, rp1, zp1, rp2, zp2, resseg, curseg,
10 * rd, zd, vv, hh, resd, curd,
15 INTEGER kd(*), ntyd(*)
16 dimension rp1(*), zp1(*), rp2(*), zp2(*), resseg(*), curseg(*)
18 dimension rd(*), zd(*), vv(*), hh(*), resd(*), curd(*),
19 * r1(*), z1(*),
r2(*), z2(*)
23 c***************************************************************
25 write(fname,
'(a,a)') path(1:kname),
'blanfw.dat'
26 open(ninfw,file=fname,form=
'formatted')
38 c-----------------------------------------------------------------------
42 33
READ(ninfw,*) kd(l), rp1(l), zp1(l), rp2(l), zp2(l), resseg(l),
47 delr = (rp2(l) - rp1(l)) / kd(l)
48 delz = (zp2(l) - zp1(l)) / kd(l)
49 rd(i) = rp1(l) + 0.5d0*delr
50 zd(i) = zp1(l) + 0.5d0*delz
53 ddi = sqrt( hh(i)**2 + vv(i)**2 )
60 IF( kd(l) .GT. 1 )
THEN
62 rd(i+k) = rd(i+k-1) + delr
63 zd(i+k) = zd(i+k-1) + delz
66 r1(i+k) = r1(i+k-1) + delr
67 z1(i+k) = z1(i+k-1) + delz
68 r2(i+k) =
r2(i+k-1) + delr
69 z2(i+k) = z2(i+k-1) + delz
70 sssfw = sssfw + ddi/rd(i+k)
74 sssfw = sssfw * resseg(l)
77 resd(i+k-1) = sssfw * rd(i+k-1)/ddi
79 curd(i+k-1) = curseg(l) / kd(l)
84 c-----------------------------------------------------------------------
88 fr_cam=fr_cam+1.d0/resseg(i)
98 333 sssfw = sssfw + sqrt( hh(l)**2 + vv(l)**2 )/rd(l)
101 77 resd(l) = sssfw * rd(l) / sqrt( hh(l)**2 + vv(l)**2 )
103 c-----------------------------------------------------------------------
104 c--- computing of the one-turn resistance of blanfw.dat(in micro*om)
108 8 resce = resce + 1.d0 / resd(i)
113 c-----------------------------------------------------------------------
120 dd = sqrt( hh(l)**2 + vv(l)**2 )
123 122
FORMAT(2x,5e15.7)
132 722
FORMAT(2x,5e15.7)
144 c dd(i) - vertical(z)
SIZE of
"FILAMENT" cross-section
145 c hh(i) - horisontal(r)
SIZE of
"FILAMENT" cross-section
147 SUBROUTINE fw_tcv( NOUT, NTER, NINFW, NP,
148 * kd, rp1, zp1, rp2, zp2, resseg, curseg,
150 * rd, zd, dd, hh, resd, curd,
155 INTEGER kd(1), ntyd(1)
156 dimension rp1(1), zp1(1), rp2(1), zp2(1), resseg(1), curseg(1)
158 dimension rd(1), zd(1), dd(1), hh(1), resd(1), curd(1),
159 * r1(1), z1(1),
r2(1), z2(1)
162 dimension rs(200), zs(200)
163 c**********************************************************************
168 c**********************************************************************
170 write(fname,
'(a,a)') path(1:kname),
'fw_curr.dat'
171 open(ninfw,file=fname,form=
'formatted')
183 READ(ninfw,*) (curseg(i),i=1,np)
184 c----------------------------------------------
185 c transform from [a] to [ma]
188 curseg(i) = curseg(i) * 1.0d-06
190 c----------------------------------------------
194 c**********************************************************************
195 write(fname,
'(a,a)') path(1:kname),
'fw_geom.dat'
196 open(1,file=fname,form=
'formatted')
210 c-----------------------------------------------------------------------
214 READ(1,*) kd(l), rp1(l), zp1(l), rp2(l), zp2(l)
217 c resseg(l), curseg(l)
218 c-----------------------------
221 CALL
divpar( rp1(i), zp1(i), rp2(i), zp2(i), 0.d0, 90.d0,
223 * ndivre, ndivw, ndivh, rs, zs, ps, verc, horc )
229 curd(l) = curseg(i)/ndivre
242 c***********************************************************************
243 c-----------------------------------------------------------------------
244 c--- computing of the one-turn resistance(in micro*om)
245 c resd(i) - for fw_vessel segments - i=1,...,nd
246 c resce - for fw_vessel
250 resd(i) = rty_fw * pi2*rd(i) / ( hh(i)*dd(i) )
251 resce = resce + 1.d0 / resd(i)
258 c-----------------------------------------------------------------------
265 c
WRITE(nout,122) rd(l), zd(l), dd(l), hh(l)
267 122
FORMAT(2x,4e15.7)
279 722
FORMAT(2x,6e15.7)
293 c vv(i) - vertical(z)
SIZE of thin plate
294 c hh(i) - horisontal(r)
SIZE of thin plate
297 SUBROUTINE trebp( NOUT, NTER, NINFW, NP,
298 * kd, rp1, zp1, rp2, zp2, resseg, curseg,
300 * rd, zd, vv, hh, resd, curd,
305 INTEGER kd(1), ntyd(1)
306 dimension rp1(1), zp1(1), rp2(1), zp2(1), resseg(1), curseg(1)
308 dimension rd(1), zd(1), vv(1), hh(1), resd(1), curd(1),
309 * r1(1), z1(1),
r2(1), z2(1)
313 c***************************************************************
315 write(fname,
'(a,a)') path(1:kname),
'blanbp.dat'
316 open(ninfw,file=fname,form=
'formatted')
327 c-----------------------------------------------------------------------
331 33
READ(ninfw,*) kd(l), rp1(l), zp1(l), rp2(l), zp2(l), resseg(l),
336 delr = (rp2(l) - rp1(l)) / kd(l)
337 delz = (zp2(l) - zp1(l)) / kd(l)
338 rd(i) = rp1(l) + 0.5d0*delr
339 zd(i) = zp1(l) + 0.5d0*delz
342 ddi = sqrt( delr**2 + delz**2 )
345 r2(i) = rp1(l) + delr
346 z2(i) = zp1(l) + delz
349 IF( kd(l) .GT. 1 )
THEN
351 rd(i+k) = rd(i+k-1) + delr
352 zd(i+k) = zd(i+k-1) + delz
355 r1(i+k) = r1(i+k-1) + delr
356 z1(i+k) = z1(i+k-1) + delz
357 r2(i+k) =
r2(i+k-1) + delr
358 z2(i+k) = z2(i+k-1) + delz
359 sssfw = sssfw + ddi/rd(i+k)
363 sssfw = sssfw * resseg(l)
366 resd(i+k-1) = sssfw * rd(i+k-1)/ddi
368 curd(i+k-1) = curseg(l) / kd(l)
373 c-----------------------------------------------------------------------
375 IF( rcebp.GT.0 )
THEN
378 333 sssfw = sssfw + sqrt( hh(l)**2 + vv(l)**2 )/rd(l)
379 sssfw = sssfw * rcebp
381 77 resd(l) = sssfw * rd(l) / sqrt( hh(l)**2 + vv(l)**2 )
383 c-----------------------------------------------------------------------
384 c--- computing of the one-turn resistance of blanbp.dat(in micro*om)
388 8 resce = resce + 1.d0 / resd(i)
393 c-----------------------------------------------------------------------
400 dd = sqrt( hh(l)**2 + vv(l)**2 )
424 c vv(i) - vertical(z)
SIZE of thin plate
425 c hh(i) - horisontal(r)
SIZE of thin plate
428 SUBROUTINE trevv( NOUT, NTER, NINFW, NP,
429 * kd, rp1, zp1, rp2, zp2, resseg, curseg,
431 * rd, zd, vv, hh, resd, curd,
436 INTEGER kd(*), ntyd(*)
437 dimension rp1(*), zp1(*), rp2(*), zp2(*), resseg(*), curseg(*)
439 dimension rd(*), zd(*), vv(*), hh(*), resd(*), curd(*),
440 * r1(*), z1(*),
r2(*), z2(*)
444 c***************************************************************
446 write(fname,
'(a,a)') path(1:kname),
'vacves.dat'
447 open(ninfw,file=fname,form=
'formatted')
459 c-----------------------------------------------------------------------
463 33
READ(ninfw,*) kd(l), rp1(l), zp1(l), rp2(l), zp2(l), resseg(l),
468 delr = (rp2(l) - rp1(l)) / kd(l)
469 delz = (zp2(l) - zp1(l)) / kd(l)
470 rd(i) = rp1(l) + 0.5d0*delr
471 zd(i) = zp1(l) + 0.5d0*delz
474 ddi = sqrt( delr**2 + delz**2 )
477 r2(i) = rp1(l) + delr
478 z2(i) = zp1(l) + delz
481 IF( kd(l) .GT. 1 )
THEN
483 rd(i+k) = rd(i+k-1) + delr
484 zd(i+k) = zd(i+k-1) + delz
487 r1(i+k) = r1(i+k-1) + delr
488 z1(i+k) = z1(i+k-1) + delz
489 r2(i+k) =
r2(i+k-1) + delr
490 z2(i+k) = z2(i+k-1) + delz
491 sssfw = sssfw + ddi/rd(i+k)
495 sssfw = sssfw * resseg(l)
498 resd(i+k-1) = sssfw * rd(i+k-1)/ddi
500 curd(i+k-1) = curseg(l) / kd(l)
505 c-----------------------------------------------------------------------
507 IF( rcevv.GT.0 )
THEN
510 333 sssfw = sssfw + sqrt( hh(l)**2 + vv(l)**2 )/rd(l)
511 sssfw = sssfw * rcevv
513 77 resd(l) = sssfw * rd(l) / sqrt( hh(l)**2 + vv(l)**2 )
515 c-----------------------------------------------------------------------
516 c--- computing of the one-turn resistance of vacves.dat(in micro*om)
520 8 resce = resce + 1.d0 / resd(i)
525 c-----------------------------------------------------------------------
532 dd = sqrt( hh(l)**2 + vv(l)**2 )
553 SUBROUTINE segcur( NOUT, NTER, NSTART, NSEG, KD, BBB, PJK, RES,
559 dimension pjk(*), res(*)
560 dimension curseg(*), resseg(*)
564 IF(i.GT.1) l=l+kd(i-1)
568 crtseg = crtseg + pjk(l+j)
569 rstseg = rstseg + bbb/res(l+j)
572 resseg(i) = 1.d0 / rstseg
578 c
WRITE(nout,101) ( curseg(i), i=1,nseg )
581 c
WRITE(nout,101) ( resseg(i), i=1,nseg )
584 101
FORMAT(2x,5e14.7)
subroutine trevv(NOUT, NTER, NINFW, NP,
subroutine trefw(NOUT, NTER, NINFW, NP,
subroutine trebp(NOUT, NTER, NINFW, NP,
subroutine fw_tcv(NOUT, NTER, NINFW, NP,
real(r8) function r2(a, x, xr, xs, yr, ys, psi, psir, F_dia)
subroutine divpar(RC, ZC, WC, HC, AWC, AHC, CURC, NDIV, NDIVRE, NDIVW, NDIVH, RS, ZS, PS, VERS, HORS)
subroutine segcur(NOUT, NTER, NSTART, NSEG, KD, BBB, PJK, RES,