23 procedure,
public :: pass =>
pass_mcp
39 method%type => method%cell%type
40 method%delegates = .true.
42 method%subcell => subcell
48 deallocate (this%type)
52 subroutine load_mcp(this, particle, next_level, submethod)
58 integer,
intent(in) :: next_level
59 class(
methodtype),
pointer,
intent(inout) :: submethod
61 select type (subcell => this%subcell)
63 call this%load_subcell(particle, subcell)
67 subcell=this%subcell, &
68 trackctl=this%trackctl, &
69 tracktimes=this%tracktimes)
71 particle%idomain(next_level) = 1
81 integer(I4B) :: exitface
82 integer(I4B) :: entryface
84 exitface = particle%iboundary(3)
86 select case (exitface)
102 if (entryface .eq. -1)
then
103 particle%iboundary(2) = 0
105 if ((entryface .ge. 1) .and. (entryface .le. 4))
then
107 select type (cell => this%cell)
109 entryface = entryface + cell%ipvOrigin - 1
111 if (entryface .gt. 4) entryface = entryface - 4
113 particle%iboundary(2) = entryface
122 real(DP),
intent(in) :: tmax
130 select type (cell => this%cell)
133 call this%update(particle, cell%defn)
134 if (.not. particle%advancing)
return
138 if (particle%z > cell%defn%top)
then
139 particle%z = cell%defn%top
140 call this%save(particle, reason=1)
145 xorigin = cell%xOrigin
146 yorigin = cell%yOrigin
147 zorigin = cell%zOrigin
150 call particle%transform(xorigin, yorigin, zorigin, &
154 call this%track(particle, 2, tmax)
158 call particle%transform(xorigin, yorigin, zorigin, &
159 sinrot, cosrot, invert=.true.)
160 call particle%transform(reset=.true.)
171 select type (cell => this%cell)
180 subcell%sinrot =
dzero
181 subcell%cosrot =
done
182 subcell%xOrigin =
dzero
183 subcell%yOrigin =
dzero
184 subcell%zOrigin =
dzero
187 subcell%vx1 = cell%vx1
188 subcell%vx2 = cell%vx2
189 subcell%vy1 = cell%vy1
190 subcell%vy2 = cell%vy2
191 subcell%vz1 = cell%vz1
192 subcell%vz2 = cell%vz2
subroutine, public create_cell_rect(cell)
Create a new rectangular cell.
This module contains simulation constants.
real(dp), parameter dzero
real constant zero
real(dp), parameter done
real constant 1
This module defines variable data types.
subroutine pass_mcp(this, particle)
Having exited the lone subcell, pass the particle to the cell face In this case the lone subcell is t...
procedure subroutine, public create_method_cell_pollock(method)
Create a tracking method.
subroutine load_subcell(this, particle, subcell)
Loads the lone rectangular subcell from the rectangular cell.
subroutine destroy_mcp(this)
Destroy the tracking method.
subroutine load_mcp(this, particle, next_level, submethod)
Load subcell tracking method.
subroutine apply_mcp(this, particle, tmax)
Apply Pollock's method to a rectangular cell.
Particle tracking strategies.
Subcell-level tracking methods.
type(methodsubcellpollocktype), pointer, public method_subcell_plck
type(methodsubcellternarytype), pointer, public method_subcell_tern
subroutine, public create_subcell_rect(subcell)
Create a new rectangular subcell.
Base type for particle tracking methods.
Particle tracked by the PRT model.