CONTENTS

Front cover
Contents Page
Introduction To FOSP
Installation Instructions
Screen layout
Getting Started
Advanced Options
Troubleshooting
Glossary
Distribution Notes

Introduction To FOSP

Fibre Optic Simulation Program (FOSP for short) is a program to simulate rays of light travelling through a fibre optic cable. FOSP has a wide variety of options to enable you to simulate a wide variety of different cables. The program can simulate a single ray of light or lots of different rays, and can output data to files or even draw graphs. FOSP also has the capability to draw a diagram showing the effects of the reflections and refractions that a ray of light undergoes whilst travelling through a cable.
FOSP was designed to be used by A-level Physics students to investigate the effects of having fibre-optic cables. This documentation is to help with the installation and operation of the program. For information about the principles involved in this simulation, you should refer to an A-level textbook.


Installation Instructions

System Requirements: IBM compatible PC running Microsoft Windows 95/98*
Floppy Disk Drive
Hard-disk with minimum 10Mb free Space
16Mb RAM
Monitor and Keyboard

To install the software:

If you are installing from floppy disks, copy the contents of all three floppy disks to a folder on your hard-drive (the folder can have any name).
Run the program named 'Setup.exe' from the folder on your hard disk. If you are installing under Windows 95, you may be asked to restart your computer at this point so that files can be updated. If so, you should run Setup.exe again afterwards.
The installation program will now execute. Follow the on-screen prompts to specify the directory to install the software to and to add a shortcut to the 'Start' menu.
When the installation is complete, the software can be run from the start menu. The Floppy disks and the files you copied to your computer will no longer be needed to run the program, however you may wish to keep the HTML documentation on your hard-disk

If you are installing from the downloaded version, the installation can be started by simply running the 'Setup.exe' program.

*This program has been tested and is known to work under Microsoft Windows 95 and 98. It should also work under other versions of Windows (e.g. Windows 2000/Windows Millennium Edition/NT) but has not been tested under them.


Screen Layout

When the program is run, the following will be displayed:

Graph Box: This is where graphs are plotted.
Cable Diagram: When a simulation is run, this diagram will display the paths of the rays of light as they travel through the cable. This does not show the entire cable, just a section from the front.
Option tabs: These are where the options can be changed. There are four tabs, the first displays the information from the simulation and is where the simulation is started from. The second tab contains options relating the cable, such as the length and the number of layers in the cable. The third tab is used to change the starting angle and position of the light ray, and the fourth tab is used to change options relating to the graph and the files generated.
Minimise Button: This is used to make the window minimised (just a title in the taskbar). Click the title in the taskbar to restore the window.
Maximise Button: Click this to change the window from full screen to a window on the desktop ad vice-versa.
Exit Button: Click this to close the program. Any unsaved data will be lost when the program is closed.

When the window is maximised, but not full screen, the window can be resized by placing the cursor on the edge of the window and moving the cursor with the left mouse button held down.

Note: The window cannot be made smaller if you have your screen resolution set to 640*480 as this is the minimum size for the window.


Getting Started

The four tabs all contain different starting options to customise the simulation. When the program is run, these options are set to default settings. To run the simulation with these default values, simply click on the button labelled 'Start Simulation'. You should see the path of the light ray marked on the diagram at the bottom of the window in black.
On the first tab, there is a box which contains information about the simulation. These are the averages of the distance travelled by the rays, the time they took, their speeds and their velocities. If there is only one ray being simulated, these will just be the values for the single ray.


To change the number of rays being simulated, either click on the box labelled 'Number of Rays' and type in the number of rays you wish to simulate or click on the up and down arrows to the right of the box to increase or decrease the number of rays. (increasing the number of rays with all of the other options set to default and running the simulation will make no visible difference as the rays will all follow the same path)
Note: Starting the simulation with a large number of rays could take a long time. Your computer may appear to be doing nothing during this time. To minimise waiting time, it is recommended that you do not use large numbers of rays on slower computers. Reducing the length of the cable will also help to reduce the amount of time you will have to wait.


Advanced Options

The following is an explanation of the controls on the second, third and fourth tabs

The 'Cable' tab:

