Please enable JavaScript to view this site.

Talsim Documentation

Navigation: 🚧🔄 Operating Rules & Logic

📝 Operating Rules Basics

Contents Prev Top Next More

Talsim-NG includes a storage operation model, i.e. it offers the possibility to simulate storage regulation and distribution through defined operating rules. Existing or proposed operating rules need to be converted into a Talsim-NG compatible form.

 

The model equivalent to conducting measurements within the river basin is the retrieval of so-called system states of the system elements. Further, these system states are processed and connected to mathematical and logical operators (also consecutively) into virtual states. The variety of options and possible connections allows for the representation of almost any desired operating rule. The element/ virtual state representing the operating rule is linked to the system element to which the rule should be applied to. In the case of a storage, physical boundaries for releases as well as internal dependencies can be implemented. The result is the control logic of the river basin model.

System States

In Talsim, an Element State represents a calculated internal quantity of a System Element at each simulation time step. These values reflect the current condition of the element — such as precipitation, soil moisture, or baseflow for a Sub-Basin — and can be stored and referenced at specific temporal points (e.g. current value, value from a previous time step, or a moving average). Element States are often used to define operating rules, either directly or as part of more complex logic. When multiple Element States are combined and transformed, they form Virtual States, which support more advanced rule definitions based on multiple conditions or observations.

State Type

Talsim offers the following types of system state attributes:

 

Transformation Function

The system states are additionally transformed by a function (exception: current value).

The entry value for the transformation depends on the state type (e.g. balance for type balance). First the operations demanded by the state type are computed, then the transformation by the function takes place.

In the following all transformation options are listed:

Refresh Interval

This Option allows to set at which time steps the State should be computed, thus a change in its value is allowed. There are three options available. The State will be refreshed:

Icon_info

In the case of the State type Sum, the interpretation of the Refresh Interval is a little different: With the Option Sum, the State does get refreshed every time step but it is reset at the Refresh Interval thus starting the cumulative sum from zero again. If the Refresh Interval is left as the default option Each time step the type Sum is just doing the same as the type Function.

 

Options for Linking States

 

A Virtual State is the combination of Element States and/or other Virtual States using mathematical and logical operators.

 

The following operators are available for combining States into a new Virtual State:

+/-                Addition and subtraction

●/÷                Multiplication and division

<>≤≥                Comparative operators

mn, mx        Minimum and maximum

 

A single Virtual State can combine up to five different States. As Virtual States themselves be linked to create new Virtual States, there is virtually no limit to the number of States that can be combined. There are no restrictions regarding e.g. the combination of different values and units. It is the user's responsibility to achieve reasonable combinations.

 

Icon_warning

There are no restrictions regarding the combination of States with different quantities and units.

Senseless combinations are possible and will not result in warnings.

Make sure to get reasonable combinations by converting units using any of the scaling options available.

 

When building new virtual states, the connected system states/control clusters can be scaled by a factor before using the operator for combination.

The control cluster itself, just like the system states, has a system state attribute and can be transformed further with a transformation function (see state attribute window).

Lastly, the control cluster can be limited in its value range (see connections).

 

Control Logic

 

If a rule in a control cluster/ system state is assigned in a way that it represents the desired release from a storage or it describes the division from a diversion, the control cluster/ system state is connected to the respective system element. Dependencies between various releases can be implemented either via the definition of a control cluster or using the option internal dependency from the storage element.

Created with Help+Manual 9 and styled with Premium Pack Version 5 © by EC Software