Network Formulations

Network Formulations

Type Hierarchy

We begin with the top of the hierarchy, where we can distinguish between gas flow models. Currently, there are two variations of the weymouth equations, one where the directions of flux are known and one where they are unknown.

AbstractDirectedGasFormulation <: AbstractGasFormulation
AbstractUndirectedGasFormulation <: AbstractGasFormulation

Each of these have a disjunctive form of the weymouth equations: The full non convex formulation and its conic relaxation.

AbstractMINLPForm <: AbstractUndirectedGasFormulation
AbstractMISOCPForm <: AbstractUndirectedGasFormulation
AbstractMINLPDirectedForm <: AbstractDirectedGasFormulation
AbstractMISOCPDirectedForm <: AbstractDirectedGasFormulation

Gas Models

Each of these forms can be used as the type parameter for a GasModel, i.e.:

MINLPGasModel = GenericGasModel(StandardMINLPForm)
MISOCPGasModel = GenericGasModel(StandardMISOCPForm)

For details on GenericGasModel, see the section on Gas Model.

User-Defined Abstractions

The user-defined abstractions begin from a root abstract like the AbstractGasFormulation abstract type, i.e.

AbstractMyFooForm <: AbstractGasFormulation

StandardMyFooForm <: AbstractFooForm
FooGasModel = GenericGasModel{StandardFooForm}

Directed Models

constraints on flow across compressors when directions are constants

source

constraints on flow across compressors when the directions are constants

source

on/off constraint for compressors when the flow direction is constant

source

constraints on flow across control valves when directions are constants

source

constraints on pressure drop across control valves when directions are constants

source

constraints on flow across pipes where the directions are fixed

source

constraints on flow across pipes when directions are fixed

source

constraints on pressure drop across pipes

source

constraints on pressure drop across pipes when the direction is fixed

source

constraints on flow across short pipes when the directions are constants

source

constraints on flow across valves when directions are constants

source

Undirected Models

This constraint is intended to ensure that flow is on direction through a node with degree 2 and no production or consumption

source

This constraint is intended to ensure that flow is on direction through a node with degree 2 and no production or consumption

source

constraints on flow across compressors

source

constraints on flow across compressors

source

enforces pressure changes bounds that obey compression ratios

source

constraints on flow across control valves

source

constraints on pressure drop across control valves

source

constraints on flow across pipes

source

constraints on flow across pipes

source

constraints on pressure drop across pipes

source

constraints on pressure drop across pipes

source

constraints on flow across short pipes

source

constraints on flow across valves

source

ensures that parallel lines have flow in the same direction

source

ensures that parallel lines have flow in the same direction

source

Make sure there is at least one direction set to take flow to a junction (typically used on sink nodes)

source

Make sure there is at least one direction set to take flow to a junction (typically used on sink nodes)

source

Make sure there is at least one direction set to take flow away from a junction (typically used on source nodes)

source

Make sure there is at least one direction set to take flow away from a junction (typically used on source nodes)

source

variables associated with direction of flow on the connections. yp = 1 imples flow goes from fjunction to tjunction. yn = 1 imples flow goes from tjunction to fjunction

source

variables associated with direction of flow on the connections

source

MINLP

Weymouth equation with fixed direction variables

source

Weymouth equation with discrete direction variables

source

Weymouth equation with fixed directions for MINLP

source

Weymouth equation with discrete direction variables for MINLP

source

MISOCP

Weymouth equation with directed flow

source

Weymouth equation with discrete direction variables

source

Weymouth equation with fixed direction

source

Weymouth equation with discrete direction variables for MINLP

source
source
source
source