I know designs like this have been discussed in the past, but this is the first time I've put one to actual use, and it seems to be working well, so I thought I'd share the design with some screenshots. The goal here is to make a trap that kills your enemies with magma, without having a long cycle time while you wait for the magma to evaporate away, and with letting you retrieve your enemies' equipment as conveniently as possible. We do this by having a three-layer trap: layer 1 pours magma onto bridges; layer 2 is floored with grates (catching equipment but letting fluids through); layer 3 holds the drained magma and lets it cool off well out of the way.
Here's the trap, at the bottom of the screen, along with my farms, glassworks, and food storage. What we have here is basically a long, twisty tunnel floored with retracting bridges (over open space) and walled by fortifications. The upper-left bauxite bridge is holding back magma pumped up from the magma pipe (you can see my axles carrying power from an array of water wheels over the brook). The upper-right bauxite bridge is failsafe #1 for preventing enemies from reaching the interior of the fortress. The top-right green glass bridge is failsafe #2. And the water pumps on the right are failsafe #3; I can flood the entire area if I need to. They were originally meant to clear out the tunnels, but then I discovered that even 1/7 of magma will make an obsidian wall when solidified.
And yes, the butcher's and tanner's are surrounded by green glass walls. I don't know.
One level lower down. This is my loot extraction facility. After burning my enemies with the magma above, I retract the bridges, dropping burned enemies and their equipment down to this level. Here, the magma drains through the grates, leaving equipment behind. In the off-chance that an enemy avoids the magma, I can wall off the entrance to the area using the bridge in the upper-right.
One level lower down again. This is where the magma drains to. The four glass walls are supporting floors on the level above (since grates don't provide support). I can dig this level out more if I need more room for magma to evaporate.
Orcs are attacking! Oh no! My fortress of fifteen dwarves is surely doomed! Failsafe bridge #1 goes up, barring entry...
And the magma is unleashed. The magma release lever also controls floodgates to stop the orcs from escaping or the magma from blocking up the corridor.
Closed off the magma and retracted the floor bridges, dropping everything down. I did that in the wrong order, so some magma slipped past the now-open floodgates, blocking things up. Oops.
The loot extraction facility. You can see some orcs (and their beak dogs) survived. That's OK. I'll terrorize them with random drips of magma from the upper levels. The access bridge is a few frames from being closed.
And finally, the magma evaporation facilities.
If I were to do this again, I'd change the following:
* Disconnect the glassworks magma supply from the trap magma supply. My glassworks deactivate when the trap is running because all their magma gets stolen.
* Use something other than fortifications on the top level. The problem is that sometimes gear gets tossed into the fortifications instead of getting dropped down a level, which makes it annoying to retrieve. It's a minor loss, though; mainly just looks ugly.
* Move the entire trap a bit further from my fortress. I can't drop the entire twisting corridor down to the level below because an aqueduct is in the way. Thus some of those bridges are actually drawbridges, and exist solely to crush magma.
* Put the water failsafe and the magma pump on different axle systems. I had a flooding issue because I missed a pressure leak, which gummed up the magma works. It's fixed now (the random yellow pump in the second image is a fluid-blocking power transfer, for example), but it was annoying to clear out all the leaked water (see also: water-crushing bridges in image #3).
* Add another level between the grates and the magma evaporation, so I can turn magma evaporation into an obsidian farm.