Pipeline Hydraulics

Note

The hydraulics module presented below is currently only added as an extension to the strategic model.

Overview

Produced water (PW) network operations are highly affected by the pipeline designs and geographical terrain because of pressure losses due to friction and elevation changes. PARETO hydraulics module is an extension to the strategic model that allows the user to compute pressures at every node in the network enabling the user to add operational constraints such as maximum allowable operating pressures (MAOP) and minimum required pressure at injection facilities or at 3rd party offtake points. For this, the PARETO model explicitly considers pipeline details (i.e., length, diameter, material, etc.) and geographic elevations in the model to compute time varying pressures at each node. The hydraulics module is an extension to the PARETO strategic model and can be accessed through the following options in the config argument:

  1. Hydraulics.false: This option allows the user to skip the hydraulics computations in the PARETO model.

  2. Hydraulics.post_process: In this method, the basic PARETO strategic model is solved as step 1, and then using the optimal flows and network design, the hydraulics block containing constraints for pressure balances and losses is solved as step 2. In this case, as only the hydraulics model block solved for the objective of minimizing cost, the optimal values for variables included in the main strategic model and obtained from step 1 remain unaffected.

  3. Hydraulics.co_optimize: In this method, the hydraulics model block is solved together with the strategic model. However, as the flow and diameter are variables in the strategic model, the addition of hydraulics block makes the model a mixed integer nonlinear programming (MINLP) model. In order to solve this MINLP model, the strategic model without the hydraulics constraints is solved as step 1 to determine a good initial state for all variables and constraints.

  4. Hydraulics.co_optimize_linearized: This is a linearized approximated model for the co_optimize method designed to give solutions quickly in a realistic time frame.

Note: The MINLP as currently implemented requires the following MINLP solvers: SCIP and BARON. The model is first solved using BARON (if available) to determine a feasible solution and then using SCIP. Some subtle differences in model components such as in the definition of variables and parameters have been made to avoid nonlinearities and allow the user to use the same solver for solving the post-process method as used for the strategic model. These differences will be shown in the description of mathematical notation and formulation below.

Section

Hydraulics Model Mathematical Notation

Hydraulics Model Formulation

Hydraulics Model Mathematical Notation

Similar to the strategic model, following color coding has been implemented in describing the model notation. All input \(\textcolor{green}{parameters}\) are in \(\textcolor{green}{green}\) and all model \(\textcolor{red}{variables}\) are in \(\textcolor{red}{red}\).

Parameters

\(\textcolor{green}{\zeta_{l}}\) = Geographical elevation of a Node

\(\textcolor{green}{\rho.g}\) = Product of water density and accelaration due to gravity

\(\textcolor{green}{\iota^{CHW}}\) = Constant for pipeline material in Hazen-Williams equation

\(\textcolor{green}{\nu^{Pump}}\) = Fixed cost of installing a pump

\(\textcolor{green}{\nu^{Electricity}}\) = Electricity price

\(\textcolor{green}{\eta^{Pump}}\) = Efficiency of the pump

\(\textcolor{green}{\eta^{Motor}}\) = Efficiency of the motor for pump

\(\textcolor{green}{\xi^{Minimum}}\) = Minimum allowable operating pressure in a pipeline

\(\textcolor{green}{\xi^{Maximum}}\) = Maximum allowable operating pressure in a pipeline (MAOP)

\(\textcolor{green}{D_{l,\tilde{l}}^{Existing}}\) = Diameter of an existing pipeline

\(\textcolor{green}{\upsilon_{p,t}^{Maximum}}\) = Well pressure at production or completions pad

Binary Variables

\(\textcolor{red}{y_{l,\tilde{l},[t]}^{Pump}}\) = New pump installation, 1 if a new pump is installed, 0 otherwise

Continuous Variables

\(\textcolor{red}{H_{l,\tilde{l},t}^{Pump}}\) = Pump head added in the direction of flow

\(\textcolor{red}{H_{l,\tilde{l},t}^{Valve}}\) = Valve head removed in the direction of flow

\(\textcolor{red}{C_{l,\tilde{l}}^{Pump}}\) = Total cost of pumping between given nodes

\(\textcolor{red}{P_{l,t}}\) = Node pressure

\(\textcolor{red}{Z^{Hydraulics}}\) = Total cost of all pumps, Objective function variable

