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.

! Source position from <strong>phantom</strong> surface in cm.sposi=10.0nsebin=2! Number <strong>of</strong> source energy binsread(2,*) (esbin(i),i=1,nsebin)read(2,*) (espdf(i),i=1,nsebin)!---------------------------! Calculate CDF from pdf!---------------------------tnum=0.D0do ie=1,nsebintnum=tnum+espdf(ie)end doescdf(1)=espdf(1)/tnumdo ie=2,nsebinescdf(ie)=escdf(ie-1)+espdf(ie)/tnumend do Modify the maximum electron kinetic energy used.Changeekein=1.253! Kinetic energy <strong>of</strong> source photontoekein=esbin(nsebin) ! Maximum kinetic energy} Add sampling routines for source photon energy sampling.Changeekin=ekeintocall randomset(rnnow)do ie=1,nsebinif(rnnow.le.escdf(ie)) go to 1000end do1000 ekin=esbin(ie) Modify output statement concerning the source energy.Change300 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for 1.253MeV photon'/to300 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for Co-60 photon'/5. Run ucxyz <strong>phantom</strong>1.f by egs5run. In the case <strong>of</strong> Linux or CygwinEnter ucxyz <strong>phantom</strong>1 as the user code.Simply enter "return" as the file name for unit 4 and 25.Enter 1 for "Does this user code read from the terminal?". In the case <strong>of</strong> DOSegs5run ucxyz <strong>phantom</strong>16. Check egs5job.out to confirm average source energy is nearly equal to 1.253MeV.Compare the obtained results <strong>with</strong> xyz <strong>phantom</strong>.out.4.2 Problem 21. cp ucxyz <strong>phantom</strong>1.f ucxyz <strong>phantom</strong>2.f2. cp ucxyz <strong>phantom</strong>1.data ucxyz <strong>phantom</strong>2.data3. cp ucxyz <strong>phantom</strong>1.inp ucxyz <strong>phantom</strong>2.inp41

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

Saved successfully!

Ooh no, something went wrong!