2 real*8 function funppp(psi)
4 implicit real*8(a-h,o-z)
6 common/comppp/
ppp(nursp),fff(nursp),www(nursp)
19 if(i.eq.nurs) i=nurs-1
25 zppp=(
ppp(i)*dpsip+
ppp(i+1)*dpsim)/(dpsip+dpsim)
32 real*8 function funfff(psi)
34 implicit real*8(a-h,o-z)
36 common/comppp/
ppp(nursp),fff(nursp),www(nursp)
49 if(i.eq.nurs) i=nurs-1
55 zfff=(fff(i)*dpsip+fff(i+1)*dpsim)/(dpsip+dpsim)
63 real*8 function funcur(ri,psi)
65 implicit real*8(a-h,o-z)
74 funcur =purs(nurs)*ri+furs(nurs)/ri+wurs(nurs)*ri**3
80 if(i.ge.nurs) i=nurs-1
86 pp=(purs(i)*dpsip+purs(i+1)*dpsim)/(dpsip+dpsim)
87 fp=(furs(i)*dpsip+furs(i+1)*dpsim)/(dpsip+dpsim)
88 wp=(wurs(i)*dpsip+wurs(i+1)*dpsim)/(dpsip+dpsim)
90 funcur = ri*pp + fp/ri + wp*ri**3
97 real*8 function funcur_p(ri,psi)
99 implicit real*8(a-h,o-z)
108 funcur_p =purs(nurs)*ri
114 if(i.ge.nurs) i=nurs-1
120 pp=(purs(i)*dpsip+purs(i+1)*dpsim)/(dpsip+dpsim)
130 real*8 function funcur_f(ri,psi)
132 implicit real*8(a-h,o-z)
141 funcur_f =furs(nurs)/ri
147 if(i.ge.nurs) i=nurs-1
154 fp=(furs(i)*dpsip+furs(i+1)*dpsim)/(dpsip+dpsim)
167 subroutine taburs(ien,coin,nursb)
173 parameter(nursp4=nursp+4,nursp6=nursp4*6)
174 common/comppp/
ppp(nursp),fff(nursp),www(nursp)
176 common/com_flag/kastr
178 dimension wptab(nursp)
179 real*8 rrk(nursp4),cck(nursp4),wrk(nursp6)
200 c
if nursb<0
p'and ff'are assumed to be defined as tab.(file
'tabppf.dat'
214 dpsi=1.d0/(nurs-1.d0)
256 pstab(i)=pstab(i)/pstab(nutab)
263 if(key_int.eq.0)
then
268 if(zpsi.ge.pstab(j) .AnD. zpsi.lt.pstab(j+1))
then
269 dpsip=pstab(j+1)-zpsi
271 purs(i)=( pptab(j)*dpsip+pptab(j+1)*dpsim )/(dpsip+dpsim)
272 furs(i)=( fptab(j)*dpsip+fptab(j+1)*dpsim )/(dpsip+dpsim)
279 CALL
e01baf(nutab,pstab,pptab,rrk,cck,
280 * nutab+4,wrk,6*nutab+16,ifail)
282 if(ifail.ne.0)
write(*,*)
'ifail=',ifail
287 CALL
e02bcf(nutab+4,rrk,cck,zpsi,0,cwk,ifail)
288 if(ifail.ne.0)
write(*,*)
'ifail=',ifail
294 CALL
e01baf(nutab,pstab,fptab,rrk,cck,
295 * nutab+4,wrk,6*nutab+16,ifail)
296 if(ifail.ne.0)
write(*,*)
'ifail=',ifail
302 CALL
e02bcf(nutab+4,rrk,cck,zpsi,0,cwk,ifail)
303 if(ifail.ne.0)
write(*,*)
'ifail=',ifail
333 elseif(ien.eq.1)
then
350 dpsi=1.d0/(nurs-1.d0)
354 ppp(i)=
ppp(i-1) +(purs(i-1)+purs(i))*dpsi*0.5d0
355 fff(i)=fff(i-1) +(furs(i-1)+furs(i))*dpsi*0.5d0
356 www(i)=www(i-1) +(wurs(i-1)+wurs(i))*dpsi*0.5d0
358 ccc
write(6,*)
'i,ppp(i)',i,
ppp(i)
369 parameter(nursp4=nursp+4,nursp6=nursp4*6)
382 subroutine tabnor(cnor)
385 parameter(nursp4=nursp+4,nursp6=nursp4*6)
386 common/comppp/
ppp(nursp),fff(nursp),www(nursp)
400 real*8 function funpp(psi)
402 implicit real*8(a-h,o-z)
411 psm = 1.d0-psi + epss
413 zpp = dabs( 1.d0 -(dabs(psm))**alf1p ) + epss
414 pp = alf0p*( zpp**alf2p )
432 c. pp=(cbi/cr0)*( dexp( cnp*(1-psm**cal) ) - 1. )/
433 c. / ( dexp( cnp ) - 1. )
440 x=(psi-del)/(1.d0-del)
463 real*8 function funfp(psi)
465 implicit real*8(a-h,o-z)
475 psm = 1.d0- psi + epss
477 zzfp = dabs( 1.d0 - psm**bet1f ) + epss
478 fp = bet0f*( zzfp**bet2f )
488 c----------------------------------------------------------
499 c. fp=(1.-cbi)*cr0*( dexp( cnf*(1-psm**cal) ) -1. )/
500 c. / ( dexp( cnf ) - 1. )
504 x=(psi-del)/(1.d0-del)
527 real*8 function tabw(psi)
529 implicit real*8(a-h,o-z)
544 if(i.eq.nurs) i=nurs-1
551 wp=(wurs(i)*dpsip+wurs(i+1)*dpsim)/(dpsip+dpsim)
560 real*8 function tabp(psi)
562 implicit real*8(a-h,o-z)
577 if(i.eq.nurs) i=nurs-1
584 pp=(purs(i)*dpsip+purs(i+1)*dpsim)/(dpsip+dpsim)
595 real*8 function tabf(psi)
597 implicit real*8(a-h,o-z)
618 if(i.eq.nurs) i=nurs-1
625 fp=(furs(i)*dpsip+furs(i+1)*dpsim)/(dpsip+dpsim)
634 real*8 function funwp(psi)
636 implicit real*8(a-h,o-z)
647 psm = 1.d0 - psi + epss
649 zwp = dabs( 1.d0 -(dabs(psm))**alw1p ) + epss
650 wp = alw0p*( zwp**alw2p )
658 !!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
subroutine e02bcf(NCAP7, K, C, X, LEFT, S, IFAIL)
subroutine e01baf(M, X, Y, K, C, LCK, WRK, LWRK, IFAIL)
real(r8) function p(a, x, xr, xs, yr, ys, psi, psir, F_dia)