Notations specific to the post_processing method:

\(\textcolor{green}{D_{l,\tilde{l}}^{Effective}}\) = Effective pipeline diameter

\(\textcolor{green}{H_{l,\tilde{l},t}^{Friction, HW}}\) = Head loss due to friction (using Hazen-Williams equation)

Notations specific to the co_optimize method:

\(\textcolor{red}{D_{l,\tilde{l}}^{Effective}}\) = Effective pipeline diameter

\(\textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}}\) = Head loss due to friction (using Hazen-Williams equation)

Hydraulics Model Formulation

Objective:

Total cost of pumping in the pipeline network.

\[\min \ \textcolor{red}{Z^{Hydraulics}} = \sum_{(l,\tilde{l}) \in LLA}\textcolor{red}{C_{l,\tilde{l}}^{Pump}}\]

Max allowable pressure rule: \(\forall \textcolor{blue}{l \in L}, \textcolor{blue}{t \in T}\)

Limits the maximum operating pressure in a pipeline.

\[\textcolor{red}{P_{l,t}} \leq \textcolor{green}{\xi^{Maximum}}\]

Pump head rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Allows pumping only if a pump exists in a pipeline.

\[\textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \leq \textcolor{green}{M^{Flow}} \cdot \textcolor{red}{y_{l,\tilde{l},[t]}^{Pump}}\]

Equations/constraints specific to the post_process method

Effective diameter calculation: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

Aggregate diameters for all existing pipelines between any 2 locations.

\[\textcolor{green}{D_{l,\tilde{l}}^{Effective}} = \textcolor{green}{D_{l,\tilde{l}}^{Existing}} + \sum_{d \in D}\textcolor{green}{\delta_{d}^{Pipeline}} \cdot \textcolor{red}{y_{l,\tilde{l},d,[t]}^{Pipeline}}\]

Hazen-Williams based frictional head loss calculation: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Calculate head loss using Hazen-Williams equation. Note that units for all terms in this equation are in SI units so, appropriate conversion factors must be added.

\[\textcolor{green}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot (\textcolor{green}{D_{l,\tilde{l}}^{Effective}})^{4.87} = 10.704 \cdot (\textcolor{red}{F_{l,\tilde{l},t}^{Piped}} / \textcolor{green}{\iota^{CHW}})^{1.85} \cdot \textcolor{green}{\lambda_{l,\tilde{l}}^{Pipeline}}\]

Node pressure rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Pressure constraint based on Bernoulli’s energy balance equation.

\[\textcolor{red}{P_{l,t}} + \textcolor{green}{\zeta_{l}} \cdot \textcolor{green}{\rho.g} = \textcolor{red}{P_{\tilde{l},t}} + \textcolor{green}{\zeta_{\tilde{l}}} \cdot \textcolor{green}{\rho.g} + \textcolor{green}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{l,\tilde{l},t}^{Valve}} \cdot \textcolor{green}{\rho.g}\]

Pump cost rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

Allows pumping only if a pump exists in a pipeline.

\[\textcolor{red}{C_{l,\tilde{l}}^{Pump}} = \textcolor{green}{\nu^{Pump}} \cdot \textcolor{red}{y_{l,\tilde{l},[t]}^{Pump}} + \textcolor{green}{\nu^{Electricity}} \cdot \textcolor{green}{\rho.g} \cdot \sum_{t \in T}\textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{red}{F_{l,\tilde{l},t}^{Piped}}\]

Equations/constraints specific to the co_optimize method

Effective diameter rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

Aggregate diameters for all existing pipelines between any 2 locations.

\[\textcolor{red}{D_{l,\tilde{l}}^{Effective}} = \textcolor{green}{D_{l,\tilde{l}}^{Existing}} + \sum_{d \in D}\textcolor{green}{\delta_{d}^{Pipeline}} \cdot \textcolor{red}{y_{l,\tilde{l},d,[t]}^{Pipeline}}\]

Hazen-Williams based frictional head loss calculation: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Calculate head loss using Hazen-Williams equation. Note that units for all terms in this equation are in SI units so, appropriate conversion factors must be added.

\[\textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot (\textcolor{red}{D_{l,\tilde{l}}^{Effective}})^{4.87} = 10.704 \cdot (\textcolor{red}{F_{l,\tilde{l},t}^{Piped}} / \textcolor{green}{\iota^{CHW}})^{1.85} \cdot \textcolor{green}{\lambda_{l,\tilde{l}}^{Pipeline}}\]

