diff options
author | bain <babronner@email.wm.edu> | 2013-05-03 15:09:10 -0400 |
---|---|---|
committer | bain <babronner@email.wm.edu> | 2013-05-03 15:09:10 -0400 |
commit | 9cfead0cabe8518931a490ea593e8335940d2a03 (patch) | |
tree | 1fb6cfaed6a8481572cb4d4c264973dc07e23bb4 | |
parent | 7fca0f9c8fb9e116fda63ff153557ec3176c16c4 (diff) | |
download | wgmr-9cfead0cabe8518931a490ea593e8335940d2a03.tar.gz wgmr-9cfead0cabe8518931a490ea593e8335940d2a03.zip |
updated script. fixed beams traveling in odd directions.
-rw-r--r-- | beam_tracing/python/drawPrismDisk.py | 5 |
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:
|