Place by place (updated) - Step by step (NEW)

JavaTHESIS, your design system for simulations on the web

The system

The javaTHESIS system - in the representation of 'CASCADE' - you can see them here. Also the sources of the two 'slablones', 'shells' or so called 'templates'. With this 3 files you can built your own simulator. The simulator becomes an applet; a java-applet. This java-applet can be implemenated in your own web-site.
The 3 files are:

The library 'SimLib', with the other files, are conditionally available on this web-site.

There are 27 parts in the javaTHESIS system, versie 3.9x (version CASCADE). The first serie of 14 parts in the HTML-file (number 1 to 14) and the second serie of 13 parts in the java-file (15 to 27). The most important parts in this 'cut and paste'-system are the model (24), the starting values (21), the decalaration list (16) and the name of the simulator (3 and 15). We call them the 'degrees of freedom' in our system. In each applet you can put one mathamatical model. There is no limit in size of the model. Even more than 600 java statement or equations, isn't a problem.

The simulation-applet have 'output elements' and 'input elements' as 'graphs', 'scroll bars' and 'counters'. The number of graphs, scroll bars and counters determine mostly the outlook of your simulation. These determinants are 'Ni', 'No' and 'Nt':

In the simulation-applet you have the freedom to use more than 20 scroll bars; more than 20 counters and more than 20 graphs if you like. The filling-in of the number of 'output elements' ('No'), 'input elements' ('Ni'), 'counters' ('Nt'), 'maximum simulation time' ('Tmax'), 'starting time of the simulation' ('Tmin'), 'integration step size' ('dt'), etc., and such as 'Ymax', 'Ymin', 'Pmax', 'Pmin' and 'Name', and such things, is a step by step process. They are all parts of the concept and the 'degrees of freedom' of our system. Each part or degree of freedom has an unique number (here 1 to 27). In the files we reffer to this unique numbers. Here you see these 27 parts; part by part and place by place; in random order.

In the classroom, L102, during the course, there is a large poster at the wall with the marked points and places (1 to 27).

27 Parts - Place by place

See the listings. On the listings you find the information in bold and the number at the right. You have to change the model-information of CASCADE (by cutting) into your information (by pasting).

Operating instructions - Step by step

Phase 1

Step 1. First of all you need to buy, copy or get the two files 'Cascade.html' and 'Cascade.java' with the sjablones, from Rik Min, for your own PC, disk or floppy and for your own simulation. Mostly you can find Rik Min in room L219. If not: make an appointment.

Step 2. Rename the two files from 'Cascade.html' and 'Cascade.java' into 'Xxxx.html' and 'Xxxx.java' with the new name you want to have. See point 3 and 15.

Step 3. Collect all the information about your model. You need at least all the model equations in pascal, basic, javascript or java.

Most of the statements of a model are assignments and sometimes if-statements. The most important parts about our mathematical models you can find in my book from Academic Book Center (1996)

Phase 2

Step 4. Cut the old Cascade-model (point 24) out of the source; and paste your new model into this space (point 24).

Step 5. Cut the old the starting values (point 26) out of the source; and paste the new starting values into this space (point 26).

Step 6. Cut the old declaration list (point 21) and paste or make a new declaration list here (point 21).
Do it on a smart way; no typing; copy and paste it from old ascii-files of Rik Min. Typing induce much errors and later on: so called 'compilation errors' (in java).

Step 7. Do nothing more at the two sjablones. Print the two files. Take rest. Take a cup of coffee.

Phase 3

Step 8. Take your new listings and cross off all the old information and data from the model 'Cascade' on the sheets. Fill in by pencil the new information or data.

Tip: If you have no information or you are not sure about a value, string or a character: do nothing.

Step 9. Accept in this phase - before you compile yuour source code for the first time - that your simulation has 3 graphs (No=3), 4 counters (Nt=4) and 2 sliders (Ni=2). See point 26 and 27.

Step 10. Print your new source. Check your source visual. Circle the important newe parts by pencil. Check the old parts.

Phase 4

Step 11. First time compiling. If you have errors go to Rik Min. He will have a visual look to your source together with you.

Step 12. If you haven't java errors, than redefine No, Nt and Ni. Ni is the number of input elements ('scrollbars'); No the number of output variabeles ('graphs') and Nt the number counters.

Step 13. Copy each statement: just 1, 2, 3 or more (6?) times. Change the numbers from 1 into 3, 4, 5 or 6 or more.

Step 14. You have to declare InputX, TextX, GraphX and LabelX in top of the file, just the amount and name it with the number it needs.

Input1, Input2 until Input4, Input5 or Input6;
Graph1, Graph2, Graph3 until Graph4, Graph5 or Graph6;
Text1, Text2, Text3, Text4 until Text5 or Text6;
Label1, Label2, Label3, Label4 until Label5 or Label6.

Additional information

Colors in the counters. See version 3.9c (color) and ask Rik Min for the source(s).

No extra window. Delete 3 lines (and ask Rik Min which 3 lines).

Parallel instruction. See all our examples on our Java-site (but ask also Rik Min).

Simulation with intelligent feedback. See version 4.0v (video) and ask Rik Min for the source(s).

Examples

Example 1 with colors. To understand this options you have to look to the example 'AORTA'. There you see the colored counters.

Example 2 with colors. To understand this options you have to look to the example 'BOILER'. There you see a full colored background.

Example 3 with colors and parallelism. To understand the option parallel instructions you have to look to the example 'SUN HEATER'. There you see the applet parallel and some parallel 'instructions'.

Index

Enschede, sept. 7, 2000; updated jan. 15, 2002.