lamp_mac/FIGARO/
figaro.pro
************************************************************************ *** TRAJECTORY OF A NEUTRON ************************************************************************
Routines
result = parabolicTrajectory(startPoint, stopPoint)
result = parabola(point, xValue)
result = straightLine(point, xValue)
drawElement, element, col
plotNeutronTrajectory, path, col
plotStraightLineTrajectory, path, col
plotIntersection, intersection, col
result = pointOnSegment(point, segment)
result = intersectionOfParabola(point, segment)
result = intersectionOfStraightLine(point, segment)
result = intersectionWithElement(point, element, useGravity)
result = neutronPath(point, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, sample, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom, slit4Top, slit4Bottom, detector, detectorIntersection)
result = straightPath(point, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom)
drawUmbra, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom, slit4Top, slit4Bottom
figaro, thetaParam, s2h
Routine details
top parabolicTrajectory
result = parabolicTrajectory(startPoint, stopPoint)
Parameters
- startPoint
- stopPoint
top parabola
result = parabola(point, xValue)
************************************************************************ *** PARABOLA VALUE ************************************************************************
Parameters
- point
- xValue
top straightLine
result = straightLine(point, xValue)
************************************************************************ *** STRAIGHT LINE VALUE ************************************************************************
Parameters
- point
- xValue
top drawElement
************************************************************************ *** DRAWING AND ELEMENT ************************************************************************
Parameters
- element
- col
top plotNeutronTrajectory
plotNeutronTrajectory, path, col
************************************************************************ *** PLOT NEUTRON TRAJECTORY ************************************************************************
Parameters
- path
- col
top plotStraightLineTrajectory
plotStraightLineTrajectory, path, col
************************************************************************ *** PLOT STRAIGHTLINE TRAJECTORY ************************************************************************
Parameters
- path
- col
top plotIntersection
plotIntersection, intersection, col
************************************************************************ *** PLOTTING INTERSECTION ************************************************************************
Parameters
- intersection
- col
top pointOnSegment
result = pointOnSegment(point, segment)
************************************************************************ *** POINT ON SEGMENT ************************************************************************
Parameters
- point
- segment
top intersectionOfParabola
result = intersectionOfParabola(point, segment)
************************************************************************ *** GENERAL INTERSECTION FUNCTIONS *** input: segment, a point *** output: point ************************************************************************
Parameters
- point
- segment
top intersectionOfStraightLine
result = intersectionOfStraightLine(point, segment)
***** NOW FOR A STRAIGHT LINE
Parameters
- point
- segment
top intersectionWithElement
result = intersectionWithElement(point, element, useGravity)
************************************************************************ *** INTERSECTION BETWEEN A RAY AND AN ELEMENT *** input: a point, an element *** output: intersection point ************************************************************************
Parameters
- point
- element
- useGravity
top neutronPath
result = neutronPath(point, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, sample, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom, slit4Top, slit4Bottom, detector, detectorIntersection)
************************************************************************ *** INTERSECTION BETWEEN A RAY AND AN SEVERAL ELEMENTS *** input: a point, the elements *** output: intersection points array ************************************************************************
Parameters
- point
- scale
- mirror1Top
- mirror1Bottom
- mirror2Top
- mirror2Bottom
- sample
- slit1Top
- slit1Bottom
- slit2Top
- slit2Bottom
- bsTop
- diaphragm3Bottom
- slit3Top
- slit3Bottom
- slit4Top
- slit4Bottom
- detector
- detectorIntersection
top straightPath
result = straightPath(point, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom)
************************************************************************ *** COMPUTING THE PATH FOR AN UMBRA/PENUMBRA ray *** input: a point, an element *** output: intersection points array ************************************************************************
Parameters
- point
- scale
- mirror1Top
- mirror1Bottom
- mirror2Top
- mirror2Bottom
- slit1Top
- slit1Bottom
- slit2Top
- slit2Bottom
- bsTop
- diaphragm3Bottom
- slit3Top
- slit3Bottom
top drawUmbra
drawUmbra, scale, mirror1Top, mirror1Bottom, mirror2Top, mirror2Bottom, slit1Top, slit1Bottom, slit2Top, slit2Bottom, bsTop, diaphragm3Bottom, slit3Top, slit3Bottom, slit4Top, slit4Bottom
************************************************************************ *** DRAWING UMBRA AND PENUMBRA ************************************************************************
Parameters
- scale
- mirror1Top
- mirror1Bottom
- mirror2Top
- mirror2Bottom
- slit1Top
- slit1Bottom
- slit2Top
- slit2Bottom
- bsTop
- diaphragm3Bottom
- slit3Top
- slit3Bottom
- slit4Top
- slit4Bottom
top figaro
figaro, thetaParam, s2h
************************************************************************ *** MAIN ************************************************************************
Parameters
- thetaParam
- s2h
File attributes
Modification date: | Tue Oct 1 14:42:05 2013 |
Lines: | 1,728 |