Click the 'Cable' tab to access the cable options. From here, you can change the length of the cable in the same way as with the number of rays. To change the number of layers in the cable, click the up and down arrows next to the 'No. Of Layers' box. The program will allow the cable to have up to eight layers, each with a separate thickness and refractive index. These can also be changed using the arrows or by typing in a value.
The layers refer to the different layers in the cable being simulated. These are numbered from the centre of the cable, with the core of the cable being layer 1. The thickness of the layer is the distance between the top of the layer and the bottom of the layer, not the diameter or radius of the layer. The refractive indexes specified should be from the medium surrounding the cable (normally air) to the layer.

Some common refractive indexes:

SubstanceRefractive Index
Air1.0003
Ice1.31
Liquid Water1.33
Benzene1.50
Crown Glass1.52
Diamond2.42

The 'Light source' Tab:


This tab contains options relating to the light source. By clicking in the circles, you can choose to have all of the rays starting at the same angle or to have a range of values. If range is selected, you can specify maximum and minimum values for the angle and choose whether the angles will be evenly distributed or randomly distributed within the range. The bottom box allows the light rays to be started at a distance from the centre of the cable. All angles are in degrees, and are the angles to a line parallel to the cable.


The 'Output' tab:


The top box in this tab is to plot graphs. Click the boxes on the right to select the values to be plotted on the x axis and y axis. After you have run the simulation, click the 'Plot' button to plot the graph.
The bottom box is to output data to a file. After running the simulation, type in the name you want the file to be called and select the directory where you want to save it. Click the circles to choose between a text file, which is in a human-readable form, or a CSV file. CSV files can be loaded into most spreadsheet programs for further analysis. When you have selected the options you want, click the 'Save' button to save the file.


Troubleshooting

Problem Causes/fixes

Clicking the 'Plot' button doesn't plot a graph.
-No values selected to plot on the x and y axis. Select values to be plotted under the 'Output' tab.
-Only one ray was simulated. On the 'Main' tab, increase the number of rays.
-All rays are following the same path. Change the entry angle to a range of values under the 'Light Source' tab.
-No simulation has been run You must run the simulation before attempting to plot a graph.
Changing the drive to save the file to causes the program to quit
-There is no disk in the drive. Insert a disk into the drive and try again
-The disk is not formatted. Format the disk to an MS-DOS file system or use another disk.
-Write access is denied. Ensure that a removable disk is write-enabled.
My computer locks up when I run a simulation
-The program is busy Run the simulation with a smaller number of rays being simulated or with a less complex or shorter cable.

Glossary

Default-The settings before they are changed
Execute-run a program
Fibre-Optic-Relating to a cable which carries light
FOSP-Fibre Optic simulation Program (the program this documentation refers to)
HTML-HyperText Markup Language, the language web pages are written in.
Installation-This is when the files required for a program to be run are put in the correct locations.
Maximise-Maximised windows fill the entire screen
Medium-The material used to make something
Minimise-This is when a window is shrunk to just a title in the taskbar
Reflect-This is when a ray of light 'bounces' off of a boundary between different substances
Refract-This is when light passes from one medium to another but undergoes a change of direction as a result
Refractive Index- This is a constant when links the angle at which a ray of light will be before and after refraction. A refractive index is from one material to another
Resolution-This refers to the size of the image you are viewing. You can change the resolution of your screen by clicking the right mouse button on the desktop and selecting 'Properties'
'Start' Menu-The menu accessed by clicking the button on the left in the taskbar.
Tab-These are used to select the different pages by clicking on the titles.
Taskbar-The bar at the bottom of the Windows desktop which shows the programs that are running

Distribution Notes

This program is provided with no warranty or support unless otherwise specified. The author accepts no responsibility for damage to hardware, software or any other eventualities to the extent of international law. Permission is granted to distribute the software on the condition that this documentation is distributed with the software, as a hard copy or in digital form. Any persons wishing to modify this software or sell it may not do so without prior permission from the author.

Both this document and the program to which it refers are ©2001 Ben Benfold

Click here to visit the FOSP download Page

'Microsoft' and 'Windows' are trade marks and are the property of their respective owners.