THE REALITY, NOW AND UNDERSTANDING
1 INTRODUCTION
This document describes the general structure of each of the programs.
2 DESCRIPTION
This section gives background information of the program.
Each program performs a group of simulations.
3 OPERATION
Each simulation consists of three displays:
-
A Test Selection Display
A Parameter Selection Display
A Simulation Display
-
The Test Selection Display is used to select a particular simulation.
The Parameter Selection Display is used to modify certain additional
parameters.
The Simulation Display shows the result of the simulation.
There are three ways to do a simulation:
Standard, Customised or Command.
In the Standard mode the user goes to the Test Selection Display, selects
a test and then selects Start.
In the Customised mode the user first goes to the Parameter Selection Display.
From that display he or she can modify certain standard parameters.
When finished the user goes to the Test Selection Display, selects a test
and then selects Start.
In the Command mode the user first builds a file with commands and then
starts the command file.
The command file consists of two types of records:
-
One common record and
N test specific records.
-
The common record gives parameter values which are used by all the files
The test specific records give the parameter values which are specific for
each simulation. For example a test number.
4 TECHNICAL INFORMATION
Each program consists of one Main Program and at least four subroutines.
Those four subroutines are:
-
SETSTANDARD
INITIALISE
DISPLAY1
MENU
-
The Main Program does the actual simulation. The results are shown on the
Simulation Display and or are stored in an output data file.
The subroutine SETSTANDARD sets the paramater to its predefined standard
values.
The subroutine INITIALISE initialises specific parameters as a function
of the test to be performed.
The subroutine DISPLAY1 builds and process the manual entered values
on the Test Selection Display.
The subroutine MENU builds and displays the manual entered values
on the Parameter Selection Display.
2OBJECTS.TXT
The program consists of the following subroutines:
-
2OBJECTS
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
COORD
-
Calculates initial position in x direction and
speed of planet in y direction.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
GETCOEF
-
Polynomial calculation part 1. (array based)
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
PRINTFILE
-
Saves values after each revolution which can be printed.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2.
3OBJECTS.TXT
The program consists of the following subroutines:
-
2OBJECTS
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
COORD
-
Calculates initial position in x direction and
speed of planet in y direction.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
GETCOEF
-
Polynomial calculation part 1. (array based)
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
PRINTFILE
-
Saves values after each revolution which can be printed.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2.
BASIC.TXT
The program consists of the following subroutines:
-
BASIC
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
DROP.TXT
The program consists of the following subroutines:
-
DROP
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
FGALAXY.TXT
The program consists of the following subroutines:
-
FGALAXY
-
Main body.
The program consists of 3 sections:
- Input, Calculation and Output
In the input section the galaxy display is retrieved from
the disc and displayed on the screen.
In the calaculation section the fractal is calulated.
In the output section the screen is saved on the disc.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
GETFRAME
-
Calculate the new frame coordinates as a function of key
selections.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test.
MENU
-
Parameter Selection Display.
READDIR
-
Read index file.
SETSTANDARD
-
Initialise standard parameters.
WRITEDIR
-
Write index file.
FIGURE.TXT
The program consists of the following subroutines:
-
FIGURE
-
Main body.
Calls FIGURE1, FIGURE2, FIGUR3, FIGURE4
ARROW
-
Displays arrow
CIRCLEZ
-
Displays a circle as a function of x, y and z
DISPLAY1
-
Menu Selection Display.
ELIPSEZ
-
Displays an ellipse as a function of x, y and z
FIGURE1
-
Displays figure 1
FIGURE2
-
Displays figure 2
FIGURE3
-
Displays figure 3
FIGURE4
-
Displays figure 4
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
LINEZ
-
Displays a line as a function of x, y and z
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
TEXTZ
-
Displays text as a function of x, y and z
MERCURY.TXT
The program consists of the following subroutines:
-
MERCURY
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
COORD
-
Calculates initial position in x direction and
speed of planet in y direction.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
FIGURES
-
To display the figures
GARCTAN
-
Arctan support calculation. (Function)
GETCOEF
-
Polynomial calculation part 1. (array based)
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
PRINTDATA
-
Print numbers and display graphical the results.
PRINTFILE
-
Saves values after each revolution which can be printed.
READCOM
-
Read command file.
READDATA
-
Read sequential data file.
READDB
-
Read (initialise) all parameters of cycle x with data base file.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2.
WRITECOM
-
Write command file.
WRITEDATA
-
Write sequential data file.
WRITEDB
-
Write all parameters of cycle x to data base file.
PLANET3D.TXT
The program consists of the following subroutines:
-
PLANET3D
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
COORD
-
Calculates initial position in x direction and
speed of planet in y direction.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
FIGURES
-
To display the figures
GARCTAN
-
Arctan support calculation. (function)
GETCOEF
-
Polynomial calculation part 1. (array based)
GETCOEF1
-
Polynomial calculation part 1. (continuous)
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
PRINTDATA
-
Print numbers and display graphical the results.
PRINTFILE
-
Saves values after each revolution which can be printed.
READCOM
-
Read command file.
READDATA
-
Read data file.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2.
WRITECOM
-
Write command file.
WRITEDATA
-
Write data file.
PLANETS.TXT
The program consists of the following subroutines:
-
PLANETS
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
COORD
-
Calculates initial position in x direction and
speed of planet in y direction.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
FIGURES
-
To display the figures
GARCTAN
-
Arctan support calculation. (function)
GETCOEF
-
Polynomial calculation part 1. (array based)
GETCOEF1
-
Polynomial calculation part 1. (continuous)
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
PRINTDATA
-
PRINT numbers AND display; graphical; The; results.
PRINTFILE
-
Saves values after each revolution which can be printed.
READCOM
-
Read command file.
READDATA
-
Read data file.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2.
WRITECOM
-
Write command file.
WRITEDATA
-
Write data file.
SHAKE.TXT
The program consists of the following subroutines:
-
SHAKE
-
Main body
DISPLAY
-
DISPLAY1
-
Menu Selection Display.
FOURSIDE
-
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
SUNRAD.TXT
The program consists of the following subroutines:
-
SUNRAD
-
Main body.
Program is subdivided into 7 sections.
CALCAVRG
-
CALCmfsp
DISDIRERR
-
Disc io error print out.
GETCOEF
-
Polynomial calculation part 1
DISPLAY1
-
Menu Selection Display.
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
READDATA
-
Read data file.
SETSTANDARD
-
Initialise standard parameters.
SOLVEEQUATIONS
-
Polynomial calculations part 2
WRITEDATA
-
Write data file.
THOUGHT1.TXT
The program consists of the following subroutines:
-
THOUGHT1
-
Main body.
ANGLE
-
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
GETXY
-
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
THOUGHT2.TXT
The program consists of the following subroutines:
-
THOUGHT1
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
THOUGHT3.TXT
The program consists of the following subroutines:
-
THOUGHT3
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
THOUGHT4.TXT
The program consists of the following subroutines:
-
THOUGHT4
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
THOUGHT5.TXT
Information about the players is stored in arrays.
-
Element 0 is master
Element 1 is slave 1
Element 2 is slave 2
Element 3 is slave 3
The program uses the following arrays for each of the players:
-
x00() = initial position in x direction
y00() = initial position in y direction
x0() = current position in x direction
y0() = current position in y direction
x1() = next current position in x direction
y1() = next current position in y direction
vx0() = current velocity in x direction
vy0() = current velocity in y direction
vx1() = next current velocity in x direction
vy1() = next current velocity in y direction
orgx() = origin circle in x direction
orgy() = origin circle in y direction
dist() = radius circle
ort() = time that circle starts
state() = state 0 = initial state of slave
- 1 = signal transmitted by slave
2 = signal recieved by master
The program uses the following parameters:
-
deltat = delta time between updates
t = time = sum of deltat
c = speed of signal
The program consists of the following subsections:
-
Calculation of position of players
Calculation of origin of signal from master
Calculation of radius of signal from master
For each of the slaves:
-
Decision if slave signal has to start
Calculation of origin of signal from slave
Calculation of radius of signal from slave
Decision if slave signal reaches the master
The program consists of the following subroutines:
-
THOUGHT5
-
Main body. Calculates in each iteration cycle the position
of each planet as a function of the Sun and all the other
planets (if required).
DISPLAY1
-
Menu Selection Display.
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
SETSTANDARD
-
Initialise standard parameters.
THOUGHT6.TXT
-
THOUGHT6
-
Main body.
The program consists of three sections:
In, Calculation and Out
In the In section the previous wave function is retrieved
from disc.
In the Calculation section the position of the surface
of the wave is calculated.
In the Out section the wave function is stored on disc.
DISDIRERR
-
Disc io error print out.
DISPLAY1
-
Menu Selection Display.
GETFLNM
-
Get file names for read and write data and commands
GETSCREEN
-
Get screen parameters.
INITIALISE
-
Calculate initial parameters as a function of test
MENU
-
Parameter Selection Display.
READDATA
-
Read data file.
SETSTANDARD
-
Initialise standard parameters.
WRITEDATA
-
Write data file.
Return back to INDEX.TXT