User Tools

Site Tools


howtos:typical_initview

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
Last revision Both sides next revision
howtos:typical_initview [2019/02/19 16:05]
marcus.williams
howtos:typical_initview [2019/03/18 03:35]
marcus.williams [Fixed Scenario for Simulator]
Line 1: Line 1:
 ====== Prepare initialization views ====== ====== Prepare initialization views ======
-  * **Null Scenario** - This is useful to put 0's in all your data just to get a first scenario which you can then evaluate history ins and outs+ 
 +===== Null Scenario ​for Calibrator ===== 
 + 
 +Creating a //null scenario// (''#​nullScn''​) in the calibrator puts 0's in all the inputs ​to get a first scenario ​from which you can start running a calibration recipe. 
 + 
 +With the diagram open in Documenter, ensure that //​Calibration//​ view is toggled on. 
 + 
 +{{:​howtos:​nullscnviewscript.png.jpg?​300|}} 
   - In Documenter choose menu item Samm/View Scripts/​General   - In Documenter choose menu item Samm/View Scripts/​General
     - click "​control",​ "​allCalculators",​ "​variable list", and TOOL code     - click "​control",​ "​allCalculators",​ "​variable list", and TOOL code
Line 8: Line 16:
     - first replace ''​[1];​ )''​ with ""​ everywhere to clean up part of the string     - first replace ''​[1];​ )''​ with ""​ everywhere to clean up part of the string
     - The following search and replace regular expression for the search works well in edit pad. Use replace string ''​0''​     - The following search and replace regular expression for the search works well in edit pad. Use replace string ''​0''​
-<​code>​ assign \([a-z|A-Z|0-9|_]*\[[a-z|A-Z|0-9|,​|_|\-\>​|\+]*\]</​code>​+<​code>​assign \([a-z|A-Z|0-9|_]*\[[a-z|A-Z|0-9|,​|_|\-\>​|\+]*\]</​code>​ 
 + 
 +===== Fixed Scenario for Simulator ===== 
 + 
 +In Documenter, with Calibration view toggled off: //SAMM | View Scripts | Fixed Scenario//. Save the resulting `fixedScn.t` and `fixedScn.v` files. 
 + 
 +The `fixedScn.t` file will need some editing to run. 
 + 
 +This code block will need to have an appropriate tool object name inserted in order for the `$xYear` variables to be set. 
 +<​code>​ 
 +integer $lastHisYear 
 +getobjinfo ([1], $lastHisYear;​ info=sequenceEnd,​ dim=time) 
 +integer $firstYear 
 +getobjinfo ([2], $firstYear; info=sequenceStart,​ dim=time) 
 +integer $lastYear 
 +getobjinfo ([2], $lastYear; info=sequenceEnd,​ dim=time) 
 +</​code>​ 
 + 
 +There may be cases where input variables do not have have the standard time informant and therefore require custom assignment in the //​fixedScn//​ view. 
 + 
  
  
howtos/typical_initview.txt · Last modified: 2019/03/18 03:36 by marcus.williams