Pipes / bridges priority cheat sheet (2024)

Technically, the bridges in A and F are completely redundant, and you should get exactly the same split/merge behavior if you take them out. I was going to write a post on this topic, but since you already started one, I'll make a few comments here.

The key to understand is that this behavior is not about *bridges*. It's about *sources* and *sinks*. The green outlet box is a "source", and the white inlet box is a "sink". And *all* sources and sinks exhibit this behavior, whether they are on a bridge, a shutoff, a refinery, a pump, etc. That's the point @chemiewas making.

More importantly, the interesting behavior does not happen when a source or sink occur in a single isolated segment. But, for completeness, I'll cover all the cases:

  1. Source, no sink: nothing happens. Packets just sit in the pipe because they don't know where to go. Very useful if you need to stop a "bad" packet from damaging some equipment. Most folks have "deconstruct" on a higher priority than "plumbing", so deleting a pipe segment will usually happen faster than clearing out the bad packet on the fly. And sometimes you need to stop the flow just to get at the bad packet.
  2. Sink, no source: same as 1.
  3. Source connected to sink on isolated pipe segment: the trivial case. Packets flow from source to sink at 1 m/s, if present.
  4. One source, two sinks: fair split. This is the A case above, but works the same with or without the bridge. Packets are switched between each sink in a "fair" alternation, regardless of flow rate. That is, even if the flow is sporadic, each packet will alternate between top and bottom, which is equivalent to the split pipe "remembering" which output it sent the last packet on, no matter how long ago. In each case, the entire packet only goes down one branch or the other. The split never divides a packet and sends half down both sides.
  5. Two sources, one sink: fair merge. This is the E/F case above, and works the same with or without the bridge. Packets are "fairly" alternated onto the sink line, conversely to 4 above. If the sources send different elements, then the packets are always forced to alternate. *However*, if they are sending the same element, then the flows can merge completely, with no blocking in any segment, as long as there is sufficient pipe capacity.
    • For instance, if you have two pumps sending 500 g/s of O2 into a merged line, they will merge "cleanly" into a single 1000 g/s stream to the sink, with no blocking.
    • If you have two lines sending 10 kg/s of H2O into a merged line, they will alternate, because even though both sources are H2O, the sink line can still only handle 10 kg/s. You can confirm by checking the output temps, if the inputs are different. Also, the animation shows this behavior clearly. The average flow velocity of the source lines will be 0.5 m/s.
    • If you have two lines sending 750 g/s of H2 into a merged line, they will do a "partial merge" where one source will get to send a whole packet, and the other will get to "fill" the packet with 250 g/s, then they will swap. Every 3rd merge, both packets will merge cleanly, and the source lines will have an average flow velocity of 0.75 m/s.
  6. Pipe passes a sink: biased split. This is D above, and works exactly the same if you replace the bridge with a shut-off, valve, reservoir, etc. Packets will enter the sink if they can, and continue on the pipe if they cannot.
    • Since the bridge is a static building, the only time its sink cannot accept a packet is if the downstream pipe is blocked. This will cause packets to overflow onto the input pipe.
    • If a reservoir is full, it will stop accepting packets, causing overflow on the input.
    • If a shut-off is disabled, it will stop accepting packets...you get the idea.
  7. Pipe passes a source: biased merge. This is B/C above. Packets will exit the source if they can, and block if they cannot. They can "exit the source" if the pipe section connected to the source is empty or has a partial packet of the same element. Just like pure pipe-based merges, a source can "top up" the pipe flow passing by it. Unlike pipe-based merges, the merging is *not* "fair". The pipe always gets precedence over the source.
    • Any source can push packets through an "orphaned" pipe (one that has lost its source), but the bridge is one of the most popular sources for draining a pipe section, because it's fairly cheap to build. However, building a Carbon Skimmer works just as well. Note that nothing needs to be connected to the sink side of such buildings in order for the source side to have its "pushing" effect. Just the presence of the source is sufficient.

In summary, a packet *always* needs to "see" both a source and a sink somewhere on its line to move. Now, in order to understand some funky behavior, you need to know one more rule:

  • A packet will flow towards the nearest "available" sink. A sink is "available" if it can accept a packet.

This rule is almost always the reason you see a packet "bouncing" inside a pipe. For instance, if you have a stream of reservoirs with a single input line going through their sinks, a packet will normally go into the first reservoir until it is full. Then, it will flow into the second until it is full, etc. However, if you start draining packets from the first reservoir, then a packet that has made it past the first and is on its way to the second will decide that it should turn around instead. Thus, if you want uninterrupted input flow, you need to always drain from the *last* reservoir *first* (making them a LIFO buffer, or stack).

Another common scenario is where a bridge or shut-off input has an overflow bypass. Without another bridge to prevent backflow, it is possible for packets to bypass the bridge or shut-off, and then turn around and go back because the shut-off opened up or the bridge became unblocked. In most scenarios, it is possible to solve "bouncing" by forcing a flow direction with a bridge (note that a bridge is not at all magical with direction...it just takes advantage of the fact that packets can only go *into* a sink, and *out of* a source).

P.S. @beowulf2010brings up the important point that merges and splits can go 2, 3, or 4 ways. And, as he observes, a 4-way merge/split is only possible with a bridge or other building that gives access to all 4 sides of the source/sink (like a reservoir, but not a valve, unless the goal is to also bypass the valve, which is pretty useless).

