NEW IN V4.0As of ResSim 4.0, state variable scripts and scripted rules are stored outside of ResSim's network files (e.g., the rsys file). Instead, they are stored in a "scripts" subdirectory under the networks/{network name}/ directory.

For state variables, each of the three state variable scripts (init, main, cleanup) are stored in their own separate python file in the scripts subdirectory, and each of those pieces will only be stored IF they have been edited to be any different from the default template text. 

In contrast, if you export a state variable script from the ResSim interface, it will be stored as a single file.  If you import a state variable script from the interface, you need to import a state variable script that has been saved as a single file for all three parts.

The figure shows the files stored within a simulation's scripts directory.

  • Watershed name = BaldEagle_v4.0
  • Network name = Base2003
  • Alternative name = OldOps
  • Simulation name = Nov93_Simulation

Scripts saved in this directory include all three parts of the state variable "FlowSumSV", just the main portion of the "StateVar_Test", and a scripted rule at the "Sayers" reservoir called "MyScriptedRule1".  It also includes an exported state variable script that was saved by the user as a python filetype and put in the scripts directory.