This directory contains SME demo Projects.  These Projects are intended to provide example code for building models in the SME, and are not intended to be full-scale working models.  The following projects are included:

GrBay.tar.gz: (ProjName=GrBay, ModelName=GrBay, Scenario=def ) Great Bay Model.  The model is an early version of a simulation of the hydrology & ecology of Great Bay in New Hampshire.

CA.tar:  (ProjName=CA, ModelName=CA1, Scenario=def ) A Simple Cellular Automaton Model.

To build and run these demos, the following steps should be followed: 

1) Download and install the SME and any supporting packages (see SME README file for directions).

2) Create a workspace directory to hold your Projects,   the path to this directory will be called <WSPath>.

3) Download and unpack the demo project(s) in the workspace directory.

4) Set SME current project with the command:

	SME project <ProjName> <WSPath>

   For example, if you have unpacked the PLM project in directory /hawk1/Projects/ then you would execute 'SME project PLM /hawk1/Projects/'

5) Set the current Model and Scenario:

	SME model <modelName>
	SME scen <scenarioName> 

6) Create the project MML file from the equations file included in the demo with the command:

	SME import <EqnFileName>

   Where <EqnFileName> is the name of a (STELLA) equation file to be imported.  Each demo project comes with an equation file named <ModelName>.eqns in it's Models sub-directory.  Since these cases use the default name and location for the equation file, you can simply execute "SME import" and the SME will find the correct file.  If the equation file is not in the default location (the Models subdirectory of the Project folder) then the <EqnFileName> above must be the full path to the equation file.  Multiple equation file scan be listed in order to link modules.

7) Build the project drivers with the command:

	SME build 

8) Run the project.  To run in Command-line mode, execute:

	SME run

   To run using the java interface, execute:
   
	SME -java local run

8) Consult the UserGuide document for configuration and simulation control commands.



