239 class(MethodCellPollockQuadType),
intent(inout) :: this
240 type(ParticleType),
pointer,
intent(inout) :: particle
241 class(SubcellRectType),
intent(inout) :: subcell
243 real(DP) :: dx, dy, dz, areax, areay, areaz
244 real(DP) :: dxprel, dyprel
245 integer(I4B) :: isc, npolyverts, m1, m2
246 real(DP) :: qextl1, qextl2, qintl1, qintl2
247 real(DP) :: factor, term
249 select type (cell => this%cell)
250 type is (cellrectquadtype)
251 factor = done / cell%defn%retfactor
252 factor = factor / cell%defn%porosity
253 npolyverts = cell%defn%npolyverts
255 isc = particle%idomain(3)
263 dxprel = particle%x / dx
264 dyprel = particle%y / dy
266 if (dyprel .ge. 5d-1)
then
267 if (dxprel .le. 5d-1)
then
273 if (dxprel .le. 5d-1)
then
280 subcell%isubcell = isc
281 particle%idomain(3) = isc
285 dz = cell%defn%top - &
290 qintl1 = cell%qintl(isc)
292 qintl2 = cell%qintl(isc + 1)
293 qextl1 = cell%qextl1(isc)
294 qextl2 = cell%qextl2(isc)
299 subcell%sinrot = dzero
300 subcell%cosrot = done
301 subcell%zOrigin = dzero
306 term = factor / areax
307 subcell%vx1 = qintl1 * term
308 subcell%vx2 = -qextl2 * term
309 term = factor / areay
310 subcell%vy1 = -qintl2 * term
311 subcell%vy2 = -qextl1 * term
314 subcell%yOrigin = dzero
315 term = factor / areax
316 subcell%vx1 = -qintl2 * term
317 subcell%vx2 = -qextl1 * term
318 term = factor / areay
319 subcell%vy1 = qextl2 * term
320 subcell%vy2 = -qintl1 * term
322 subcell%xOrigin = dzero
323 subcell%yOrigin = dzero
324 term = factor / areax
325 subcell%vx1 = qextl2 * term
326 subcell%vx2 = -qintl1 * term
327 term = factor / areay
328 subcell%vy1 = qextl1 * term
329 subcell%vy2 = qintl2 * term
331 subcell%xOrigin = dzero
333 term = factor / areax
334 subcell%vx1 = qextl1 * term
335 subcell%vx2 = qintl2 * term
336 term = factor / areay
337 subcell%vy1 = qintl1 * term
338 subcell%vy2 = -qextl2 * term
342 term = factor / areaz
343 subcell%vz1 = 2.5d-1 * cell%defn%faceflow(m1) * term
344 subcell%vz2 = -2.5d-1 * cell%defn%faceflow(m2) * term