1 subroutine flux_p(psitok,rk,zk,nk)
8 include
'compol_add.inc'
9 common/comaaa/ a12(nrp,ntp),a23(nrp,ntp),a34(nrp,ntp),
10 + a14(nrp,ntp),a13(nrp,ntp),a24(nrp,ntp)
12 real*8 psitok(*),rk(*),zk(*)
24 a2=a34(i-1,j-1)+a12(i-1,j)
40 dgdnl=a1*g1+a2*g2+a3*g3+a4*g4+a5*g5+a6*g6-right(il)
41 dltk=(dlt(i,j-1)+dlt(i,j))*0.5d0
66 call
bint(rr,zz,r0,z0,r1,z1,fint,1)
68 psitok(ik)=psitok(ik)-fint*(dg_dn(j)+dg_dn(j+1))*0.5d0
84 include
'compol_add.inc'
85 common/comaaa/ a12(nrp,ntp),a23(nrp,ntp),a34(nrp,ntp),
86 + a14(nrp,ntp),a13(nrp,ntp),a24(nrp,ntp)
88 real*8 psitok(*),rk(*),zk(*)
98 a2=a34(i-1,j-1)+a12(i-1,j)
114 dgdnl=a1*g1+a2*g2+a3*g3+a4*g4+a5*g5+a6*g6
115 dltk=(dlt(i,j-1)+dlt(i,j))*0.5d0
148 call
greng(rr,zz, r_05,z_05, fgreen,dgdr,dgdz)
150 dgr_dn=(dgdr*d_z-dgdz*d_r)/r_05
153 * 0.5d0*( (g0+g1)*dgr_dn - (dg_dn(j)+dg_dn(j+1))*fgreen*dlt(i,j) )
157 psitok(ik)=psitok(ik)+fint
174 parameter(nekp=npfc0+nplim)
181 include
'compol_add.inc'
183 common /comext/ zaindk(nip,njp,nekp)
193 sqcen=sqcen+sq1(1,j)+sq4(1,j)
212 u3=zaindk(ic+1,jc+1,k)
215 psitok(k)=
blin_(r0,z0,r1,
r2,z1,z2,u1,u2,u3,u4)*cur(1,2)*sqcen
223 sqk=sq1(i,j)+sq2(i-1,j)+sq3(i-1,j-1)+sq4(i,j-1)
225 sqk=sq2(i-1,j)+sq3(i-1,j-1)
245 u3=zaindk(ic+1,jc+1,k)
248 psitok(k)=psitok(k)+
blin_(r0,z0,r1,
r2,z1,z2,u1,u2,u3,u4 )
266 include
'compol_add.inc'
273 ro0=sqrt(dr0**2+dz0**2)
282 if(tet0.lt.teta(1)) tet0=tet0+2.d0*pi
283 if(tet0.gt.teta(nt)) tet0=tet0-2.d0*pi
285 if(tet0.lt.teta(1)) tet0=tet0+2.d0*pi
286 if(tet0.gt.teta(nt)) tet0=tet0-2.d0*pi
288 if(tet0.lt.teta(1)) pause
'numcel:tet0<teta(1)'
289 if(tet0.gt.teta(nt)) pause
'numcel:tet0>teta(nt)'
293 if(tet0.ge.teta(j) .AND. tet0.lt.teta(j+1)) jc=j
302 drcb=r(nr,jc+1)-r(nr,jc)
303 dzcb=z(nr,jc+1)-z(nr,jc)
305 vecpro=drcb*dzvb-drvb*dzcb
308 if(vecpro.le.0.d0)
then
319 drc=r(i,jc+1)-r(i,jc)
320 dzc=z(i,jc+1)-z(i,jc)
322 vecpro=drc*dzv-
drv*dzc
324 if(vecpro.gt.0.d0)
then
347 include
'compol_add.inc'
349 real*8 psitok(*),rk(*),zk(*)
363 psitok(ik)=psitok(ik)
364 * -pinadg(ik,j)*(dgdn(j)+dgdn(j+1))*0.5d0
368 if(iprcon(ik).eq.0)
then
373 write(*,*)
'flux:conductor is in the box',ic,nr
374 write(*,*)
'program is terminated'
375 write(*,*)
'you need to consult program provider'
392 write(*,*)
'ik ic jc',ik,ic,jc
395 write(*,*)
'flux:conductor is out the box',ic,nr
396 write(*,*)
'program is terminated'
397 write(*,*)
'you need to consult program provider'
421 call
blic_d(rr,zz,r1,
r2,r3,r4,z1,z2,z3,z4,
422 * u1,u2,u3,u4,u0,dudr,dudz)
425 psitok(ik)=psitok(ik)+u0
431 if(ik_out.ne.nk_out)
then
432 write(*,*) .ne.
'ik_outnk_out',ik_out,nk_out
433 write(*,*)
'program is terminated'
434 write(*,*)
'you need to consult program provider'
444 * tet1,tet2,ro1,ro2,ro3,ro4,u1,u2,u3,u4)
448 ro14=(ro1*(tet2-tet0)+ro4*(tet0-tet1))/(tet2-tet1)
449 ro23=(ro2*(tet2-tet0)+ro3*(tet0-tet1))/(tet2-tet1)
451 u14=(u1*(tet2-tet0)+u4*(tet0-tet1))/(tet2-tet1)
452 u23=(u2*(tet2-tet0)+u3*(tet0-tet1))/(tet2-tet1)
454 blin_tr=(u14*(ro23-ro0)+u23*(ro0-ro14))/(ro23-ro14)
459 c====================================================================
subroutine f_flux(psitok, rk, zk, nk)
real *8 function blin_tr(tet0, ro0,
subroutine drv(ZIX1, ZIY1, ZIX2, ZIY2)
subroutine flux_p(psitok, rk, zk, nk)
subroutine flux_r(psitok, ncequi)
subroutine numcel(rrk, zzk, icell, jcell)
subroutine blic_d(r0, z0, r1, r2, r3, r4, z1, z2, z3, z4,
function numlin(i, j, nr, nt)
subroutine bint(X, Y, R0, Z0, r1, z1, F, I)
subroutine flux_g(psitok, rk, zk, nk)
real *8 function blin_(r0, z0, r1, r2, z1, z2, u1, u2, u3, u4)
real(r8) function r2(a, x, xr, xs, yr, ys, psi, psir, F_dia)
subroutine greng(R0, Z0, R, Z, fgreen, dGdr, dGdz)