24 procedure,
public :: pass =>
pass_mcp
40 method%name => method%cell%type
41 method%delegates = .true.
43 method%subcell => subcell
49 deallocate (this%name)
53 subroutine load_mcp(this, particle, next_level, submethod)
59 integer,
intent(in) :: next_level
60 class(
methodtype),
pointer,
intent(inout) :: submethod
62 select type (subcell => this%subcell)
64 call this%load_subcell(particle, subcell)
68 subcell=this%subcell, &
69 trackctl=this%trackctl, &
70 tracktimes=this%tracktimes)
72 particle%idomain(next_level) = 1
82 integer(I4B) :: exitface
83 integer(I4B) :: entryface
85 exitface = particle%iboundary(3)
87 select case (exitface)
103 if (entryface .eq. -1)
then
104 particle%iboundary(2) = 0
106 if ((entryface .ge. 1) .and. (entryface .le. 4))
then
108 select type (cell => this%cell)
110 entryface = entryface + cell%ipvOrigin - 1
112 if (entryface .gt. 4) entryface = entryface - 4
114 particle%iboundary(2) = entryface
123 real(DP),
intent(in) :: tmax
131 select type (cell => this%cell)
134 call this%check(particle, cell%defn, tmax)
135 if (.not. particle%advancing)
return
139 xorigin = cell%xOrigin
140 yorigin = cell%yOrigin
141 zorigin = cell%zOrigin
144 call particle%transform(xorigin, yorigin, zorigin, &
148 call this%track(particle, 2, tmax)
151 call particle%transform(xorigin, yorigin, zorigin, &
152 sinrot, cosrot, invert=.true.)
153 call particle%reset_transform()
164 select type (cell => this%cell)
173 subcell%sinrot =
dzero
174 subcell%cosrot =
done
175 subcell%xOrigin =
dzero
176 subcell%yOrigin =
dzero
177 subcell%zOrigin =
dzero
180 subcell%vx1 = cell%vx1
181 subcell%vx2 = cell%vx2
182 subcell%vy1 = cell%vy1
183 subcell%vy2 = cell%vy2
184 subcell%vz1 = cell%vz1
185 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.