13.07.2015 Views

Lecture Notes of Dose distribution calculation inside phantom with ...

Lecture Notes of Dose distribution calculation inside phantom with ...

Lecture Notes of Dose distribution calculation inside phantom with ...

SHOW MORE
SHOW LESS

You also want an ePaper? Increase the reach of your titles

YUMPU automatically turns print PDFs into web optimized ePapers that Google loves.

!--------------------------------if(i.eq.imax/2+1.and.j.eq.jmax/2+1) then ! X-Y central regionif (abs(irl-irold).eq.ijmax.and.iq(np).eq.0) thenif ((w(np).gt.0.0.and.k.eq.2).or.* (w(np).le.0.0.and.k.eq.1)) thenif (dabs(w(np)).ge.0.0349) thencmod=dabs(w(np))elsecmod=0.01745end ifesing=e(np)dcon=encoea(esing)! PHOTX datafexps=fexps+e(np)*dcon*wt(np)/cmodif (w(np).lt.0.0) latch(np)=1if (w(np).gt.0.0.and.latch(np).eq.0) thenfaexp=faexp+e(np)*dcon*wt(np)/cmodend ifend ifend ifend if! ------------------------------------! Output particle information for plot! ------------------------------------if (ncount.le.maxpict) thencall plotxyz(iarg,np,iq(np),x(np),y(np),z(np),e(np),ir(np),* wt(np),time(np))end ifreturnend!--------------------------last line <strong>of</strong> ausgab.f------------------------!-------------------------------howfar.f--------------------------------! Version: 030831-1300! Reference: SLAC-265 (p.19-20, Appendix 2)!-----------------------------------------------------------------------!23456789|123456789|123456789|123456789|123456789|123456789|123456789|12! ----------------------------------------------------------------------! Required (geometry) subroutine for use <strong>with</strong> the EGS5 Code System! ----------------------------------------------------------------------! HOWFAR routine to use <strong>with</strong> a generalized cartesian coordinate system! for voxel geometry.!! Geometrical information is passed in common/geoxyz! xbound(MXXPLNS+1),ybound(MXYPLNS+1),zbound(MXZPLNS+1),imax,jmax,! kmax,ijmax,irmax! xbound etc are the X, Y and Z boundaries defining the voxels! MXXPLNS etc are the maximum number <strong>of</strong> planes in each direction! as defined in the auxiliary-code header file.! imax etc are the actual number <strong>of</strong> elements in each direction for! this particular <strong>calculation</strong>! ijmax = imax*jmax a useful number! irmax = 1 + ijmax*kmax the total number <strong>of</strong> regions in the! current problem!! Each voxel is defined by a triple <strong>of</strong> integers (i,j,j) (but called! irx,iry and irz in this routine) such that:!! xbound(i)

Hooray! Your file is uploaded and ready to be published.

Saved successfully!

Ooh no, something went wrong!