Node pressure rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Pressure constraint based on Bernoulli’s energy balance equation.

\[\textcolor{blue}{\tilde{l},l \in LLA}: \textcolor{red}{P_{l,t}} + \textcolor{green}{\zeta_{l}} \cdot \textcolor{green}{\rho.g} = \textcolor{red}{P_{\tilde{l},t}} + \textcolor{green}{\zeta_{\tilde{l}}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{\tilde{l},l,t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Valve}} \cdot \textcolor{green}{\rho.g}\]
\[\textcolor{blue}{\tilde{l},l \notin LLA}: \textcolor{red}{P_{l,t}} + \textcolor{green}{\zeta_{l}} \cdot \textcolor{green}{\rho.g} = \textcolor{red}{P_{\tilde{l},t}} + \textcolor{green}{\zeta_{\tilde{l}}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Valve}} \cdot \textcolor{green}{\rho.g}\]

Pump cost rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

Allows pumping only if a pump exists in a pipeline.

\[\textcolor{red}{C_{l,\tilde{l}}^{Pump}} = \textcolor{green}{\nu^{Pump}} \cdot \textcolor{red}{y_{l,\tilde{l},[t]}^{Pump}} + \textcolor{green}{\nu^{Electricity}} \cdot \textcolor{green}{\rho.g} \cdot \sum_{t \in T}\textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{red}{F_{l,\tilde{l},t}^{Piped}}\]

Linearizing the Equations/constraints specific to the co_optimize method

Parameters \(\textcolor{green}{\Delta_I}\) = Length of interval of flows for building piecewise linear model \(M\) = Large enough constant

Binary Variables

\(\textcolor{red}{z_{l,\tilde{l},t, i}},i\in \{0,1,2,..., \lceil 70000/\textcolor{green}{\Delta_I}\rceil - 1\}\) = Intermediate binary variables to determine the section of the piecewise linear graph.

Continuous Variables

\(\textcolor{red}{\lambda_{l,\tilde{l},t,i}}, i\in \{0,1,2,..., \lceil 70000/\textcolor{green}{\Delta_I}\rceil\}\) = Intermediate continuous variables, convex combination multipliers.

\(\textcolor{red}{term_{l,\tilde{l},t}}\) = Continuous variables for flow raised to the power 1.85 (in RHS of Hazen-Williams).

\(\textcolor{red}{term2_{l,\tilde{l},t, d}}\) = Continuous variables for the product of pressure drop and binary to select diameter (in LHS of Hazen-Williams).

\(\textcolor{red}{ec_{l,\tilde{l},t}}\) = Node pressure

\(\textcolor{red}{Z^{Hydraulics}}\) = Continuous variables for electricity cost for a particular pump at particular time period.

Effective diameter rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

We remove this constraint. When effective diameter is required, we would use the expression of binaries.

Setting term in RHS: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Set the right hand side term flow to the power 1.85 in Hazen-Williams equation.

\[\textcolor{red}{F_{l,\tilde{l},t}^{Piped}} = \sum_{i \in \{0,1,2,..,\lceil 70000/\textcolor{green}{\Delta_I} \rceil\}}i \cdot \textcolor{green}{\Delta_I} \cdot \textcolor{red}{\lambda_{l, \tilde{l}, t, i}}\]
\[\textcolor{red}{term_{l,\tilde{l},t}} = \sum_{i \in \{0,1,2,..,\lceil 70000/\textcolor{green}{\Delta_I} \rceil\}}(1.84 \times 10^{-6} \cdot i \cdot \textcolor{green}{\Delta_I})^{1.85} \cdot \textcolor{red}{\lambda_{l,\tilde{l},t, i}}\]

Sum of convex multipliers is one \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

\[\sum_{i \in \{0,1,2,..,\lceil 70000/\textcolor{green}{\Delta_I} \rceil - 1\}} \textcolor{red}{z_{l,\tilde{l},t, i}} = 1\]

Sum of binaries determining the section of pieccewise linear is one \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

\[\sum_{i \in \{0,1,2,..,\lceil 70000/\textcolor{green}{\Delta_I} \rceil\}} \textcolor{red}{\lambda_{l,\tilde{l},t, i}} = 1\]

