summaryrefslogtreecommitdiff
path: root/beam_tracing/python/drawPrismDisk.py
diff options
context:
space:
mode:
authorbain <babronner@email.wm.edu>2013-05-03 15:09:10 -0400
committerbain <babronner@email.wm.edu>2013-05-03 15:09:10 -0400
commit9cfead0cabe8518931a490ea593e8335940d2a03 (patch)
tree1fb6cfaed6a8481572cb4d4c264973dc07e23bb4 /beam_tracing/python/drawPrismDisk.py
parent7fca0f9c8fb9e116fda63ff153557ec3176c16c4 (diff)
downloadwgmr-9cfead0cabe8518931a490ea593e8335940d2a03.tar.gz
wgmr-9cfead0cabe8518931a490ea593e8335940d2a03.zip
updated script. fixed beams traveling in odd directions.
Diffstat (limited to 'beam_tracing/python/drawPrismDisk.py')
-rw-r--r--beam_tracing/python/drawPrismDisk.py5
1 files 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: