Light Sources for Monte Carlo Simulation. Contents

Similar documents
Math 2130 Practice Problems Sec Name. Change the Cartesian integral to an equivalent polar integral, and then evaluate.

9.5 Polar Coordinates. Copyright Cengage Learning. All rights reserved.

Coordinate Transformations in Advanced Calculus

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 27 / 45

Math 231E, Lecture 34. Polar Coordinates and Polar Parametric Equations

6.7. POLAR COORDINATES

Lesson 9. Three-Dimensional Geometry

Section 10.1 Polar Coordinates

Gaussian Beam Calculator for Creating Coherent Sources

MULTIPLE CHOICE. Choose the one alternative that best completes the statement or answers the question.

S8.6 Volume. Section 1. Surface area of cuboids: Q1. Work out the surface area of each cuboid shown below:

Further Volume and Surface Area

MAC2313 Test 3 A E g(x, y, z) dy dx dz

Polar Coordinates. Chapter 10: Parametric Equations and Polar coordinates, Section 10.3: Polar coordinates 28 / 46

Chapter 15 Notes, Stewart 7e

: Find the values of the six trigonometric functions for θ. Special Right Triangles:

y = 4x + 2, 0 x 1 Name: Class: Date: 1 Find the area of the region that lies under the given curve:

16.6. Parametric Surfaces. Parametric Surfaces. Parametric Surfaces. Vector Calculus. Parametric Surfaces and Their Areas

Worksheet 3.5: Triple Integrals in Spherical Coordinates. Warm-Up: Spherical Coordinates (ρ, φ, θ)

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

UNIVERSITI TEKNOLOGI MALAYSIA SSE 1893 ENGINEERING MATHEMATICS TUTORIAL 5

Mid-Chapter Quiz: Lessons 9-1 through 9-3

LED Optics Designer 1.6. User's Guide

青藜苑教育 Volume of cylinder = r h 965 = r = 6 r 965 = r 9.98 = r = r So the radius of the cylinde

VOLUME OF A REGION CALCULATOR EBOOK

Getting a New Perspective

Fall 2016 Semester METR 3113 Atmospheric Dynamics I: Introduction to Atmospheric Kinematics and Dynamics

dq dt I = Irradiance or Light Intensity is Flux Φ per area A (W/m 2 ) Φ =

Quadric Surfaces. Six basic types of quadric surfaces: ellipsoid. cone. elliptic paraboloid. hyperboloid of one sheet. hyperboloid of two sheets

Math Boot Camp: Coordinate Systems

Conics, Parametric Equations, and Polar Coordinates. Copyright Cengage Learning. All rights reserved.

MATH 2023 Multivariable Calculus

Curvilinear Coordinates

Aptitude Volume and Surface Area. Theory

MATHEMATICS FOR ENGINEERING TUTORIAL 5 COORDINATE SYSTEMS

Optics II. Reflection and Mirrors

Geometry 10 and 11 Notes

16.6 Parametric Surfaces and Their Areas

Conics, Parametric Equations, and Polar Coordinates. Copyright Cengage Learning. All rights reserved.

Worksheet 3.4: Triple Integrals in Cylindrical Coordinates. Warm-Up: Cylindrical Volume Element d V

MA 243 Calculus III Fall Assignment 1. Reading assignments are found in James Stewart s Calculus (Early Transcendentals)

Geometrical Optics INTRODUCTION. Wave Fronts and Rays

Volumes of Solids of Revolution Lecture #6 a

1 Double Integrals over Rectangular Regions

QUIZ 4 (CHAPTER 17) SOLUTIONS MATH 252 FALL 2008 KUNIYUKI SCORED OUT OF 125 POINTS MULTIPLIED BY % POSSIBLE

3. Draw the orthographic projection (front, right, and top) for the following solid. Also, state how many cubic units the volume is.

Lecture Outline Chapter 26. Physics, 4 th Edition James S. Walker. Copyright 2010 Pearson Education, Inc.

