This directory contains SME demo Projects.  These Projects are intended to projide 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 ) 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 ) A Simple Cellular Automaton Model.

To build and run these demos, the followong 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) Create the project MML file from the equations file included in the demo with the command:

	SME import <modelName> <EqnFileName>

   Where <EqnFileName> is the name of a (STELLA) equation file to be imported.  Each demo project comes with an equation file named <ProjName>.eqns in it's Models sub-directory.  For example, if one is working  with the PLM demo install as in step 4, to create a model called PLM one would execute 'SME import PLM /hawk1/Projects/PLM/Models/PLM.eqns' 

6) Build the project drivers wiht the command:

	SME build <modelName>

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

	SME run <modelName>

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

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



