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.

At the above data, a first 201 is the number <strong>of</strong> energy bins and next 0.0005is the energy bin width in MeV. Following numbers corresponds to number<strong>of</strong> X-rays per energy bin. The lower energy corresponding the first binis 0.0. Modify the parts <strong>of</strong> data read.Changeto2nsebin=2! Number <strong>of</strong> source energy binsread(2,*) (esbin(i),i=1,nsebin)read(2,*) (espdf(i),i=1,nsebin)read(2,*) nsebin! Number <strong>of</strong> source energy binsread(2,*) deltaes! Source energy bin width in MeVread(2,*) (espdf(i),i=1,nsebin) Modify the number <strong>of</strong> cdf bin. 3Changetoescdf(1)=espdf(1)/tnumdo ie=2,nsebinescdf(ie)=escdf(ie-1)+espdf(ie)/tnumend donsebin=nsebin+1esbin(1)=0.d0escdf(1)=espdf(1)/tnumdo ie=2,nsebinesbin(ie)=(ie-1)*deltaesescdf(ie)=escdf(ie-1)+espdf(ie)/tnumend do Initialize sampled X-ray spectrum.Changet<strong>of</strong>exps2s=0.D0fexps2s=0.D0do ie=1,nsebinsaspec(ie)=0.D0end do2 If it is necessary to change the value <strong>of</strong> the argument, you must check "out <strong>of</strong> bound" error by running egs5<strong>with</strong> debug option as foolows. In the case <strong>of</strong> Unix or Cygwin, key in "egs5run db" instead <strong>of</strong> "egs5run". Next,execute programe by "egs5job.exe". In the case <strong>of</strong> DOS, execute "egs5run db ucxyz <strong>phantom</strong>2".Modify egs5run.bat to use debug mode and save asegs5run db.bat for this purpose.If "out <strong>of</strong> bound error" occurs, the line number and the argument coused error is displayed. Running egs5 <strong>with</strong>debug option needs mor CPU time than usual way and therefore is used only for this kind <strong>of</strong> check.3 If it is necessary to change the value <strong>of</strong> the argument, you must check "out <strong>of</strong> bound" error by running egs5<strong>with</strong> debug option as foolows. In the case <strong>of</strong> Unix or Cygwin, key in "egs5run db" instead <strong>of</strong> "egs5run". Next,execute programe by "egs5job.exe". In the case <strong>of</strong> DOS, execute "egs5run db uc<strong>phantom</strong>cgv2".Modify egs5run.bat to use debug mode and save asegs5run db.bat for this purpose.If "out <strong>of</strong> bound error" occurs, the line number and the argument coused error is displayed. Running egs5 <strong>with</strong>debug option needs mor CPU time than usual way and therefore is used only for this kind <strong>of</strong> check.43

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

Saved successfully!

Ooh no, something went wrong!