v50 Steam/Premium information for editors
- 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.
This notice may be cached—the current version can be found here.
Editing 40d:Fluid logic
Jump to navigation
Jump to search
Warning: You are not logged in.
Your IP address will be recorded in this page's edit history.
You are editing a page for an older version of Dwarf Fortress ("Main" is the current version, not "40d"). Please make sure you intend to do this. If you are here by mistake, see the current page instead.
The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision | Your text | ||
Line 1: | Line 1: | ||
− | {{av | + | {{av}} |
− | Fluid logic is a form of | + | Fluid logic is a form of {{l|computing}} which uses a fluid (generally {{l|water}}) controlled by various means, to trigger {{l|pressure plate}}s and hopefully accomplish some desirable result. |
==Infinite Flow Gates== | ==Infinite Flow Gates== | ||
Line 34: | Line 34: | ||
|} | |} | ||
</div> | </div> | ||
− | An AND gate is simply created by putting two floodgates ''in a row'', each one connected to one of the input triggers: {{Raw Tile|X|#A00|#444}}{{Raw Tile|X|#0A0|#444}}. When both floodgates | + | An AND gate is simply created by putting two floodgates ''in a row'', each one connected to one of the input triggers: {{Raw Tile|X|#A00|#444}}{{Raw Tile|X|#0A0|#444}}. When both floodgates recieve an on signal, they will open and let the water from the left side pass. The pressure plate behind the floodgates has to be constructed to react on 4-7 water. |
* If you use two 1x1 raising bridges, you'll get a NAND opeation instead. | * If you use two 1x1 raising bridges, you'll get a NAND opeation instead. | ||
* The output can also be inverted by using a 0-3 pressure plate. | * The output can also be inverted by using a 0-3 pressure plate. | ||
Line 75: | Line 75: | ||
|} | |} | ||
</div> | </div> | ||
− | An OR gate is simply created by putting two floodgates ''parallel'', each one connected to one of the input triggers: {{Raw Tile|X|#A00|#444}}{{Raw Tile|X|#0A0|#444}}. When one of the floodgates | + | An OR gate is simply created by putting two floodgates ''parallel'', each one connected to one of the input triggers: {{Raw Tile|X|#A00|#444}}{{Raw Tile|X|#0A0|#444}}. When one of the floodgates recieves an on signal, it will open and let the water from the left side pass. The pressure plate behind the floodgates has to be constructed to react on 4-7 water. |
* If you use two 1x1 raising bridges, you'll get a NOR opeation instead. | * If you use two 1x1 raising bridges, you'll get a NOR opeation instead. | ||
* The output can also be inverted by using a 0-3 pressure plate. | * The output can also be inverted by using a 0-3 pressure plate. | ||
Line 130: | Line 130: | ||
==Fluid Preserving Gates== | ==Fluid Preserving Gates== | ||
− | At the moment there doesn't exist a full concept of fluid preserving Fluid Logic Gates. Each concept working with floodgates or equivalent components in the gates will have to deal with the destruction of the fluid. A way to handle this can be the usage of | + | At the moment there doesn't exist a full concept of fluid preserving Fluid Logic Gates. Each concept working with floodgates or equivalent components in the gates will have to deal with the destruction of the fluid. A way to handle this can be the usage of {{l|Hatch cover|hatches}}. Also evaporation is a known problem. |
<!-- | <!-- | ||
==Mechanical-Fluid Gates== | ==Mechanical-Fluid Gates== | ||
− | These gates aren | + | These gates aren`t [[Fluid Logic]]. The ''logic'' lies within the arrangement of the (mechanical) gears. You can find it here: {{l|Mechanical_logic}}. The Water is just used to convert the power into a trigger signal. (A general concept you need for {{l|Mechanical_logic}}) |
[[File:Logic2.gif|thumb]] | [[File:Logic2.gif|thumb]] | ||
The water sources in these diagrams are located 1 z-level below the pumps and gear assemblies. | The water sources in these diagrams are located 1 z-level below the pumps and gear assemblies. | ||
− | These gate designs have the advantage of destroying no water and requiring no drainage off the map, making them suitable for maps where infinite water and/or drainage may be a problem. The only fluid lost will be to evaporation. However, there are a number of disadvantages. They require significantly more materials and time to make, they require {{ | + | These gate designs have the advantage of destroying no water and requiring no drainage off the map, making them suitable for maps where infinite water and/or drainage may be a problem. The only fluid lost will be to evaporation. However, there are a number of disadvantages. They require significantly more materials and time to make, they require {{l|power}}, and a {{l|flood}} could have disasterous consequences, as it would cover all the plates at once. |
For the XOR-Gate it is assumed that the gear is powered by a windmill on a map with strong wind (40 power). If both gears are active the XOR-Gate would need more than 40 power and will stop working. If you use a different source of power - a waterwheel with axles or combined windmills 20 power each - you´ll have to add or remove some gears or axles to calibrate it.<br clear="all"/> | For the XOR-Gate it is assumed that the gear is powered by a windmill on a map with strong wind (40 power). If both gears are active the XOR-Gate would need more than 40 power and will stop working. If you use a different source of power - a waterwheel with axles or combined windmills 20 power each - you´ll have to add or remove some gears or axles to calibrate it.<br clear="all"/> | ||
Line 335: | Line 335: | ||
The main factors that affect the speed of these gates are the delays of floodgates and bridges, and the switch-off delay of pressure plates. These cannot be eliminated. | The main factors that affect the speed of these gates are the delays of floodgates and bridges, and the switch-off delay of pressure plates. These cannot be eliminated. | ||
− | Another factor is the flowing speed of the water. It can be improved. First, the water should flow in from a reservoir a few z-levels higher | + | Another factor is the flowing speed of the water. It can be improved. First, the water should flow in from a reservoir a few z-levels higher then the gates themselves (the more the better). This way, water will flow in much faster. Next, replace the pressure plates with up stairs, and make a 2x1 room one z-level above. On on tile is a down stair, and on the other is the pressure plate. Now the water will also flow out faster, or at least the pressure plate will switch off sooner. |
This increases the water consumption a bit, but it still remains relatively low. | This increases the water consumption a bit, but it still remains relatively low. | ||
− | + | [[Category:Constructions]] | |
− | + | [[Category:Computing]] |