31 2 BM ,AREA ,DTIME ,TEMPNC ,TEL ,DHEAT ,
32 3 NPLAT ,IPLAT ,FPHI ,THEACCFACT)
33 use element_mod ,
only : nixc
37#include "implicit_f.inc"
46 INTEGER :: JFT,JLT,NPLAT
47 INTEGER :: IXC(NIXC,*),IPLAT(*)
48 my_real ,
INTENT(IN) :: theaccfact
51 . tempnc(*), fphi(mvsiz,4), pm(npropm),dheat(*),
52 . thk(*),tel(*),bm(mvsiz,*)
56 INTEGER I,EP,N1,N2,N3,N4
58 . ca,cb ,kc ,phix,phiy,a,temp1,temp2,temp3,temp4,
67 kc = ( ca + cb*tel(i))*dtime*theaccfact
74 temp13 = tempnc(n1)-tempnc(n3)
75 temp24 = tempnc(n2)-tempnc(n4)
76 temph = tempnc(n1)-tempnc(n2)+tempnc(n3)-tempnc(n4)
81 phix = temp13*bm(i,1) + temp24*bm(i,2)+bm(i,3)*temph
83 phiy = temp13*bm(i,5) + temp24*bm(i,6)+bm(i,7)*temph
85 phix = kc*phix*thk(i)*
area(i)
86 phiy = kc*phiy*thk(i)*
area(i)
91 a = fourth *fourth * dheat(i)
93 fphi(i,1) = a - (phix*(bm(i,1)+bm(i,3)) + phiy*(bm(i,5)+bm(i,7)))
94 fphi(i,2) = a - (phix*(bm(i,2)-bm(i,3)) + phiy*(bm(i,6)-bm(i,7)))
95 fphi(i,3) = a - (phix*(bm(i,3)-bm(i,1)) + phiy*(bm(i,7)-bm(i,5)))
96 fphi(i,4) = a + (phix*(bm(i,2)+bm(i,3)) + phiy*(bm(i,6)+bm(i,7)))
104 kc = ( ca + cb*tel(i))*dtime
118 phix = (bm(i,1)+bm(i,4))*temp1 + (bm(i,10)+bm(i,13))*temp2
119 . + (bm(i,19)+bm(i,22))*temp3 + (bm(i,28)+bm(i,31))*temp2
121 phiy = (bm(i,2)+bm(i,5))*temp1 + (bm(i,11)+bm(i,14))*temp2
122 . + (bm(i,20)+bm(i,23))*temp3 + (bm(i,29)+bm(i,32))*temp2
124 phix = kc*phix*thk(i)*
area(i)
125 phiy = kc*phiy*thk(i)*
area(i)
129 a = fourth *fourth * dheat(i)
131 fphi(i,1) = a - (phix*(bm(i,1)+bm(i,4)) + phiy*(bm(i,2)+bm(i,5)))
132 fphi(i,2) = a - (phix*(bm(i,10)+bm(i,13)) + phiy*(bm(i,11)+bm(i,14)))
133 fphi(i,3) = a - (phix*(bm(i,19)+bm(i,22)) + phiy*(bm(i,20)+bm(i,23)))
134 fphi(i,4) = a - (phix*(bm(i,28)+bm(i,31)) + phiy*(bm(i,29)+bm(i,32)))
subroutine cbatherm(jft, jlt, pm, thk, ixc, bm, area, dtime, tempnc, tel, dheat, nplat, iplat, fphi, theaccfact)