From 9cfead0cabe8518931a490ea593e8335940d2a03 Mon Sep 17 00:00:00 2001 From: bain Date: Fri, 3 May 2013 15:09:10 -0400 Subject: updated script. fixed beams traveling in odd directions. --- beam_tracing/python/drawPrismDisk.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/beam_tracing/python/drawPrismDisk.py b/beam_tracing/python/drawPrismDisk.py index a099096..a18d94a 100644 --- a/beam_tracing/python/drawPrismDisk.py +++ b/beam_tracing/python/drawPrismDisk.py @@ -74,8 +74,9 @@ def drawPrismDisk(prismAngleInDegrees, nDisk, nPrism, diskX, coupDesc): xOutStart = xCross yOutStart = yCross xOutStop = 1.5 - xBeamOut = np.linspace(xOutStart, xOutStop) - yBeamOut = yOutStart + np.tan(thetaAirHorizon) * (xBeamOut - xOutStart) + yOutStop = 2.0 + yBeamOut = np.linspace(yOutStart, yOutStop) + xBeamOut = xOutStart + (1/np.tan(thetaAirHorizon)) * (yBeamOut - yOutStart) # this keeps the beam from going farther than necessary i = 0 for value in yBeamOut: -- cgit v1.2.3