Chapter 23. Geometrical Optics: Mirrors and Lenses and other Instruments

The Law of Reflection

Study Guide and Review

WW Prob Lib1 Math course-section, semester year

Revolve Vertices. Axis of revolution. Angle of revolution. Edge sense. Vertex to be revolved. Figure 2-47: Revolve Vertices operation

Engineered Diffusers Intensity vs Irradiance

Math League SCASD. Meet #5. Self-study Packet. Problem Categories for this Meet (in addition to topics of earlier meets):

Quadric surface. Ellipsoid

Jim Lambers MAT 169 Fall Semester Lecture 33 Notes

LIGHT-REFLECTION AND REFRACTION. It is a form of energy which is needed to see things around us. It travels in a straight line.

Mathematics. Geometry Revision Notes for Higher Tier

AREA OF A SURFACE OF REVOLUTION

EDEXCEL NATIONAL CERTIFICATE UNIT 4 MATHEMATICS FOR TECHNICIANS OUTCOME 1

Unit 7: 3D Figures 10.1 & D formulas & Area of Regular Polygon

Refraction at a single curved spherical surface

Calculus III. Math 233 Spring In-term exam April 11th. Suggested solutions

LESSON 14 LEARNING OBJECTIVES. After completing this lesson, you will be able to:

CONTENTS Huygens Theory of Double Refraction Principal Working Nicol Prism as a Polariser and an Analyser Quarter Wave Plate Half Wave Plate

Vectors and the Geometry of Space

Trigonometric Graphs. Graphs of Sine and Cosine

Reflection and Refraction

LASCAD Tutorial No. 2: Modeling a laser cavity with side pumped rod

Configuration of Light Sources

Reflective Illumination for DMS 803 / 505

Chapter 23. Geometrical Optics (lecture 1: mirrors) Dr. Armen Kocharian

S3 (3.1) N5 Volume.notebook April 30, 2018

Geometry Vocabulary. acute angle-an angle measuring less than 90 degrees

CK-12 Geometry: Exploring Similar Solids. Learning Objectives Find the relationship between similar solids and their surface areas and volumes.

Optics Vac Work MT 2008

Chapter 5 Partial Differentiation

newfasant US User Guide

TABLE OF CONTENTS PRODUCT DESCRIPTION VISUALIZATION OPTIONS MEASUREMENT OPTIONS SINGLE MEASUREMENT / TIME SERIES BEAM STABILITY POINTING STABILITY

PARAMETERIZATIONS OF PLANE CURVES

Name: Class: Date: 1. Use Lagrange multipliers to find the maximum and minimum values of the function subject to the given constraint.

Contents. MATH 32B-2 (18W) (L) G. Liu / (TA) A. Zhou Calculus of Several Variables. 1 Homework 1 - Solutions 3. 2 Homework 2 - Solutions 13

TEAMS National Competition Middle School Version Photometry Solution Manual 25 Questions

2017 Summer Course on Optical Oceanography and Ocean Color Remote Sensing. Monte Carlo Simulation

Strategy. Using Strategy 1

Complex Numbers, Polar Equations, and Parametric Equations. Copyright 2017, 2013, 2009 Pearson Education, Inc.

PHYSICS. Chapter 34 Lecture FOR SCIENTISTS AND ENGINEERS A STRATEGIC APPROACH 4/E RANDALL D. KNIGHT

STATE MU ALPHA THETA 2008 GEOMETRY 3-D

11.7 Exploring Similar Solids

POLARIZATION 3.5 RETARDATION PLATES

SP about Rectangular Blocks

Winmeen Tnpsc Group 1 & 2 Self Preparation Course Physics UNIT 9. Ray Optics. surface at the point of incidence, all lie in the same plane.

ü 12.1 Vectors Students should read Sections of Rogawski's Calculus [1] for a detailed discussion of the material presented in this section.

UNIT 3 CIRCLES AND VOLUME Lesson 5: Explaining and Applying Area and Volume Formulas Instruction

