Beruflich Dokumente
Kultur Dokumente
com
2. Input
The 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 PROPERTIES
1.00000 0 0.000000 0 'REFLECT' 'ABSORB'"
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 15 ROTATE Z -25 SHIFT Z 5 SHIFT 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"
3. loop
and
It means that the loop will be done for 100 times. And finally we will get a CCD of size 100*100.
4. Output data
RAYDATA_kom.txt RAYDATA_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!
2. Data
RAYDATA_kom=load('U:\privat\ASAP\RAYDATA_kom.txt'); RAYDATA_int=load('U:\privat\ASAP\RAYDATA_int.txt');
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)
3. Result
Run the program and finally you will get a picture of CCD and the other information about the data.