UPC to improve PRV stability

When multiple PRVs in a network are connected in series, stability can be an issue. This is most likely to occur when the PRVs are supplying a variable demand like a reservoir. You may observe the valve pressure and flow oscillating between timesteps, or the simulation convergence errors.

PRVs causing problems can be identified as follows:

  1. Enable the simulation option: Additional diagnostic messages in log file.

  2. After the run, inspect the log file, search for messages of the form "Unstable continuous PRV/PSV regulator".

  3. PRVs and PSVs are identified by name at relevant timesteps. These valves could be treated as described below.

A variable can be added to the Valve UPC script, which can dampen this effect by reducing how frequently the valve updates its opening position.

In the UPC script of a valve, the following variable can be specified:

VAR ITERSTEP NUMBER = 10

This has two effects:

For a chain of PRVs, you might increase this number with each PRV to reduce the interaction between them. This is best combined with the simulation option Enforce Valve/PST Regulation Tolerance.


About UPC scripts

UPC Script Examples

UPC script language