Sample material input
(caution:note that parameter declaration is also required,
and the source should be located before the "call shower( )" in the main loop in case of randum-number is used.)
| Source type | Source input example | ||||||||
| Pencil beam of 20 MeV e- |
iqin = -1
ekein = 20.0d0
xin = 0.0
yin = 0.0
zin = 0.0
uin = 0.0
vin = 0.0
win = 1.0
wtin = 1.0
| ||||||||
| Isotropic source of Cs-137 |
iqin = 0
ekein = 0.662
xin = 0.0
yin = 0.0
zin = 0.0
call randomset(r1)
call randomset(r2)
cost = 2*(r1-0.5)
phi = 2*pi*r2
sint = sqrt(1-cont*cont)
uin = sint * cos(phi)
vin = sint * sin(phi)
win = cost
wtin = 1.0
* Note that if θ and φ are dedetermined by random numbers
the (u,v,w), after coordinate transformation, will not be unifoly prepared.
| ||||||||
| Another isotropic source of Cs-137 |
iqin = 0
ekein = 0.662
xin = 0.0
yin = 0.0
zin = 0.0
275 call randomset(r1)
call randomset(r2)
call randomset(r3)
zi0 = r1
xi0 = 2.0*r2 - 1.0
yi0 = 2.0*r3 - 1.0
rr0 = dsqrt(xi0*xi0+yi0*yi0+zi0*zi0)
if(rr0.gt.1.0) go to 275
win = zi0/rr0
uin = xi0/rr0
vin = yi0/rr0
|