34 SUBROUTINE lecflsw (NSFLSW,NTFLSW,NEFLSW,NNFLSW,CRFLSW,
40#include "implicit_f.inc"
51 INTEGER NSFLSW, NTFLSW
52 INTEGER NEFLSW(*), NNFLSW(8,*), IXS(NIXS,*), IPARG(NPARG,*), ITMP(*)
57 INTEGER IL, I, IS, NEL, J, K, IE, II, NG, ITY, LFT, LLT, NFT, NB1,
58 . n, i2, i1, ne, n1, n2, n3, n4
60 . crx, cry, crz, surs, x1, y1, z1, x2, y2, z2, x3, y3, z3, x4,
61 . y4, z4, sfx, sfy, sfz, sfm, surv
73 READ (iin,
'(2I5,3F10.0)') is, nel, crx, cry, crz
84 READ(iin,
'(6I5)') nnflsw(7,il),(nnflsw(k,il),k=2,6)
90 IF (il /= ntflsw)
THEN
109 DO 310 il = 1, ntflsw
111 ii = nintrn(ie,ixs,11,numels)
113 IF (nnflsw(6,il) == 0) nnflsw(6,il) = 4
127 nnflsw(7,il) = nb1 + llt + 6*i - 6
128 nnflsw(8,il) = nb1 + 7*llt + i - 1
138 DO 500 is = 1, nsflsw
163 sfx = half*((y3-y1)*(z4-z2)-
165 sfy = half*((z3-z1)*(x4-x2)-
167 sfz = half*((x3-x1)*(y4-y2)-
169 sfm = sqrt(sfx*sfx+sfy*sfy+sfz*sfz)
171 crflsw(4,is) = crflsw(4,is) + sfx
172 crflsw(5,is) = crflsw(5,is) + sfy
173 crflsw(6,is) = crflsw(6,is) + sfz
178 surv = sqrt(crflsw(4,is)**2+crflsw(5,is)**2+crflsw(6,is)**2)
179 crflsw(4,is) = crflsw(4,is)/surv
180 crflsw(5,is) = crflsw(5,is)/surv
181 crflsw(6,is) = crflsw(6,is)/surv
183 WRITE (iout, 1100) is, nel, (crflsw(k,is),k=1,6),surv,surs
185 1 (j,(nnflsw(k,il-nel+j),k=1,8),j=1,nel,nel-1)
188 1000
FORMAT (///
' FLUX AND SWIRL CALCULATION'/
189 1
' --------------------------'/)
191 1
' SET NUMBER . . . . . . . . . . ',i5/
192 1
' NUMBER OF ELEMENTS. . . . . ',i5/
193 1
' SWIRL CENTER. . . . . . . . ',3e12.4/
194 1
' SWIRL AXIS. . . . . . . . . ',3e12.4/
195 1
' VECTORIAL TOTAL SURFACE . . ',e12.4 /
196 1
' SCALAR TOTAL SURFACE. . . . ',e12.4 /
197 1 1h ,16hfirst/last numb.,6hi.e.n.,4x,6hnode-1,4x,6hnode-2,4x,
198 2 6hnode-3,4x,6hnode-4,4x,6h ndiv )
199 1200
FORMAT (2h ,10i10)
subroutine ancmsg(msgid, msgtype, anmode, i1, i2, i3, i4, i5, i6, i7, i8, i9, i10, i11, i12, i13, i14, i15, i16, i17, i18, i19, i20, r1, r2, r3, r4, r5, r6, r7, r8, r9, c1, c2, c3, c4, c5, c6, c7, c8, c9, prmode)