Pipes / bridges priority cheat sheet (2024)

FAQs

How do liquid bridges work? ›

Small liquid amounts connecting two solid surfaces, apart by a short distance, are defined as liquid bridges. These solid surfaces can be surrounded by a gas phase or can be immersed in another liquid immiscible to that of the liquid bridge.

What are the rules for the liquid bridge in Oni? ›

The Liquid Bridge does not hold liquid in it at all, but instead "teleports" liquid from its input to its output as long as there is liquid under its input, and there is either no liquid, or a liquid of the same type under its output.

How do smart bridges work? ›

Sensory Smart Structures

Such a 'smart' bridge (Figure 17B) would be expected to 'sense' the environment, react accordingly, and 'tell' what is happening by sending alarm signals that announce that strength and safety are diminishing, and appropriate action is needed.

How does bridges work? ›

Bridges, in essence, must balance force, gravity and weight to stay standing and to keep people safe when moving across them. The downward force of gravity is balanced out, often, by the bridge itself. Tension and compression created within the shape of the bridge is used to withstand and balance this force.

How long does a bridge over water last? ›

The lifespan of a bridge over water can vary greatly depending on materials, construction quality, and maintenance. Typically, a well-constructed bridge can last over 100 years with proper upkeep.

How do bridges over water work? ›

For most bridges built over deep water, construction crews must build cofferdams or lower caissons into the water to create a dam and platform for the concrete towers to stand on. Lakes and riverbeds can be unstable, so crews may need to drive piles deep into the earth to achieve stability.

How does a water bridge work? ›

Builders construct a wall sealed into the water floor around the designated workspace. Once the water is drained, there is a dry area to start the bridge's foundation. Temporary foundation: When water is shallow, workers create a temporary foundation that holds piers, which support the upper structure.

How do they fix bridges underwater? ›

Cofferdams for Bridge Construction

When used for bridge construction and repair, a cofferdam helps dry out the region below the water's surface so crews can work on underwater portions of the structure. Workers can excavate, pour concrete, weld, repair and perform other tasks as the cofferdam diverts water flow.

References

Top Articles
Pope Francis' main adviser on clergy abuse, Cardinal Seán O'Malley, retires as archbishop of Boston
New this week: 'Without Remorse' and 'The Mosquito Coast'
Craigslist Cars Augusta Ga
J & D E-Gitarre 905 HSS Bat Mark Goth Black bei uns günstig einkaufen
Sarah F. Tebbens | people.wright.edu
Gore Videos Uncensored
Comcast Xfinity Outage in Kipton, Ohio
Bluegabe Girlfriend
Nyuonsite
Steve Strange - From Punk To New Romantic
Monticello Culver's Flavor Of The Day
Best Private Elementary Schools In Virginia
Weather In Moon Township 10 Days
Caroline Cps.powerschool.com
Current Time In Maryland
Elizabethtown Mesothelioma Legal Question
Hoe kom ik bij mijn medische gegevens van de huisarts? - HKN Huisartsen
Missouri Highway Patrol Crash
Msu 247 Football
Craigslist West Valley
Nhl Tankathon Mock Draft
Att.com/Myatt.
Maxpreps Field Hockey
Johnnie Walker Double Black Costco
Greyson Alexander Thorn
Valic Eremit
Access a Shared Resource | Computing for Arts + Sciences
Ardie From Something Was Wrong Podcast
Truck from Finland, used truck for sale from Finland
Sams Gas Price Sanford Fl
Pokemon Inflamed Red Cheats
Login.castlebranch.com
Greyson Alexander Thorn
Craigslistodessa
Jt Closeout World Rushville Indiana
Worlds Hardest Game Tyrone
RFK Jr., in Glendale, says he's under investigation for 'collecting a whale specimen'
Composite Function Calculator + Online Solver With Free Steps
The Pretty Kitty Tanglewood
Giantess Feet Deviantart
10 Most Ridiculously Expensive Haircuts Of All Time in 2024 - Financesonline.com
Colorado Parks And Wildlife Reissue List
Terrier Hockey Blog
Devotion Showtimes Near The Grand 16 - Pier Park
The Minneapolis Journal from Minneapolis, Minnesota
Craigslist Ludington Michigan
Ezpawn Online Payment
St Vrain Schoology
1990 cold case: Who killed Cheryl Henry and Andy Atkinson on Lovers Lane in west Houston?
R Detroit Lions
Helpers Needed At Once Bug Fables
Latest Posts
Article information

Author: Lidia Grady

Last Updated:

Views: 6169

Rating: 4.4 / 5 (65 voted)

Reviews: 88% of readers found this page helpful

Author information

Name: Lidia Grady

Birthday: 1992-01-22

Address: Suite 493 356 Dale Fall, New Wanda, RI 52485

Phone: +29914464387516

Job: Customer Engineer

Hobby: Cryptography, Writing, Dowsing, Stand-up comedy, Calligraphy, Web surfing, Ghost hunting

Introduction: My name is Lidia Grady, I am a thankful, fine, glamorous, lucky, lively, pleasant, shiny person who loves writing and wants to share my knowledge and understanding with you.