Team:BCCS-Bristol/BSim-User-Guide

From 2008.igem.org

Revision as of 12:16, 21 October 2008 by IanMiles (Talk | contribs)

BSim User Guide

Preliminary

BSim uses the Java [insert link to page describing what java is] programming language so any computer using BSim must have a Java environment before any simulations can be run. The following steps explain how to set up a Java environment: 1.1 Check it’s not already done! 1.2 Download & Install Java 1.3 Define environmental variables

2. Compile package – compileAll

3. Parameter files

4. BSimApp BSimApp is a graphical interface that enables a user to view simulations. It can be used to help users familiarise themselves with the process of defining simulations, watch small-scale simulations or verify the initial conditions of large-scale simulations.

Typing the command Java BSimApp Will run BSimApp and open up the graphical interface:

[PICTURE]

4.1 Menu bar 4.1.1 Load Parameters… The large black area is where the initial conditions of a simulation will appear once a parameter file has been loaded. Several example parameter files have (will be!!) been packaged with BSim and can be loaded by pressing the ‘Load Parameters…’ button then selecting one of the files from the ‘Parameter Files’ folder. The simulations defined by these files are summarised below:

Eg1 Eg2 Eg3

The process of defining a parameter file is explained in this section of the wiki.

4.1.2 Play / Pause 4.1.3 Reset 4.1.4 Video Length 4.1.5 Frame Skip 4.1.6 Record Video

4.2 Explanation of videos produced from running three examples, tracers, wrapping boundaries, etc.

5. BSimBatch Due to the high levels of randomness in the run and tumble motion of bacteria it is likely that the user will want to run the same simulation many times and use statistical analysis to investigate emergent behaviour. BSimBatch enables the user to run batches of simulations, saving time series of the mean bacteria position and particle positions for each simulation.

BSimBatch is run using the command:

Java BSimBatch ParameterFileLocation

Where ParameterFileLocation is the full address of the parameter file defining simulation to be run, eg:

Java BSimBatch C:/BSim/Parameter_Files/Parameter_File_1.txt