Date: 21/12/2017
 

Model: Modelling and Simulation of Smog over North West India due to Stubble Burning using Cellular Autoamta Model in Lopez Simulator

Names of Authors: Ekambir Sidhu,
 Manohar Deep Singh Gill

The sample test models and final Smog Model for the modelling and simulation of smog over North West India have been implemented using state variables in LOPEZ SIMULATOR CLIENT availabe online on website.

The LOPEZ SIMULATOR CLIENT has been downloaded as RISE_Client_vs1_server from the course website which can be downloaded at:

http://www.sce.carleton.ca/courses/sysc-5104/lib/exe/fetch.php?media=https%3A%2F%2Fwww.dropbox.com%2Fs%2F07iqhlzvy28wgyv%2FRISE_Client_vs1_server.zip

The models are run witht the help of LOPEZ SIMULATOR using DOS PROMPT using the following steps mentioned below:

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
STEPS TO RUN THE MODELS USING LOPEZ SIMUALTOR CLIENT:
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

Step 1 - Open the DOS PROMPT and go the folder containing the file RESTful_CDppTest.jar inside folder RISE_Client_vs1_server using cd command in DOS PROMPT.
For example: >>cd Users\Ekambir\Downloads\RISE_Client_vs1_server

Step 2 - Use the below command in DOS PROMPT to create workspace on server and access to xml file

java -jar RESTful_CDppTest.jar PutXMLFile test test test/lopez/ekambir monsoon.xml               

[NOTE: Here ekambir is the name of workspace and monsoon.xml is the xml file for model monsoon containg the details of model to be simulated]

Step 3: Use the below command in DOS PROMPT to provide the .ma file and other files (e.g. .val or .stvalues files) zipped togeather in a clean folder.

java -jar RESTful_CDppTest.jar PostZipFile test test test/lopez/ekambir?zdir=monsoon monsoon.zip

[NOTE: Here monsoon is the zip file name and we are using the previosuly created workspace 'ekambir']

Step 4:  Simulate the model by using the command below in DOS PROMPT:

java -jar RESTful_CDppTest.jar PutFramework test test test/lopez/ekambir/simulation

[NOTE: The workspace is ekambir in the above instruction used for simulation]

Step 5: Download the simulated results online form the below link and check the total simulation time and simulation logs:

http://vs1.sce.carleton.ca:8080/cdpp/sim/workspaces/test/lopez/ekambir

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

MODEL DESCRIPTION:

The project has been implemented by designing four test models:

1. IndiaMapandSowing Model- 

This model simulates and implements the generic view of India map similar to the images obained from the satellite using STATE VARIABLES IN LOPEZ SIMUALTOR. The model imitaes the map of India and shows the random crop growing following the Norrmal or Gaussian Distribution with mean of 0.4 and standard deviation of 0.3. Note that the total simulation time for the model in Lopez Simulator is 0.120 seconds. 
         
2. Crop Phases Model- 

This model implements the various phases of crop growth in farming - crop sowing, reproductive phase and ripening phase followed by the crop harvesting. The model has been implemented using STATE VARIABLES IN LOPEZ SIMUALTOR. In the beginning of model, the random crop sowing following Norrmal  Distribution with mean of 0.4 and standard deviation of 0.3 has been employed followed by the successvie stages of crop growth in sequential manner. Note that the total simulation time for the model in Lopez Simulator is 4.459 seconds. 
         
3. Monsoon MODEL- 

This model simulates the effect of monsoon on the crop sowing pattern in India under the influence of South East Monsoon. The crops are sown first in south east India because of early arrival of south east monsoon there followed by the crop sowing in north east India and further followed by the crop sowing in the south west and north west India. The model has been implemented by the formation of ZONES and using STATE VARIABLES IN LOPEZ SIMULATOR. Note that the total simulation time for the model in Lopez Simulator is 2.283 seconds. 

4. Smog MODEL- 

This model simulates the formation of smog over North west India due to the stubble burning. The model also shows that the stubble is ploughes in the rest parts of India and thus there will be no smog and there will be clear sky. The model takes into account all the facts from the above implemented models i.e the model includes the effect of north west monsoon on crop sowing and the various phases of crop growth. The model has been implemented by the formation of ZONES and using STATE VARIABLES IN LOPEZ SIMULATOR. Note that the total simulation time for the model in Lopez Simulator is 4.582 seconds.  


------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
NAMING CONVENTIONS FOR MODELS IMPLEMENTED IN LOPEZ SIMULATOR – 
------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
The related components have identical name roots, for example, monsoon.ma, monsoon.stvalues and monsoon.xml for monsoon model.

-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------
RESPECTIVE OUTPUT FILES - 
-------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------

The Drawlog output file shows 2D visualization of simulation result logs. The final output is stored in the respective *.log01 file which can be viewed and recorded in the form of video (.webm) in Omer Hashem Cell DEVS Viewer.The *.log01 and *.draw files have been generated and configured to organize the output information for easier analysis. Each .log01 file corresponding to respective model has been has generated using three set of files:

1. XML file (.xml)
2. MA file (.ma) 
3. STVALUES file (.stvalues)

Note: The full form of XML is extensible markup language


Ekambir Sidhu (Student ID 300036992)
Manohar Deep Singh Gill (Student ID 101055138)