59 REAL(RFREAL) :: xyznodes(3,4), facevecs(3,4)
78 REAL(RFREAL) :: xyznodes(3,5), facevecs(3,5)
97 REAL(RFREAL) :: xyznodes(3,6), facevecs(3,5)
116 REAL(RFREAL) :: xyznodes(3,8), facevecs(3,6)
120 REAL(RFREAL) :: rm1(3), rm2(3), rm3(3), rm4(3), rm5(3), rm6(3)
121 REAL(RFREAL) :: rms1, rms2, rms3, rms4, rms5, rms6
125 rm1(1) = 0.25_rfreal*(xyznodes(1,1)+xyznodes(1,2)+xyznodes(1,3)+xyznodes(1,4))
126 rm1(2) = 0.25_rfreal*(xyznodes(2,1)+xyznodes(2,2)+xyznodes(2,3)+xyznodes(2,4))
127 rm1(3) = 0.25_rfreal*(xyznodes(3,1)+xyznodes(3,2)+xyznodes(3,3)+xyznodes(3,4))
129 rm2(1) = 0.25_rfreal*(xyznodes(1,5)+xyznodes(1,8)+xyznodes(1,7)+xyznodes(1,6))
130 rm2(2) = 0.25_rfreal*(xyznodes(2,5)+xyznodes(2,8)+xyznodes(2,7)+xyznodes(2,6))
131 rm2(3) = 0.25_rfreal*(xyznodes(3,5)+xyznodes(3,8)+xyznodes(3,7)+xyznodes(3,6))
133 rm3(1) = 0.25_rfreal*(xyznodes(1,1)+xyznodes(1,5)+xyznodes(1,6)+xyznodes(1,2))
134 rm3(2) = 0.25_rfreal*(xyznodes(2,1)+xyznodes(2,5)+xyznodes(2,6)+xyznodes(2,2))
135 rm3(3) = 0.25_rfreal*(xyznodes(3,1)+xyznodes(3,5)+xyznodes(3,6)+xyznodes(3,2))
137 rm4(1) = 0.25_rfreal*(xyznodes(1,8)+xyznodes(1,4)+xyznodes(1,3)+xyznodes(1,7))
138 rm4(2) = 0.25_rfreal*(xyznodes(2,8)+xyznodes(2,4)+xyznodes(2,3)+xyznodes(2,7))
139 rm4(3) = 0.25_rfreal*(xyznodes(3,8)+xyznodes(3,4)+xyznodes(3,3)+xyznodes(3,7))
141 rm5(1) = 0.25_rfreal*(xyznodes(1,1)+xyznodes(1,4)+xyznodes(1,8)+xyznodes(1,5))
142 rm5(2) = 0.25_rfreal*(xyznodes(2,1)+xyznodes(2,4)+xyznodes(2,8)+xyznodes(2,5))
143 rm5(3) = 0.25_rfreal*(xyznodes(3,1)+xyznodes(3,4)+xyznodes(3,8)+xyznodes(3,5))
145 rm6(1) = 0.25_rfreal*(xyznodes(1,2)+xyznodes(1,6)+xyznodes(1,7)+xyznodes(1,3))
146 rm6(2) = 0.25_rfreal*(xyznodes(2,2)+xyznodes(2,6)+xyznodes(2,7)+xyznodes(2,3))
147 rm6(3) = 0.25_rfreal*(xyznodes(3,2)+xyznodes(3,6)+xyznodes(3,7)+xyznodes(3,3))
149 rms1 = rm1(1)*facevecs(1,1) + rm1(2)*facevecs(2,1) + rm1(3)*facevecs(3,1)
150 rms2 = rm2(1)*facevecs(1,2) + rm2(2)*facevecs(2,2) + rm2(3)*facevecs(3,2)
151 rms3 = rm3(1)*facevecs(1,3) + rm3(2)*facevecs(2,3) + rm3(3)*facevecs(3,3)
152 rms4 = rm4(1)*facevecs(1,4) + rm4(2)*facevecs(2,4) + rm4(3)*facevecs(3,4)
153 rms5 = rm5(1)*facevecs(1,5) + rm5(2)*facevecs(2,5) + rm5(3)*facevecs(3,5)
154 rms6 = rm6(1)*facevecs(1,6) + rm6(2)*facevecs(2,6) + rm6(3)*facevecs(3,6)
156 volume = (rms1+rms2+rms3+rms4+rms5+rms6)/3._rfreal
subroutine volumepyramid(xyzNodes, faceVecs, volume)
int volume(const block *b)
subroutine volumeprism(xyzNodes, faceVecs, volume)
subroutine volumehexa(xyzNodes, faceVecs, volume)
subroutine volumetetra(xyzNodes, faceVecs, volume)