Modify source energy sampling statements.Changecall randomset(rnnow)do ie=1,nsebinif(rnnow.le.escdf(ie)) go to 1000end do1000 ekin=esbin(ie)tocall randomset(rnnow)do ie=1,nsebinif(rnnow.le.escdf(ie)) go to 1000end do1000 if (ie.gt.nsebin) thenie=nsebinend ifsaspec(ie)=saspec(ie)+1.D0if (escdf(ie).eq.escdf(ie-1)) thenekin=esbin(ie-1)elseekin=esbin(ie-1)+(rnnow-escdf(ie-1))*(esbin(ie)-esbin(ie-1))/* (escdf(ie)-escdf(ie-1))end if Add statements to output sampled X-ray spectrum.Change!-----------------------------! Sampled source spectrum!-----------------------------to!-----------------------------! Sampled source spectrum!-----------------------------do ie=2,nsebinsaspec(ie)=saspec(ie)/float(ncases)end dowrite(6,272)272 FORMAT(/' Comparison between sampled spectrum and pdf'* /23X,' Sampled pdf ',25X,' Sampled pdf '* )do ie=2,nsebin,2if(ie.eq.nsebin) thenwrite(6,274) esbin(ie),saspec(ie),escdf(ie)-escdf(ie-1)274 FORMAT(1X,G9.3,' MeV(upper)-- ',2G12.5)elsewrite(6,276) esbin(ie),saspec(ie),escdf(ie)-escdf(ie-1),* esbin(ie+1), saspec(ie+1),escdf(ie+1)-escdf(ie)276 FORMAT(1X,G9.3,' MeV(upper)-- ',2G12.5,3X, ' ',G9.3,* ' MeV(upper)-- ',2G12.5)end ifend do Modify output format for the source information.Change280 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for Co-60 photon'/to280 FORMAT(/' Absorbed energy <strong>inside</strong> <strong>phantom</strong> for 100kV X-ray'/5. Modify ucxyz <strong>phantom</strong>2.inp as follows:Change 2 places <strong>of</strong>44
&INP AE=0.521,AP=0.0100,UE=2.011,UP=1.5 /ENDto&INP AE=0.521,AP=0.0100,UE=0.711,UP=0.2 /END6. Run ucxyz <strong>phantom</strong>2.f by egs5run. In the case <strong>of</strong> Linux or CygwinEnter ucxyz <strong>phantom</strong>2 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>27. Check egs5job.out to confirm average source energy is nearly equal to 40keV.Compare the sampled spectrum <strong>with</strong> pdf. Compare the absorbed dose <strong>distribution</strong><strong>with</strong> xyz <strong>phantom</strong>.out.8. Check the trajectories using CGview.4.3 Problem 31. cp ucxyz <strong>phantom</strong>2.data ucxyz <strong>phantom</strong>3.data2. cp ucxyz <strong>phantom</strong>2.inp ucxyz <strong>phantom</strong>3.inp3. Modify ucxyz <strong>phantom</strong>3.data as follows:(a) Modify the number <strong>of</strong> voxel at Z-direction.Change1.0, 20 voxel width, number <strong>of</strong> voxelsto1.0, 16 voxel width, number <strong>of</strong> voxels(b) Modify the material assignment etc.Change1,3,1,3, 2,21, 1, 0.000, 0.00, 0.00 tissue1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impac1,3,1,3,22,22, 2, 0.00, 0.00, 0.00 air1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impacto1,3,1,3, 2, 4, 1, 0.000, 0.00, 0.00 tissue1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impac1,3,1,3, 5,14, 1, 0.300, 0.00, 0.00 lung1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impac1,3,1,3,15,17, 1, 0.000, 0.00, 0.00 tissue1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impac1,3,1,3,18,18, 2, 0.00, 0.00, 0.00 air1 1 0 0 0 0 0 0 peang,edgefl,auger,ray,pola,incoh,pr<strong>of</strong>,impac4. Execute run5again. In the case <strong>of</strong> Linux or CygwinEnter ucxyz <strong>phantom</strong>3 as the file name for unit 4 and simply enter "return"as the file name for unit 25.Enter simply return for "Enter name <strong>of</strong> the executable".45
- Page 1 and 2: KEK Internal 2011-8December 2011R/D
- Page 3 and 4: Lecture Notes ofDose distribution c
- Page 5 and 6: 2.8.1 Statistical uncertainty . . .
- Page 7 and 8: 1 ucxyz phantom.f ucxyz phantom.f
- Page 9 and 10: common/score/! Variables to score*
- Page 11 and 12: emaxe = 0.D0 ! dummy value to extra
- Page 13 and 14: vin=dsin(phai)*sinthdis=sposi/winxp
- Page 15 and 16: 2.9 Step 9: Output of results ()wr
- Page 17 and 18: ipeangswiedgeswiaugerswirayswipolar
- Page 19 and 20: ! ---------------------------------
- Page 21 and 22: end ifend ifend ifdnear(np)=dnearlr
- Page 23 and 24: 4 ucxyz phantom.f (egs5job.out, e
- Page 25 and 26: 4.2 1. cp ucxyz phantom1.f ucxyz ph
- Page 27 and 28: call randomset(rnnow)do ie=1,nsebin
- Page 29 and 30: Linux 4 ucxyz phantom3 25 Enter
- Page 31 and 32: Linux ucxyz phantom5 , 4 25 "Doe
- Page 33 and 34: 1 Outlines of sample user code ucxy
- Page 35 and 36: common/score/! Variables to score*
- Page 37 and 38: Output the material data and parame
- Page 39 and 40: totke = totke + availkelatchi=0! Ke
- Page 41 and 42: * rhor(irl),dose(i,j,kkk),doseun(i,
- Page 43 and 44: Ifahistorynumberislessthanmaxpict,
- Page 45 and 46: 3 Exercise problems3.1 Problem 1 :
- Page 47 and 48: ! Source position from phantom surf
- Page 49: At the above data, a first 201 is t
- Page 53 and 54: (b) Add new material (Iron).ChangeA
- Page 55 and 56: !**********************************
- Page 57 and 58: !----------------------------------
- Page 59 and 60: faexp=0.D0faexps=0.D0faexp2s=0.D0fe
- Page 61 and 62: ! =======================if (iwatch
- Page 63 and 64: do k=kdosl(idose),kdosu(idose)do j=
- Page 65 and 66: ! Record 10a ipeangsw, Switches for
- Page 67 and 68: if (maxz.gt.LKMAX) thenwrite(ifto,'
- Page 69 and 70: zbound(in+1)=zbound(in)+widthend do
- Page 71 and 72: if(idosu(idgrp).le.0 .or. idosu(idg
- Page 73 and 74: !--------------------------------if
- Page 75 and 76: end ifend ifelse if (u(np) .lt. 0.0