Double Integrals, Iterated Integrals, Cross-sections

Volume by Slicing (Disks & Washers)

Using a multipoint interferometer to measure the orbital angular momentum of light

The figures below are all prisms. The bases of these prisms are shaded, and the height (altitude) of each prism marked by a dashed line:

Mathematics 205 HWK 21 Solutions Section 16.5 p766

Unit 13: Periodic Functions and Trig

Transcription:

Light Sources for Monte Carlo Simulation Contents 1.1. Point and Line Sources 1.1.1. Point Sources 1.1.1.1. Directional point source {DirectionalPointSource} 1.1.1.2. Isotropic point source {IsotropicPointSource} 1.1.1.3. Custom point source {CustomPointSource} 1.1.2. Line Sources 1.1.2.1. Directional line source {DirectionalLineSource} 1.1.2.2. Isotropic line source {IsotropicLineSource} 1.1.2.3. Custom line source {CustomLineSource} 1.2. Surface Emitting Flat Light Sources 1.2.1. Circular Sources 1.2.1.1. Directional circular source {DirectionalCircularSource} 1.2.1.2. Custom circular source {CustomCircularSource} 1.2.2. Elliptical Sources 1.2.2.1. Directional elliptical source {DirectionalEllipticalSource} 1.2.2.2. Custom elliptical source {CustomEllipticalSource} 1.2.3. Rectangular Sources 1.2.3.1. Directional rectangular source {DirectionalRectangularSource} 1.2.3.2. Custom rectangular source {CustomRectangularSource} 1.3. Surface Emitting Bulk Light Sources 1.3.1. Spherical Sources 1.3.1.1. Lambertian spherical source {LambertianSurfaceEmittingSphericalSource} 1.3.1.2. Custom spherical source {CustomSurfaceEmittingSphericalSource} 1.3.2. Surface Emitting Cuboidal Sources 1.3.2.1. Lambertian cuboidal source {LambertianSurfaceEmittingCuboidalSource} 1.3.3. Tubular Sources 1.3.3.1. Lambertian Tubular source {LambertianSurfaceEmittingTubularSource} 1.3.4. Cylindrical Fiber Sources 1.3.4.1. Lambertian Cylindrical Fiber source {LambertianSurfaceEmittingCylindricalFiberSource} 1.4. Volumetric Light Sources 1.4.1. Ellipsoidal Sources 1.4.1.1. Isotropic ellipsoidal source {IsotropicVolumetricEllipsoidalSource} 1.4.1.2. Custom ellipsoidal source {CustomVolumetricEllipsoidalSource} 1.4.2. Volumetric Cuboidal Sources 1.4.2.1. Isotropic cuboidal source {IsotropicVolumetricCuboidalSource} 1.4.2.2. Custom cuboidal source {CustomVolumetricCuboidalSource} 1

Definitions and parameters Coordinate system and default values 1. The Cartesian coordinate system (right-hand rule) is used. 2. Center of each source is located at the origin (0, 0, 0). When a user defines the source location, corresponding source flag is set and translation operation is executed. 3. Direction of the source is defined relative to positive z-axis. Default directional unit vector is (0, 0, 1). User can change the direction of the source axis by specifying directional unit vector. 4. is azimuthal angle. Default azimuthal angle range is [0, 2π] 5. is polar angle. Default polar angle range to cover lower hemisphere (z > 0) is [0, π/2] and full sphere is [0, π]. Base Class There is a base class for each source type that contains common attributes and operations (Eg. PointSourceBase, LineSourceBase etc). Custom Sources In custom sources, user has the freedom to set polar angle range and azimuthal angle range. Source Profile User can define two photon emission location distributions: 1. Flat: Flat distribution in space 2. Gaussian: Gaussian distribution in space. This profile can be used to implement Gaussian beams (For lasers: TEM 00 only). 2D Gaussian distribution is given by following equation. 2

