User Tools

Site Tools


howtos:model_loading

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
howtos:model_loading [2009/12/01 14:28]
shona.weldon
howtos:model_loading [2011/02/18 20:36] (current)
deryn.crockett
Line 1: Line 1:
-====== ​How to Load a Model from Documenter into SAMM ====== +====== Model loading: When you have a simulator AND calibrator ​======
 ===== Prepare for loading from inside Documenter ===== ===== Prepare for loading from inside Documenter =====
   -Ensure the calibrator and simulator diagrams are synchronized   -Ensure the calibrator and simulator diagrams are synchronized
-  -Open the calibrator ​diagram & simulator diagrams in Documenter+  -Open the calibrator ​and simulator diagrams in Documenter
   -In the simulator diagram, run one calculator forward   -In the simulator diagram, run one calculator forward
   -In the calibrator diagram, touch the informants and measures to trigger the model to output the informants   -In the calibrator diagram, touch the informants and measures to trigger the model to output the informants
Line 28: Line 27:
   -Create a new model family ​   -Create a new model family ​
     -Choose menu item MF Actions > Create OR right click in Model Families window and choose Create     -Choose menu item MF Actions > Create OR right click in Model Families window and choose Create
-    -"MB name" should be a string with no spaces or strange characters. ​ It is Often related to the ModelBase name in the root of the model but it does not have to be.+    -"MB name" should be a string with no spaces or strange characters. ​ It is often related to the ModelBase name in the root of the model but it does not have to be.
     -Fill in an English description.     -Fill in an English description.
     -Click OK     -Click OK
Line 38: Line 37:
     -Choose menu item FW Actions > Load OR right click and select Load (note the location is what you set in step 4)     -Choose menu item FW Actions > Load OR right click and select Load (note the location is what you set in step 4)
     -MB name: MUST be the model base name from the root of the simulation diagram, give it the description “sim”     -MB name: MUST be the model base name from the root of the simulation diagram, give it the description “sim”
-    -Adjust your default file path to the cal location (e.g. /​models/​tcteem/​V5/​cal) +    -Click OK to load the simulation framework 
-    -Repeat loading framework for cal BUT choose the check button to say it is a calibration framework, use the MB name from the calibration diagram, and enter "​cal"​ as the description+    -Choose menu item File > Set File Path... and direct it to the location ​of the calibrator files (e.g. /​models/​tcteem/​V5/​cal) 
 +    -Choose menu item FW Actions > Load OR right click and select Load again 
 +    -Enter ​the MB name from the calibration diagram, and enter "​cal"​ as the description 
 +    -Activate the calibration framework check box 
 +    -Click OK to load the calibration framework
   -Load informants   -Load informants
     -Choose menu item Windows > Informants     -Choose menu item Windows > Informants
-    -Right click and select Load (path should be correct because of 5c) +    -Choose menu item Informant Actions > Load OR right click in Informants window ​and select Load 
-    -Adjust ​the file location ​if it is incorrect ​(should ​be something like /​models/​tcteem/​V5/​cal/​informs.samm)+    -Ensure ​the file path points to the cal location (the path should ​read something like /​models/​tcteem/​V5/​cal/​informs.samm) 
 +    -Click OK to load the informants 
  
 ===== Run Calibration to Produce a History ===== ===== Run Calibration to Produce a History =====
Line 57: Line 62:
     -Name your historic scenario, we usually just use the name "​history"​ - this will show up in the simulation frame work      -Name your historic scenario, we usually just use the name "​history"​ - this will show up in the simulation frame work 
  
 +====== Model loading: When you have a simulator ONLY ======
 +===== Prepare for loading from inside Documenter =====
 +  -Open the simulator diagram in Documenter
 +  -Touch the informants and measures to trigger the model to output the informants
 +    -Go into any one informant under the informants tab and click OK
 +    -Go into any measure under the measures tab and click OK
 +  -Run all calculators forward
 +  -Run all calculators backward
 +  -Create the loading files for SAMM 
 +    -Choose menu item SAMM > Loading files > Framework...
 +    -Click "​simulator with calibrator"​ button
 +    -Select the "​informants"​ check box so that check box is ON
 +    -Click OK
 +
 +===== Load model inside SAMM =====
 +
 +  -Open SAMM and login under model account
 +  -Create a new model family ​
 +    -Choose menu item MF Actions > Create OR right click in Model Families window and choose Create
 +    -"MB name" should be a string with no spaces or strange characters. ​ It is often related to the ModelBase name in the root of the model but it does not have to be.
 +    -Fill in an English description.
 +    -Click OK
 +  -Enter the Model Family by double clicking on it.  A check mark appears in the Model Families window.
 +  -Setup the default file path
 +    -Choose menu item File > Set File Path...
 +    -This is a unix style path so use forward slashes and direct it to the location of the simulator files (e.g. /​models/​tcteem/​V5/​sim)
 +  -Load the simulator framework
 +    -Choose menu item FW Actions > Load OR right click and select Load (note the location is what you set in step 4)
 +    -MB name: MUST be the model base name from the root of the simulation diagram, give it the description “sim”
 +  -Load informants
 +    -Choose menu item Windows > Informants
 +    -Right click and select Load (path should be correct because of 5c)
 +    -Adjust the file location if it is incorrect (should be something like /​models/​tcteem/​V5/​sim/​informs.samm)
  
howtos/model_loading.1259677703.txt.gz · Last modified: 2009/12/01 14:28 by shona.weldon