10.07.2015 Views

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

THE EGS5 CODE SYSTEM

SHOW MORE
SHOW LESS

Create successful ePaper yourself

Turn your PDF publications into a flip-book with our unique Google optimized e-Paper software.

2324 25 26 27 282930ustep.gt.dnear(np)noyescallhowfarnorange .lt. dnear(np).and.e(np) .le. esave(irl).and.medium .ne. 0yes"user-range-discard"yeslelec.eq.-1idisc = 1noidisc = 99idisc.gt.0yes"imedeate discard: go to 16""chck negative USTEP"nonoustep.lt.0.yesustep.lt.-1.D-9noyesierust=ierust+1nonoustep.ne.0.yesmedium.ne.0yesedep = ustep * dedxiarg=0e(np) = e(np) - deinitial + denstepustep=o.donowrite(6,102)ierust,ustep,ir(np),irnew, irold,x(np),y(np),z(np),sqrt(x(np)**2 +y(np)**2)ierust.gt.1000write(6,103)stopyesiausfl(iarg+1)ne0noyescallausgab(iarg)e(np) = e(np) + deinitial - denstepx(np) = x(np) + u(np)*ustepy(np) = y(np) + v(np)*ustepz(np) = z(np) + w(np)*ustep3132 33 34 35 36 37 3839 40229

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

Saved successfully!

Ooh no, something went wrong!