55 REAL(RFREAL) :: xyznodes(3,3)
56 REAL(RFREAL) :: fvecx, fvecy, fvecz
59 REAL(RFREAL) :: dxa,dxb,dya,dyb,dza,dzb
63 dxa = xyznodes(1,1) - xyznodes(1,2)
64 dya = xyznodes(2,1) - xyznodes(2,2)
65 dza = xyznodes(3,1) - xyznodes(3,2)
67 dxb = xyznodes(1,1) - xyznodes(1,3)
68 dyb = xyznodes(2,1) - xyznodes(2,3)
69 dzb = xyznodes(3,1) - xyznodes(3,3)
71 fvecx = 0.5_rfreal*(dya*dzb - dyb*dza)
72 fvecy = -0.5_rfreal*(dxa*dzb - dxb*dza)
73 fvecz = 0.5_rfreal*(dxa*dyb - dxb*dya)
86 REAL(RFREAL) :: xyznodes(3,4)
87 REAL(RFREAL) :: fvecx, fvecy, fvecz
90 REAL(RFREAL) :: dxa, dya, dza, dxb, dyb, dzb
94 dxa = xyznodes(1,3) - xyznodes(1,1)
95 dya = xyznodes(2,3) - xyznodes(2,1)
96 dza = xyznodes(3,3) - xyznodes(3,1)
98 dxb = xyznodes(1,2) - xyznodes(1,4)
99 dyb = xyznodes(2,2) - xyznodes(2,4)
100 dzb = xyznodes(3,2) - xyznodes(3,4)
102 fvecx = 0.5_rfreal*(dza*dyb-dya*dzb)
103 fvecy = 0.5_rfreal*(dxa*dzb-dza*dxb)
104 fvecz = 0.5_rfreal*(dya*dxb-dxa*dyb)
subroutine facevectortria(xyzNodes, fVecX, fVecY, fVecZ)
subroutine facevectorquad(xyzNodes, fVecX, fVecY, fVecZ)