Only two convex multipliers are non-zero \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}, \textcolor{blue}{j \in} \textcolor{blue}{\{0,1,2,..,\lceil 70000/\Delta_I \rceil-1\}}\)

\[\textcolor{red}{\lambda_{l,\tilde{l},t, 1} } \leq z_1\]
\[\textcolor{red}{\lambda_{l,\tilde{l},t, i} } \leq z_i + z_{i-1} \forall i \in \{2,3,...,\lceil 70000/\Delta_I \rceil-1\}\]
\[\textcolor{red}{\lambda_{l,\tilde{l},t, \lceil 70000/\Delta_I \rceil} } \leq z_{\lceil 70000/\Delta_I \rceil-1}\]

Setting term in LHS: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}, \textcolor{blue}{d \in D}\)

Set the product of pressure change and binary diameter selection variables by the following set of constraints.

\[\textcolor{red}{term2_{l,\tilde{l},t,d}} \leq \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}}\]
\[\textcolor{red}{term2_{l,\tilde{l},t,d}} \leq M \cdot \textcolor{red}{y^{Pipeline}_{l,\tilde{l}, d}}\]
\[\textcolor{red}{term2_{l,\tilde{l},t,d}} \geq \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} - M \cdot (1 - \textcolor{red}{y^{Pipeline}_{l,\tilde{l}, d}})\]

Hazen-Williams based frictional head loss calculation: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Calculate head loss using Hazen-Williams equation. Note that units for all terms in this equation are in SI units so, appropriate conversion factors must be added.

\[\sum_{d \in D}\textcolor{red}{term2_{l,\tilde{l},t,d}} \cdot (\textcolor{green}{D_{l,\tilde{l}}^{Existing}} + \textcolor{green}{\delta_{d}^{Pipeline}})^{4.87} = 10.704 \cdot \textcolor{red}{term_{l,\tilde{l},t}^{Piped}} / (\textcolor{green}{\iota^{CHW}})^{1.85} \cdot \textcolor{green}{\lambda_{l,\tilde{l}}^{Pipeline}}\]

Node pressure rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{t \in T}\)

Pressure constraint based on Bernoulli’s energy balance equation.

\[\textcolor{blue}{\tilde{l},l \in LLA}: \textcolor{red}{P_{l,t}} + \textcolor{green}{\zeta_{l}} \cdot \textcolor{green}{\rho.g} = \textcolor{red}{P_{\tilde{l},t}} + \textcolor{green}{\zeta_{\tilde{l}}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{\tilde{l},l,t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Valve}} \cdot \textcolor{green}{\rho.g}\]
\[\textcolor{blue}{\tilde{l},l \notin LLA}: \textcolor{red}{P_{l,t}} + \textcolor{green}{\zeta_{l}} \cdot \textcolor{green}{\rho.g} = \textcolor{red}{P_{\tilde{l},t}} + \textcolor{green}{\zeta_{\tilde{l}}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Friction, HW}} \cdot \textcolor{green}{\rho.g} - \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} \cdot \textcolor{green}{\rho.g} + \textcolor{red}{H_{l,\tilde{l},t}^{Valve}} \cdot \textcolor{green}{\rho.g}\]

Electricity cost rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}, \textcolor{blue}{j \in} \textcolor{blue}{\{0,1,2,..,\lceil 70000/\Delta_I \rceil-1\}}\)

Calculate electricity (variable) cost of pump at every time period.

\[\textcolor{red}{ec_{l,\tilde{l},t}} \geq \textcolor{green}{\nu^{Electricity}} \cdot \textcolor{green}{\rho.g} \cdot j \cdot \textcolor{green}{\Delta_I} \cdot \textcolor{red}{H_{l,\tilde{l},t}^{Pump}} - M (1 - z_j)\]

Pump cost rule: \(\forall \textcolor{blue}{l,\tilde{l} \in LLA}\)

Allows pumping only if a pump exists in a pipeline.

\[\textcolor{red}{C_{l,\tilde{l}}^{Pump}} = \textcolor{green}{\nu^{Pump}} \cdot \textcolor{red}{y_{l,\tilde{l},[t]}^{Pump}} + \sum_{t \in T} \textcolor{red}{ec_{l,\tilde{l},t}}\]