2 1 r pr ( ) exp 2 2 2 2 where is standard deviation. Box Mueller transform convert two independent uniform numbers ( 1and 2 ) into two independent normally distributed random numbers (N 1 and N 2). Mean and standard deviation of the distribution are 0 and 1 respectively. N 2ln( ) cos(2 ) 1 1 2 N 2ln( ) sin(2 ). 2 1 2 After box Muller transform, normally distributed random numbers are multiplied by 0.8493218 * beamfwhm. The standard deviation of the beam is equal to the radius of the beam @ FWHM (beamfwhm/2). Following calculations show the Gaussian laser sources and annular sources. When 1 = 0, N1 and N2. But lasers have finite aperture. That means photons generated beyond the aperture opening (outerradius) must be blocked. To satisfy this condition, we have to adjust the lower limit of the 1. We implemented this without using rejection sampling. The maximum value of N1 and N2 must be outerradius * cos(2 2) and outerradius * sin(2 2) means outerradius 0.8493218* beamfwhm 2ln( lowerlimit ).. That where k1 exp( 0.5 k ) lowerlimit outerradius 0.8493218* beamfwhm 2 1 For annular sources, N1 and N2 must be greater than or equal to innerradius of the circle. But when 1 reaches 1, N1 becomes zero. To fulfill this condition we calculate the upper limit of 1 similar to previous calculation. innerradius 0.8493218* beamfwhm 2ln( upperlimit ) exp( 0.5 k ) upperlimit innerradius where k2 0.8493218* beamfwhm 2 2 3

when innerradius = 0, k 2 = 0 and 1 "SourceProfileType": "Gaussian", "BeamDiaFWHM": 1.0 upperlimit Translation, rotation and source flags Source flags are used for three optional operations. When user assigns any value except default parameters for translatefromorigin, newdirectionofprincipalsourceaxis or, beamrotationfrominwardnormal, source flags detect the change and carry out the required operation. 1. Translation from origin: The centers of all sources are defined at the origin. When new location is assigned, this flag is set to 1. 2. Beam rotation from inward normal: This operation only rotates the beam by given angle pair (polar and azimuthal). It does not modify the emitting location. When the angle pair is other than (0, 0), this flag is set to 1. 3. Rotation of principal source axis: This operation rotates the complete source towards the given direction. When the direction is other than (0,0,1), this flag is set to 1. Description 1.1. Point and Line Sources 1.1.1. Point Source Input parameters for PointSourceBase class are: polarangleemissionrange azimuthalangleemissionrange direction pointlocation initialtissueregionindex 4

