23 procedure,
public :: pass =>
pass_mcp
39 method%name => method%cell%type
40 method%delegates = .true.
42 method%subcell => subcell
48 deallocate (this%name)
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%check(particle, cell%defn)
134 if (.not. particle%advancing)
return
138 xorigin = cell%xOrigin
139 yorigin = cell%yOrigin
140 zorigin = cell%zOrigin
143 call particle%transform(xorigin, yorigin, zorigin, &
147 call this%track(particle, 2, tmax)
150 call particle%transform(xorigin, yorigin, zorigin, &
151 sinrot, cosrot, invert=.true.)
152 call particle%reset_transform()
163 select type (cell => this%cell)
172 subcell%sinrot =
dzero
173 subcell%cosrot =
done
174 subcell%xOrigin =
dzero
175 subcell%yOrigin =
dzero
176 subcell%zOrigin =
dzero
179 subcell%vx1 = cell%vx1
180 subcell%vx2 = cell%vx2
181 subcell%vy1 = cell%vy1
182 subcell%vy2 = cell%vy2
183 subcell%vz1 = cell%vz1
184 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.