- v50 information can now be added to pages in the main namespace. v0.47 information can still be found in the DF2014 namespace. See here for more details on the new versioning policy.
- Use this page to report any issues related to the migration.
Difference between revisions of "v0.34:Flow"
(Bodies of water have never been called flows - they are fluids. Flows, however, can also refer to stuff like miasma, smoke, and mist) |
|||
(16 intermediate revisions by 11 users not shown) | |||
Line 3: | Line 3: | ||
:''The term '''flow''' can be used to refer to several completely different things in Dwarf Fortress: things like [[miasma]] and [[smoke]], and the mechanism by which [[water]] and [[magma]] move. This article describes the latter.'' | :''The term '''flow''' can be used to refer to several completely different things in Dwarf Fortress: things like [[miasma]] and [[smoke]], and the mechanism by which [[water]] and [[magma]] move. This article describes the latter.'' | ||
− | '''Flow''' is a game mechanic used to simulate the motion of '''fluids'''. The two fluids that exist in dwarf fortress currently are '''[[water]]''' and '''[[magma]]'''. You can identify fluids that are flowing by looking for a tile that is blinking between {{Tile|≈|1:0:1}} and {{Tile|~|1:0:1}} tiles. If you have turned on SHOW_FLOW_AMOUNTS you will see the fluid '''depth''' instead and will not be able to easily tell if the game considers a tile to be flowing or not. Flow is typically present any time a fluid is in motion, but there are some exceptions which confuse things a bit. | + | {{Material properties}} |
+ | '''Flow''' is a game mechanic used to simulate the motion of '''fluids'''. The two fluids that exist in dwarf fortress currently are '''[[water]]''' and '''[[magma]]'''. You can identify fluids that are flowing by looking for a tile that is blinking between {{Tile|≈|1:0:1}} and {{Tile|~|1:0:1}} tiles. If you have turned on [[Technical_tricks#Tiles|SHOW_FLOW_AMOUNTS]] you will see the fluid '''depth''' indicator of {{Tile|1|1:0:1}} through {{Tile|7|1:0:1}} instead and will not be able to easily tell if the game considers a tile to be flowing or not. Flow is typically present any time a fluid is in motion, but there are some exceptions which confuse things a bit. | ||
*Note: In the current release flow does not seem to appear in magma. Magma follows the same rules of fluid motion and flow, it simply doesn't have flow in the sense that would allow it to power a water wheel. | *Note: In the current release flow does not seem to appear in magma. Magma follows the same rules of fluid motion and flow, it simply doesn't have flow in the sense that would allow it to power a water wheel. | ||
Line 11: | Line 12: | ||
Fluids move mostly as one might expect: they will fall straight down if they can, or else they will spread out to the sides. Fluids can flow diagonally on the same z-level, but will never move sideways and down at the same time. Under basic fluid motion, fluid never moves back up, but it can appear to do so if pressure is involved. | Fluids move mostly as one might expect: they will fall straight down if they can, or else they will spread out to the sides. Fluids can flow diagonally on the same z-level, but will never move sideways and down at the same time. Under basic fluid motion, fluid never moves back up, but it can appear to do so if pressure is involved. | ||
− | Here is a quick example of how fluids can move to adjacent tiles. Also as water moves to an adjacent tile flow is generated in both tiles. This flow will remain for a short time before reverting | + | Here is a quick example of how fluids can move to adjacent tiles. Also as water moves to an adjacent tile flow is generated in both tiles. This flow will remain for a short time before reverting to being non-flowing water. Falling water does ''not'' generate flow, so only the 3rd example will result in flow (in both tiles). |
+ | <diagram> | ||
+ | Before (side view) | ||
+ | ▒[#00f]7[#]▒ ▒[#00f]7[#]▒ ▒ | ||
+ | ▒ ▒ ▒[#00f]2[#]▒ ▒[#00f]7[#] | ||
+ | ▒▒▒ ▒▒▒ ▒▒▒▒▒ | ||
− | + | After (side view) | |
− | + | ▒ ▒ ▒[#00f]2[#]▒ ▒ | |
− | + | ▒[#00f]7[#]▒ ▒[#00f]7[#]▒ ▒[#00f]43[#] | |
− | + | ▒▒▒ ▒▒▒ ▒▒▒▒▒ | |
− | + | </diagram> | |
− | + | # Fluids move down | |
− | + | # Fluids spread out to the sides | |
− | |||
− | |||
− | |||
− | |||
− | |||
These rules are incomplete, however, without consideration of [[pressure]]. | These rules are incomplete, however, without consideration of [[pressure]]. | ||
− | ==Fluids under pressure aka | + | ==Fluids under pressure, aka Teleportation== |
− | Magma, which has no natural pressure, flows according to the rules of basic fluid motion. Water, however, can move by pressure when it falls down on top of full 7/7 water. In addition, pumps create pressure in both water and magma, and water entering the map | + | Magma, which has no natural pressure, flows according to the rules of basic fluid motion. Water, however, can move by pressure when it falls down on top of full 7/7 water. In addition, pumps create pressure in both water and magma, and water entering the map from a stream or river follows pressure as well. |
− | Fluids moving under '''[[pressure]]''' do not just move to adjacent tiles, they also trace a path through other full tiles of fluid trying to move to more distant tiles. Fluids moving under [[pressure]] can effectively teleport through other tiles that are already filled with fluid. When teleporting, fluids | + | Fluids moving under '''[[pressure]]''' do not just move to adjacent tiles, they also trace a path through other full tiles of fluid trying to move to more distant tiles. Fluids moving under [[pressure]] can effectively teleport through other tiles that are already filled with fluid. When teleporting, fluids do not generate '''any''' flow, neither will they push objects around. |
− | + | <diagram> | |
− | + | ▒[#00f]7[#]▒ ▒ | |
− | + | Before ▒[#00f]7[#]▒ ▒ | |
− | ▒▒▒▒▒ | + | ▒[#00f]777[#]▒ |
+ | ▒▒▒▒▒ | ||
+ | -------------------- | ||
+ | ▒ ▒ ▒ | ||
+ | After ▒[#00f]7[#]▒[#00f]7[#]▒ | ||
+ | ▒[#00f]777[#]▒ | ||
+ | ▒▒▒▒▒ | ||
+ | </diagram> | ||
− | + | When a fluid tries to move by pressure, it tries to trace a path through full 7/7 fluids going down, and horizontally, but ''not'' diagonally. In this way it is like basic flow, except that pressure works faster; fluid from the source is teleported to the open space at the end, rather than having to wait for open space to open up at the source via normal flow. This is why, for example, diagonal squeezes in channels make water flow slower (they block pressure, forcing it to only spread out sideways), and why rivers and streams on the map are usually full of 7/7 water until close to the edge of the map where the rules of basic fluid motion are draining the water off the map while pressure teleports new water from the source all the way down to the end. | |
− | |||
− | |||
− | |||
− | + | What's more, unlike basic flow, the path pressure traces can even go back up--but never higher than the z-level of the first 7/7 tile on the path it was tracing. So it may appear that pressure 'pushes fluids up', but in fact it's only teleporting fluid to a level even or lower. | |
− | + | Thus the result is that pressure movement of fluids (especially water) is common and doesn't create very much flow. However rivers and streams still seem to have some kind of flow that powers water wheels, called natural flow. | |
− | + | ==Fluid Displacement by Cave-in, aka Pistons== | |
+ | :''(see also '''[[magma piston]])''''' | ||
− | + | There's one way to push a fluid higher than its starting level, but it might be considered a bug on the flow mechanics and probably will be changed in following versions since allows for what could be considered exploits. | |
− | + | A ''natural'' wall of any material '''[[cave-in|falling]]''' onto either water ''or'' '''[[magma]]''' will teleport each tile of displaced fluid to open space directly above it, leaving 1 additional tile of open space directly above the wall itself: | |
− | + | <diagram> | |
− | + | Start Step 1 Step 2 | |
− | ▒ ▒ ▒ | + | ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ |
− | ▒ | + | ▒ I ▒ Collapse ▒ ▒ Fluid ▒ ▒ |
− | ▒ ▒ ▒ | + | ▒ ▒ ▒ -----------> ▒ [#f00]7[#] ▒ -----------> ▒ ▒ |
− | + | ▒ ▒ Support ▒ ▒ Spreads ▒[#f00]232[#]▒ | |
− | ▒▒▒▒▒ | + | ▒▒[#f00]7[#]▒▒ ▒▒▒▒▒ ▒▒▒▒▒ |
− | + | ▒▒▒▒▒ ▒▒▒▒▒ ▒▒▒▒▒ | |
− | + | </diagram> | |
− | ▒ ▒ ▒ ▒ | + | When done in an u-bend example the pushing above original fluid level can be easily appreciated, although it breaks the laws of regular fluid physics: |
− | ▒ | + | <diagram> |
− | ▒ | + | Start Step 1 Step 2 |
− | ▒ | + | ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ |
− | + | ▒ I ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | |
− | + | ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | |
− | + | ▒ ▒ ▒ ▒ ▒ [#f00]7[#] ▒ ▒ ▒ ▒ ▒ | |
− | + | ▒ ▒ ▒ Collapse ▒ [#f00]7[#] ▒ ▒ Fluid ▒ ▒ ▒ | |
+ | ▒ ▒ ▒ -----------> ▒ ▒ ▒ -----------> ▒[#f00]545[#]▒ ▒ | ||
+ | ▒▒[#f00]7[#]▒▒[#f00]7[#]▒ Support ▒▒▒▒▒[#f00]7[#]▒ Spreads ▒▒▒▒▒[#f00]7[#]▒ | ||
+ | ▒▒[#f00]7777[#]▒ ▒▒▒[#f00]777[#]▒ ▒▒▒[#f00]777[#]▒ | ||
+ | ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ | ||
+ | </diagram> | ||
+ | This is the basic principle that the '''[[magma piston]]''' exploit, if you want to anticipate a future fix or simply want to simulate regular physics fluid behaviour, you can do something like this: | ||
+ | <diagram> | ||
z-level Start Step 1 Step 2 | z-level Start Step 1 Step 2 | ||
z+0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | z+0 ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | ||
z-1 ▒ | ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | z-1 ▒ | ▒ ▒ ▒ ▒ ▒ ▒ ▒ ▒ | ||
− | z-2 ▒ ▒ ▒ ▒ ▒ Collapse ▒ 7 7 ▒ ▒ Fluid ▒ ▒ ▒ | + | z-2 ▒ ▒ ▒ ▒ ▒ ▒ [#f00]7 7[#] ▒ ▒ ▒ ▒ ▒ |
− | z- | + | z-3 ▒ ▒ ▒ ▒ ▒ Collapse ▒ [#f00]7 7[#] ▒ ▒ Fluid ▒ ▒ ▒ |
− | z- | + | z-4 ▒ ▒[#f00]?[#]▒ -----------> ▒ ▒[#f00]?[#]▒ -----------> ▒[#f00]55455[#]▒[#f00]?[#]▒ |
− | z- | + | z-5 ▒▒[#f00]777[#]▒▒[#f00]7[#]▒ Support ▒▒▒[#f00]7[#]▒▒▒[#f00]7[#]▒ Spreads ▒▒▒[#f00]7[#]▒▒▒[#f00]7[#]▒ |
− | z- | + | z-6 ▒▒[#f00]777777[#]▒ ▒▒▒[#f00]7[#]▒[#f00]777[#]▒ ▒▒▒[#f00]7[#]▒[#f00]777[#]▒ |
+ | z-7 ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒▒▒ | ||
− | z-3 Top View z- | + | z-3 Top View z-5 Top View z-3 Top View (Step 1) z-4 Top View (Step 2) |
▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ | ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ | ||
− | ▒ ▒ ▒▒▒▒▒▒▒ ▒ ▒ | + | ▒ ▒ ▒▒▒▒▒▒▒ ▒ ▒ ▒[#f00]44544[#]▒ |
− | + | Axis ▒ ▒▒▒ ▒▒▒ ▒▒[#f00]777[#]▒▒▒▒ ▒ [#f00]777[#] ▒▒▒ ▒[#f00]45554[#]▒▒▒ Axis | |
− | Axis ▒ | + | --------▒ ▒ ▒ ▒ ▒--------------▒▒[#f00]777[#]▒▒[#f00]7[#]▒--------------▒ [#f00]7 7[#] ▒[#f00]?[#]▒---------------▒[#f00]55455[#]▒[#f00]?[#]▒-------- |
− | --------▒ | + | Cut ▒ ▒▒▒ ▒▒▒ ▒▒[#f00]777[#]▒▒▒▒ ▒ [#f00]777[#] ▒▒▒ ▒[#f00]45554[#]▒▒▒ Cut |
− | Cut ▒ ▒ ▒▒▒▒▒▒▒ ▒ ▒ | + | ▒ ▒ ▒▒▒▒▒▒▒ ▒ ▒ ▒[#f00]44544[#]▒ |
▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ | ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ ▒▒▒▒▒▒▒ | ||
− | + | </diagram> | |
+ | This example involves dropping a giant ''(minimum size 3x3x1)'' donut/cylinder/tube of natural walls onto the fluid pool, given that it will teleport a donut/cylinder/tube of fluid in the same way ''(step 1)'' but after it spreads ''(step 2)'' it'll seem that the fluid actually went through the opening in the middle of the donut/cylinder/tube like a real fluid should behave, of course one exception it won't be pushed through the right tube like it should, you'll probably want to close the tile marked with a question mark "?" so it can give the impression of real fluid mechanics. | ||
==Natural Flow== | ==Natural Flow== | ||
Line 97: | Line 112: | ||
==Fluid Depth== | ==Fluid Depth== | ||
− | Fluids can have a depth anywhere from 1 to 7. To see the depth of a tile of fluid you can look at it with {{k|k}} which will reveal the depth in the text at the right. Alternatively you can enable | + | {{Main|Water depth}} |
+ | Fluids can have a depth anywhere from 1 to 7. To see the depth of a tile of fluid you can look at it with {{k|k}} which will reveal the depth in the text at the right. Alternatively you can enable SHOW_FLOW_AMOUNTS which will replace the {{Tile|≈|1:0:1}} and {{Tile|~|1:0:1}} tiles with a numerical representation of the depth at all times. Turning on SHOW_FLOW_AMOUNTS does come with the drawback that you will no longer be able to see if a tile is flowing or not. | ||
==Obstructions== | ==Obstructions== | ||
Line 106: | Line 122: | ||
==Bugs== | ==Bugs== | ||
− | * | + | *Items pushed by flowing water may disappear {{Bug|895}} |
− | * | + | *Flowing water seems to cause contaminants to multiply {{Bug|296}} |
{{Category|Physics}} | {{Category|Physics}} |
Latest revision as of 11:25, 30 July 2014
This article is about an older version of DF. |
- The term flow can be used to refer to several completely different things in Dwarf Fortress: things like miasma and smoke, and the mechanism by which water and magma move. This article describes the latter.
Material properties |
Defined: Value • Color • Density • Strain at yield • Temperature values |
Derived: Magma safety • Fire safety |
Fluids: Depth • Flow • Pressure |
Flow is a game mechanic used to simulate the motion of fluids. The two fluids that exist in dwarf fortress currently are water and magma. You can identify fluids that are flowing by looking for a tile that is blinking between ≈
and ~
tiles. If you have turned on SHOW_FLOW_AMOUNTS you will see the fluid depth indicator of 1
through 7
instead and will not be able to easily tell if the game considers a tile to be flowing or not. Flow is typically present any time a fluid is in motion, but there are some exceptions which confuse things a bit.
- Note: In the current release flow does not seem to appear in magma. Magma follows the same rules of fluid motion and flow, it simply doesn't have flow in the sense that would allow it to power a water wheel.
Basic Fluid Motion[edit]
Water and magma both move in much the same way following a fairly simple set of rules. The only difference between the motion of magma and water is that magma behaves differently with regards to pressure.
Fluids move mostly as one might expect: they will fall straight down if they can, or else they will spread out to the sides. Fluids can flow diagonally on the same z-level, but will never move sideways and down at the same time. Under basic fluid motion, fluid never moves back up, but it can appear to do so if pressure is involved.
Here is a quick example of how fluids can move to adjacent tiles. Also as water moves to an adjacent tile flow is generated in both tiles. This flow will remain for a short time before reverting to being non-flowing water. Falling water does not generate flow, so only the 3rd example will result in flow (in both tiles).
B | e | f | o | r | e | ( | s | i | d | e | v | i | e | w | ) | ||
▒ | 7 | ▒ | ▒ | 7 | ▒ | ▒ | |||||||||||
▒ | ▒ | ▒ | 2 | ▒ | ▒ | 7 | |||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | |||||||
A | f | t | e | r | ( | s | i | d | e | v | i | e | w | ) | |||
▒ | ▒ | ▒ | 2 | ▒ | ▒ | ||||||||||||
▒ | 7 | ▒ | ▒ | 7 | ▒ | ▒ | 4 | 3 | |||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ |
- Fluids move down
- Fluids spread out to the sides
These rules are incomplete, however, without consideration of pressure.
Fluids under pressure, aka Teleportation[edit]
Magma, which has no natural pressure, flows according to the rules of basic fluid motion. Water, however, can move by pressure when it falls down on top of full 7/7 water. In addition, pumps create pressure in both water and magma, and water entering the map from a stream or river follows pressure as well.
Fluids moving under pressure do not just move to adjacent tiles, they also trace a path through other full tiles of fluid trying to move to more distant tiles. Fluids moving under pressure can effectively teleport through other tiles that are already filled with fluid. When teleporting, fluids do not generate any flow, neither will they push objects around.
▒ | 7 | ▒ | ▒ | |||||||||||||||||
B | e | f | o | r | e | ▒ | 7 | ▒ | ▒ | |||||||||||
▒ | 7 | 7 | 7 | ▒ | ||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||
- | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | |
▒ | ▒ | ▒ | ||||||||||||||||||
A | f | t | e | r | ▒ | 7 | ▒ | 7 | ▒ | |||||||||||
▒ | 7 | 7 | 7 | ▒ | ||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ |
When a fluid tries to move by pressure, it tries to trace a path through full 7/7 fluids going down, and horizontally, but not diagonally. In this way it is like basic flow, except that pressure works faster; fluid from the source is teleported to the open space at the end, rather than having to wait for open space to open up at the source via normal flow. This is why, for example, diagonal squeezes in channels make water flow slower (they block pressure, forcing it to only spread out sideways), and why rivers and streams on the map are usually full of 7/7 water until close to the edge of the map where the rules of basic fluid motion are draining the water off the map while pressure teleports new water from the source all the way down to the end.
What's more, unlike basic flow, the path pressure traces can even go back up--but never higher than the z-level of the first 7/7 tile on the path it was tracing. So it may appear that pressure 'pushes fluids up', but in fact it's only teleporting fluid to a level even or lower.
Thus the result is that pressure movement of fluids (especially water) is common and doesn't create very much flow. However rivers and streams still seem to have some kind of flow that powers water wheels, called natural flow.
Fluid Displacement by Cave-in, aka Pistons[edit]
- (see also magma piston)
There's one way to push a fluid higher than its starting level, but it might be considered a bug on the flow mechanics and probably will be changed in following versions since allows for what could be considered exploits.
A natural wall of any material falling onto either water or magma will teleport each tile of displaced fluid to open space directly above it, leaving 1 additional tile of open space directly above the wall itself:
S | t | a | r | t | S | t | e | p | 1 | S | t | e | p | 2 | ||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||
▒ | I | ▒ | C | o | l | l | a | p | s | e | ▒ | ▒ | F | l | u | i | d | ▒ | ▒ | |||||||||||||||||||||||||
▒ | ▒ | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | 7 | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | ▒ | |||||||||||||
▒ | ▒ | S | u | p | p | o | r | t | ▒ | ▒ | S | p | r | e | a | d | s | ▒ | 2 | 3 | 2 | ▒ | ||||||||||||||||||||||
▒ | ▒ | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ |
When done in an u-bend example the pushing above original fluid level can be easily appreciated, although it breaks the laws of regular fluid physics:
S | t | a | r | t | S | t | e | p | 1 | S | t | e | p | 2 | |||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||
▒ | I | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | |||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | C | o | l | l | a | p | s | e | ▒ | 7 | ▒ | ▒ | F | l | u | i | d | ▒ | ▒ | ▒ | |||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | ▒ | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | 5 | 4 | 5 | ▒ | ▒ | ||||||||||||||||||
▒ | ▒ | 7 | ▒ | ▒ | 7 | ▒ | S | u | p | p | o | r | t | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | ▒ | S | p | r | e | a | d | s | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | ▒ | |||||||||||||||||||
▒ | ▒ | 7 | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | |||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ |
This is the basic principle that the magma piston exploit, if you want to anticipate a future fix or simply want to simulate regular physics fluid behaviour, you can do something like this:
z | - | l | e | v | e | l | S | t | a | r | t | S | t | e | p | 1 | S | t | e | p | 2 | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | + | 0 | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 1 | ▒ | | | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 2 | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 3 | ▒ | ▒ | ▒ | ▒ | ▒ | C | o | l | l | a | p | s | e | ▒ | 7 | 7 | ▒ | ▒ | F | l | u | i | d | ▒ | ▒ | ▒ | |||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 4 | ▒ | ▒ | ? | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | ▒ | ? | ▒ | - | - | - | - | - | - | - | - | - | - | - | > | ▒ | 5 | 5 | 4 | 5 | 5 | ▒ | ? | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 5 | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | 7 | ▒ | S | u | p | p | o | r | t | ▒ | ▒ | ▒ | 7 | ▒ | ▒ | ▒ | 7 | ▒ | S | p | r | e | a | d | s | ▒ | ▒ | ▒ | 7 | ▒ | ▒ | ▒ | 7 | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 6 | ▒ | ▒ | 7 | 7 | 7 | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 7 | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 7 | ▒ | 7 | 7 | 7 | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
z | - | 3 | T | o | p | V | i | e | w | z | - | 5 | T | o | p | V | i | e | w | z | - | 3 | T | o | p | V | i | e | w | ( | S | t | e | p | 1 | ) | z | - | 4 | T | o | p | V | i | e | w | ( | S | t | e | p | 2 | ) | ||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | 4 | 4 | 5 | 4 | 4 | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
A | x | i | s | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 4 | 5 | 5 | 5 | 4 | ▒ | ▒ | ▒ | A | x | i | s | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||
- | - | - | - | - | - | - | - | ▒ | ▒ | ▒ | ▒ | ▒ | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | 7 | ▒ | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ▒ | 7 | 7 | ▒ | ? | ▒ | - | - | - | - | - | - | - | - | - | - | - | - | - | - | - | ▒ | 5 | 5 | 4 | 5 | 5 | ▒ | ? | ▒ | - | - | - | - | - | - | - | - | ||||||||
C | u | t | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | ▒ | 7 | 7 | 7 | ▒ | ▒ | ▒ | ▒ | 4 | 5 | 5 | 5 | 4 | ▒ | ▒ | ▒ | C | u | t | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | 4 | 4 | 5 | 4 | 4 | ▒ | ||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||||
▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ | ▒ |
This example involves dropping a giant (minimum size 3x3x1) donut/cylinder/tube of natural walls onto the fluid pool, given that it will teleport a donut/cylinder/tube of fluid in the same way (step 1) but after it spreads (step 2) it'll seem that the fluid actually went through the opening in the middle of the donut/cylinder/tube like a real fluid should behave, of course one exception it won't be pushed through the right tube like it should, you'll probably want to close the tile marked with a question mark "?" so it can give the impression of real fluid mechanics.
Natural Flow[edit]
Many water sources such as rivers and brooks are constantly flowing with natural flow. This is different from other flow effects in that it is always considered to be flowing water. This remains true even when the water flows into a complete dead end channel or even when blocked off with a floodgate. Any channels that link up to a naturally flowing source will soon become naturally flowing water as long as they remain on the same z-level. Diagonal steps have no effect on natural flow although they can be used to change pressure.
Trying to move natural flow up or down to a different z-level may have unpredictable results but in most cases this will break the natural flow effect resulting in still water that can only be made to flow by artificial means.
Naturally flowing water, depending on its environment, flows in a specific direction - when SHOW_FLOW_AMOUNTS is disabled, water which flows directly into a wall will flash white while other water remains blue. This flow direction is important to note, since it affects the operation of water wheels: water which flows directly north or south will not power an east/west-aligned water wheel, and the opposite is also true. Diagonally flowing water, however, works for everything.
Fluid Depth[edit]
Fluids can have a depth anywhere from 1 to 7. To see the depth of a tile of fluid you can look at it with k which will reveal the depth in the text at the right. Alternatively you can enable SHOW_FLOW_AMOUNTS which will replace the ≈
and ~
tiles with a numerical representation of the depth at all times. Turning on SHOW_FLOW_AMOUNTS does come with the drawback that you will no longer be able to see if a tile is flowing or not.
Obstructions[edit]
Water can be stopped by most solid tiles. These include walls and buildings as well as closed floodgates, doors, and hatches. Exceptions are vertical grates, vertical bars, and fortifications, which will allow fluids to pass freely.
Evaporation[edit]
Fluids that remain at a depth of 1/7 for long enough will evaporate. Evaporated fluids are simply removed from the game. In hot or scorching environments, murky pools can evaporate at greater depths.