How to Use the Program in ASAP_ITO

Embed Size (px)

Citation preview

  • 7/28/2019 How to Use the Program in ASAP_ITO

    1/3

    Rui, GUO

    [email protected]

    How to Use the Program in ASAP

    1. Main FunctionPyramid is the main function, which will call the other functions, for example MACROS.2. InputThe geometry parameters are defined in MACROS function, in which you can change the size

    of the object, the position and the number of light, and the position of the rectangle.

    "COATINGS PROPERTIES1.00000 0.000000 'REFLECT'

    0 0 'ABSORB'"

    Define the property of the surfaces.

    "UNITS MILLIMETER

    WAVELENGTH 500 NANOMETER"

    Define the basic physical parameters.

    "CURVESLINE 10.00000 -10.00000 0. 10.00000 10.00000 0.LINE 10.00000 10.00000 0.000000 0.000000 0.00000017.32051LINE 0.000000 0.000000 17.32051 10.00000 -10.000000.000000COMPOSITE GAP -1 -1

    OBJECT =1

    INTERFACE COATING "REFLECT"SCATTER MODEL 1

    TOWARDS EDGE 1 5"

    It shows part of the geometry information. These sentences will be automatically generated

    when you import the object, which can be built in Solidworks or other compatible

    applications.

    "TOWARDS EDGE 1 5"

    This sentence needs to be added every time after the description of the curve. It means five

    rays will be created from every light point.

    "EMITTING DISK -X 60 0 0 500 15 15ROTATE Z -25SHIFT Z 5SHIFT Y -30"

    A point of light is in its original position X -60, with 500 rays; the angle is 15 in two

    directions.

    First rotate round z,

    then shift it along z for 5 units

    then shift it along y for -30 units

    "RECTANGLE Z 0 0.001 0.001"Define the size of one pixel.

  • 7/28/2019 How to Use the Program in ASAP_ITO

    2/3

    Rui, GUO

    [email protected]

    3. loop"$DO 1 100"

    and"SHIFT X (XVALUE)SHIFT Y (YVALUE)"

    Define the distance the pixel moved

    "1 100"

    It means that the loop will be done for 100 times.

    And finally we will get a CCD of size 100*100.

    4. Output dataRAYDATA_kom.txtRAYDATA_int.txt

    These two documents will be automatically created in your folder.

    The information of amplitude and phase angle is in file RAYDATA_kom.txt

    And the intensity of the ray is in file RAYDATA_int.txt

    Attention:Every time when you want to regenerate the two files, make sure the

    old files are deleted; otherwise the data will accumulate and lead to

    wrong results!

  • 7/28/2019 How to Use the Program in ASAP_ITO

    3/3

    Rui, GUO

    [email protected]

    How To Use The Program In MATLAB

    1. PurposeThe MATLAB-program is used to reorganise the data from ASAP and finally get a graphic

    based on physical optics theory.

    2. DataRAYDATA_kom=load('U:\privat\ASAP\RAYDATA_kom.txt');RAYDATA_int=load('U:\privat\ASAP\RAYDATA_int.txt');

    Input the data from related file, the path is changeable.

    c=mat2cell(RAYDATA_kom, 10000, [2 1])

    the number 100 is changeable according to the size of CCD.

    For example, when in ASAP the size is 100*100, then here will be 10.000

    matrix_int=reshape(a,100,100)matrix_kom=reshape(reform_kom,100,100)

    the numbers above should be correct according to the settings of CCD.

    3. ResultRun the program and finally you will get a picture of CCD and the other information about

    the data.