Team:BCCS-Bristol/BSim-User-Guide

From 2008.igem.org

(Difference between revisions)
(Compile package – compileAll)
(Menu)
Line 37: Line 37:
==== Menu ====
==== Menu ====
*''Play / Pause'' - Plays or pauses the simulation
*''Play / Pause'' - Plays or pauses the simulation
-
*''Reset'' - Stops the current simulation and reverts to the initial conditions defined by the current parameter file
+
*''Reset'' - Stops the current simulation and reverts to the initial conditions defined in the parameter file
*''Video Length'' - Length of video to be recorded (frames)
*''Video Length'' - Length of video to be recorded (frames)
*''Frame Skip'' - Number of time steps to be skipped per frame
*''Frame Skip'' - Number of time steps to be skipped per frame
*''Record Video'' - Records a video with properties defined in ''Video Length'' and ''Frame Skip''
*''Record Video'' - Records a video with properties defined in ''Video Length'' and ''Frame Skip''
-
*''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 been '''(will be!!)''' 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:
+
*''Screenshot'' - captures the current state of the simulation in a .png picture file
 +
*''Load Simulation'' - 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 been '''(will be!!)''' 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 '''(Explanations of videos produced from running three examples, tracers, wrapping boundaries, etc.)'''
**Eg1 '''(Explanations of videos produced from running three examples, tracers, wrapping boundaries, etc.)'''
**Eg2
**Eg2

Revision as of 17:29, 21 October 2008

Contents

BSim User Guide

Preliminary

BSim is written in the Java programming language so any computer using BSim must have a Java environment before any simulations can be run. The following steps give some advice on setting up a Java environment:

  • First of all it is a good idea to check if Java is already set up on the computer you are using. Typing java -version into the command prompt will give information about any version of java that is available. need output from +ve and -ve point of view, maybe this isnt right though. Sometimes java is there but javac, etc doesnt work??
  • This page has a nice guide on installing Java.

Compile package – compileAll

do we need this section?? .jar packages don't need compiling

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

java BSimApp

into the command prompt will run BSimApp and open up the graphical interface:

[PICTURE]

Menu

  • Play / Pause - Plays or pauses the simulation
  • Reset - Stops the current simulation and reverts to the initial conditions defined in the parameter file
  • Video Length - Length of video to be recorded (frames)
  • Frame Skip - Number of time steps to be skipped per frame
  • Record Video - Records a video with properties defined in Video Length and Frame Skip
  • Screenshot - captures the current state of the simulation in a .png picture file
  • Load Simulation - 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 been (will be!!) 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 (Explanations of videos produced from running three examples, tracers, wrapping boundaries, etc.)
    • Eg2
    • Eg3

The process of using parameter files to define your own simulation is explained here.

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 location of the parameter file defining simulation to be run, eg:

java BSimBatch ./Parameter_Files/Parameter_File_1.txt