70 zlocold,xloc,yloc,zloc,xtraj,ytraj,ztraj)
95 INTEGER,
INTENT(IN) :: ifl,ipcl
96 REAL(RFREAL),
INTENT(INOUT) :: xloc,xlocold,yloc,ylocold,zloc,zlocold
97 REAL(RFREAL),
INTENT(INOUT),
OPTIONAL :: xtraj,ytraj,ztraj
98 TYPE(t_patch),
POINTER :: ppatch
99 TYPE(t_plag),
POINTER :: pplag
105 CHARACTER(CHRLEN) :: rcsidentstring
106 REAL(RFREAL) :: nx,ny,nz,xc,xmom,xrhssum,yc,ymom,yrhssum,zc,zmom,zrhssum
112 rcsidentstring =
'$RCSfile: PLAG_ReflectParticleData.F90,v $ $Revision: 1.8 $'
122 nx = ppatch%fn(xcoord,ifl)
123 ny = ppatch%fn(ycoord,ifl)
124 nz = ppatch%fn(zcoord,ifl)
126 xc = ppatch%fc(xcoord,ifl)
127 yc = ppatch%fc(ycoord,ifl)
128 zc = ppatch%fc(zcoord,ifl)
137 IF ( (present(xtraj) .EQV. .true.) .AND. &
138 (present(ytraj) .EQV. .true.) .AND. &
139 (present(ztraj) .EQV. .true.) )
THEN
147 xmom = pplag%cv(cv_plag_xmom,ipcl)
148 ymom = pplag%cv(cv_plag_ymom,ipcl)
149 zmom = pplag%cv(cv_plag_zmom,ipcl)
153 pplag%cv(cv_plag_xmom,ipcl) = xmom
154 pplag%cv(cv_plag_ymom,ipcl) = ymom
155 pplag%cv(cv_plag_zmom,ipcl) = zmom
157 xmom = pplag%cvOld(cv_plag_xmom,ipcl)
158 ymom = pplag%cvOld(cv_plag_ymom,ipcl)
159 zmom = pplag%cvOld(cv_plag_zmom,ipcl)
163 pplag%cvOld(cv_plag_xmom,ipcl) = xmom
164 pplag%cvOld(cv_plag_ymom,ipcl) = ymom
165 pplag%cvOld(cv_plag_zmom,ipcl) = zmom
171 xrhssum = pplag%rhsSum(cv_plag_xmom,ipcl)
172 yrhssum = pplag%rhsSum(cv_plag_ymom,ipcl)
173 zrhssum = pplag%rhsSum(cv_plag_zmom,ipcl)
177 pplag%rhsSum(cv_plag_xmom,ipcl) = xrhssum
178 pplag%rhsSum(cv_plag_ymom,ipcl) = yrhssum
179 pplag%rhsSum(cv_plag_zmom,ipcl) = zrhssum
181 xrhssum = pplag%rhsSum(cv_plag_xpos,ipcl)
182 yrhssum = pplag%rhsSum(cv_plag_ypos,ipcl)
183 zrhssum = pplag%rhsSum(cv_plag_zpos,ipcl)
187 pplag%rhsSum(cv_plag_xpos,ipcl) = xrhssum
188 pplag%rhsSum(cv_plag_ypos,ipcl) = yrhssum
189 pplag%rhsSum(cv_plag_zpos,ipcl) = zrhssum
subroutine plag_reflectparticledata(pPatch, pPlag, ifl, iPcl, xLocOld, yLocOld, zLocOld, xLoc, yLoc, zLoc, xTraj, yTraj, zTraj)
subroutine reflectvector(nx, ny, nz, xComp, yComp, zComp)
subroutine reflectposition(nx, ny, nz, xc, yc, zc, xComp, yComp, zComp)