Use State Variable if the lookup table or relationship you need to define varies as a function of a state variable. State variables are variables that you create to represent the state of an abstract property or parameter that is not computed natively by ResSim. The value of the state variable is computed each timestep through execution of a Jython script that you write and save as part of the reservoir network.

When State Variable is selected, the edit panel of the Independent Variable Definition dialog will display the State Variable pane ("Figure: Independent Variable Definition Dialog - State Variable"). This pane looks and behaves like the Model Variables pane except it does not include Filters for the table; since the list of state variables is usually a lot smaller than the list of model variables, the filters are not needed.

Figure: Independent Variable Definition Dialog - State Variable

The State Variables pane includes:

  • A State Variables table—a scrollable list of all the state variables defined in the current reservoir network.
  • A Select button—when you find the state variable you need in the table, highlight it (click on it) in the table then click the Select button.

    Note: double-clicking on the variable you want will NOT perform the selection; you must use the Select button.

  • A Selected Model Variable Time-Series textbox—The name of the model variable you selected from the table will appear here when you press the Select button. Be sure your selected model variable is shown in this field before you click the OK button to apply your selection and close the Independent Variable Definition dialog.
  • A set of Time Series Options—these options apply to the input time series representing the external variable and are described in detail in "Function of: Model Variable".