Default position and geometry: A point source is located at (0, 0, 0). 1.1.1.1. DirectionalPointSource(direction, pointlocation, initialtissueregionindex) : A user can define the emitting position (pointlocation) emitting direction (direction). "SourceType": "DirectionalPoint", "PointLocation": { "Direction": { 1.1.1.2. IsotropicPointSource(pointLocation, initialtissueregionindex): Isotropic emission of photons. By setting the location (pointlocation), user can place isotropic point source in any location "SourceType": "DirectionalPoint", "PointLocation": { "Z": 5.0 1.1.1.3. Custom point source(polarangleemissionrange, azimuthalangleemissionrange, pointlocation, direction, initialtissueregionindex): User can set polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomPoint", "PolarAngleEmissionRange": { 5

"AzimuthalAngleEmissionRange": { "PointLocation": { "Direction": { 1.1.2. Line Source Input parameters for LineSourceBase class are: linelength sourceprofile newdirectionofprincipalsourceaxis translationfromorigin beamrotationfrominwardnormal initialtissueregionindex Default position and geometry: A line source is defined such that the line is parallel to the x-axis. Center of the line is located at (0, 0, 0). linelength (L) is the full length of the line source. 1.1.2.1. DirectionalLineSource(thetaConvOrDiv, linelength, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex): User can define converging, diverging or collimated line sources by setting thetaconvordiv ( ). < 0: Converging beam (negative angles) > 0: Diverging beam (positive angles) = 0: Collimated beam 6

If NA (numerical aperture) is known, calculate = arcsin(na/n medium) and provide correct sign to represent the convergence or divergence property. In directional sources, emitting direction depends on the emitting position. Following algorithm is used to calculate the direction. i. Find the emitting location (l, 0, 0) in the line based on sourceprofile (Flat/Gaussian) type. ii.for collimated sources, new. iii.otherwise, for diverging and diverging sources, calculate polar angle ( new emitting location using UpdatePolarAngleForDirectionalSources(fulLength(L), curlength(l), thetaconvordiv( )) method. iv. Based on new l L 1 2 tan ( ) / tan where l is the length from the center to the emitting location new and emitting location, directional cosines are calculated by using GetDirectionForGiven2DPositionAndGivenPolarAngle(polarAngle, position) method. New direction = ( sign( l) sin, 0, cos ) "SourceType": "DirectionalLine", "ThetaConvOrDiv": 0.7071, "LineLength": 3.0, "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 new new ) at 7

1.1.2.2. IsotropicLineSource(lineLength, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex): Isotropic emission of photons from a line source. "SourceType": "IsotropicLine", "LineLength": 3.0, "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.1.2.3. CustomLineSource(lineLength, sourceprofile, polarangleemissionrange, azimuthalangleemissionrange newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex): User can set polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomLine", "LineLength": 3.0, "PolarAngleEmissionRange": { 8

"AzimuthalAngleEmissionRange": { "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2. Surface Emitting Flat Light Sources 1.2.1. Circular Sources Input parameters for CircularSourceBase class are: outerradius innerradius sourceprofile newdirectionofprincipalsourceaxis translationfromorigin beamrotationfrominwardnormal initialtissueregionindex Default position and geometry: The 2D circular source lies on x-y plane. Center of the circle is located at (0, 0, 0). outerradius is the radius of the circular source. User can define an annular source (innerradius >0) or a full circular (innerradius = 0) source. Emitting location on the circle (x, y) satisfies 2 2 2 x y r. innerradius r outerradius 1.2.1.1. DirectionalCircularSource(thetaConvOrDiv, outerradius, innerradius, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) See 1.1.2.1 DirectionalLineSource for more details about directional sources. 9

(Circular 45 (=0.7071rad) diverging beam) "SourceType": "DirectionalCircular", "ThetaConvOrDiv": 0.7071, "OuterRadius": 3.0, "InnerRadius": 0.0, "PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2.1.2. CustomCircularSource(outerRadius, innerradius, sourceprofile, polarangleemissionrange, azimuthalangleemissionrange, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) User can set polar angle range and azimuthal angle range (). "SourceType": "CustomCircular", "OuterRadius": 3.0, 10

"InnerRadius": 0.0, "PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2.2. Elliptical Sources Input parameters for EllipticalSourceBase class are: aparameter bparameter sourceprofile newdirectionofprincipalsourceaxis translationfromorigin beamrotationfrominwardnormal initialtissueregionindex Default position and geometry: 11

The 2D elliptical source lies on x-y plane. Center of the ellipse is located at (0, 0, 0). The aparameter and bparameter are a and b parameter of the ellipse equation. x a y b 2 2 1 2 2 1.2.2.1. DirectionalEllipticalSource(thetaConvOrDiv, aparameter, bparameter, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) See 1.1.2.1 DirectionalLineSource for more details about directional sources. "SourceType": "DirectionalElliptical", "ThetaConvOrDiv": 0.7071, "AParameter": 3.0, "BParameter": 2.0, "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2.2.2. CustomEllipticalSource(aParameter, bparameter, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) User can set polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomElliptical", 12

"AParameter": 3.0, "BParameter": 2.0, "PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2.3. Rectangular Sources Input parameters for RectangularSourceBase class are: rectlengthx rectwidthy sourceprofile newdirectionofprincipalsourceaxis translationfromorigin beamrotationfrominwardnormal initialtissueregionindex Default position and geometry: 13

The 2D rectangular source lies on x-y plane. Center of the rectangle is located at (0, 0, 0). Length (rectlengthx) and width (rectwidthy) parameters are parallel to x-axis and y-axis respectively. 1.2.3.1. DirectionalRectangularSource(thetaConvOrDiv, rectlengthx, rectwidthy, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) See DirectionalLineSource for more details about directional sources. "SourceType": "DirectionalRectangular", "ThetaConvOrDiv": 0.7071, "RectLengthX": 3.0, "RectWidthY": 2.0, "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.2.3.2. CustomRectangularSource(rectLengthX, rectwidthy, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, beamrotationfrominwardnormal, initialtissueregionindex) User can set polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomRectangular", "RectLengthX": 3.0, "RectWidthY": 2.0, 14

"PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.3. Surface Emitting Bulk Light Sources 1.3.1. Spherical Sources Input parameters for SurfaceEmittingSphericalSourceBase class are: radius polaranglerangetodefinesphericalsurface azimuthalanglerangetodefinesphericalsurface newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the sphere is located at (0, 0, 0). Surface of the sphere is defined by polar angle range (polaranglerangetodefinesphericalsurface) and azimuthal angle range (azimuthalanglerangetodefinesphericalsurface). 15

These examples show how we can define surface area of the sphere by using dual angle range variables. 1. Full sphere: polaranglerangetodefinesphericalsurface: [0, 2π] azimuthalanglerangetodefinesphericalsurface [0, π] 2. Lower hemisphere: (z 0) polaranglerangetodefinesphericalsurface: [0, 2π] azimuthalanglerangetodefinesphericalsurface [0, π/2] 3. Upper hemisphere: (z 0) polaranglerangetodefinesphericalsurface: [0, 2π] azimuthalanglerangetodefinesphericalsurface [π/2, π] 4. Lower left quarter sphere: (x 0; z 0) polaranglerangetodefinesphericalsurface: [π/2, 3π/2] azimuthalanglerangetodefinesphericalsurface [0, π/2] 1.3.1.1. LambertianSurfaceEmittingSphericalSource(radius, translationfromorigin, initialtissueregionindex) Emission from each point is Lambertian. "SourceType": "LambertianSurfaceEmittingSpherical", "Radius": 3.0, "BeamRotationFromInwardNormal": { "Theta": 0.0, "Phi": 0.0 1.3.1.2. CustomSurfaceEmittingSphericalSource(radius, polaranglerangetodefinesphericalsurface, azimuthalanglerangetodefinesphericalsurface, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) User can define the emission surface by setting polaranglerangetodefinesphericalsurface and azimuthalanglerangetodefinesphericalsurface. "SourceType": "CustomSurfaceEmittingSpherical", "Radius": 3.0, "PolarAngleEmissionRange": { 16

"AzimuthalAngleEmissionRange": { 1.3.2. Surface Emitting Cuboidal Sources Input parameters for SurfaceEmittingCuboidalSourceBase class are: cubelengthx cubewidthy cubeheightz sourceprofile polarangleemissionrange newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the cuboid is located at (0, 0, 0). There are six rectangular emitting surfaces in the cuboid. cubelengthx, cubewidthy, cubeheightz that are aligned parallel to x, y and z-axis respectively are length, width and height of the cube. Total surface area of the cuboid is sampled to decide the emitting surface. All surfaces are emitting at equal probability. Emission profile can be either Flat or Gaussian. In current version, a user cannot enable/disable emitting surfaces. 17

1.3.2.1. LambertianSurfaceEmittingCuboidalSource(cubeLengthX, cubewidthy, cubeheightz, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) Emission from each point is Lambertian. "SourceType": "LambertianSurfaceEmittingCubiodal", "CubeLengthX": 3.0, "CubeWidthY": 2.0, "CubeHeightZ": 1.0, 1.3.3. Tubular Sources Input parameters for SurfaceEmittingTubularSourceBase class are: tuberadius tubeheightz newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the tube is located at (0, 0, 0). Axis of the tube is parallel to the z-axis. tubeheightz and tuberadius are height and the radius of the tubular source. 1.3.3.1. LambertianSurfaceEmittingTubularSource(tubeRadius, tubeheightz, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) Emission from each location is Lambertian similar to light emission from a curved fiber surface. 18

"SourceType": "LambertianSurfaceEmittingTubular", "TubeRadius": 3.0, "TubeHeightZ": 5.0, 1.3.4. Cylindrical fiber Sources Input parameters for SurfaceEmittingCylindricalFiberSourceBase class are: fiberradius fiberheightz curvedsurfaceefficiency bottomsurfaceefficiency newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the cylindrical fiber is located at (0, 0, 0). Axis of the cylinder is parallel to the z-axis. fiberheightz and fiberradius are height and the radius of the cylindrical fiber source. This fiber source has two emitting surfaces: curved surface (tubular source) and bottom surface (circular source) 1.3.4.1. LambertianSurfaceEmittingCylindricalFiberSource(fiberRadius, fiberheightz, curvedsurfaceefficiency, bottomsurfaceefficiency, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) Emission from each location is Lambertian. Total surface area and emitting efficiencies (curvedsurfaceefficiency, bottomsurfaceefficiency) are combined and sampled to select the emitting surface. "SourceType": "LambertianSurfaceEmittingCylindricalFiber", "FiberRadius": 3.0, "FiberHeightZ": 5.0, "CurvedSurfaceEfficiency :0.5, 19

"BottomSurfaceEfficiency :0.2, 1.4. Volumetric Light Sources 1.4.1. Ellipsoidal Sources Input parameters for VolumetricEllipsoidalSourceBase class are: aparameter bparameter cparameter sourceprofile newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the ellipsoid is located at (0, 0, 0). aparameter, bparameter, cparameter are a, b and c parameters of ellipsoid equation. x y z a b c 2 2 2 1 2 2 2 1.4.1.1. IsotropicVolumetricEllipsoidalSource(aParameter, bparameter, cparameter, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) Isotropic emission of photons from a volumetric ellipsoid. "SourceType": "IsotropicVolumetricEllipsoidal", "AParameter": 3.0, "BParameter": 2.0, "CParameter": 2.0, 20

1.4.1.2. CustomVolumetricEllipsoidalSource(aParameter, bparameter, cparameter, sourceprofile, polaremissionrange, azimuthal EmissionRange, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) User can define polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomVolumetricEllipsoidal", "AParameter": 3.0, "BParameter": 2.0, "CParameter": 2.0, "PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { 21

1.4.2. Volumetric Cuboidal Sources Input parameters for VolumetricCuboidalSourceBase class are: cubelengthx cubewidthy cubeheightz SourceProfile newdirectionofprincipalsourceaxis translationfromorigin initialtissueregionindex Default position and geometry: Center of the cuboidal is located at (0, 0, 0). cubelengthx, cubewidthy, cubeheightz aligned parallel to x, y and z-axis are length, width and height of the cube respectively. 1.4.2.1. IsotropicVolumetricCuboidaSource(cubeLengthX, cubewidthy, cubeheightz, sourceprofile, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) Isotropic emission of photons from a volumetric cuboidal. "SourceType": "IsotropicVolumetricCubiodal", "cubelengthx": 3.0, "cubewidthy": 2.0, "cubeheightz": 2.0, 22

1.4.2.2. CustomVolumetricCuboidalSource(cubeLengthX, cubewidthy, cubeheightz, sourceprofile, polaremissionrange, azimuthal EmissionRange, newdirectionofprincipalsourceaxis, translationfromorigin, initialtissueregionindex) User can define polar angle range and azimuthal angle range (polarangleemissionrange and azimuthalangleemissionrange). "SourceType": "CustomVolumetricCubiodal", "cubelengthx": 3.0, "cubewidthy": 2.0, "cubeheightz": 2.0, "PolarAngleEmissionRange": { "AzimuthalAngleEmissionRange": { 23