Modeling bidirectional flows in gas networks | Synapse