Bay 12 Games Forum

Please login or register.

Login with username, password and session length
Advanced search  
Pages: [1] 2

Author Topic: I fail to understand liquid dynamics: magma overspill  (Read 2182 times)

foop

  • Bay Watcher
    • View Profile
I fail to understand liquid dynamics: magma overspill
« on: October 06, 2008, 08:08:13 am »

It took me far too many attempts to make a well without drowning dorfs.  I should have realised that messing with magma pipes would be a bad idea.  But I read the wiki page on magma and I thought I understood...

If I have a magma pipe that reaches the surface, and a fortress about 4 Z levels under the surface, what is the best way to get magma into channels at Z-5, below my forges?  I thought I'd worked it out, but I'm suffering a little overspill problem, as you can see:

Spoiler (click to show/hide)

I thought that as magma is "chunky", it doesn't level in a U-bend like water does.  So I channeled magma from the top of the pipe, dropped it down a shaft, and then channeled again at Z-5.  The magma then goes to fill the moat round my trade depot (not shown) and the workshop channels.   The odd thing is that the moat (which is closer to the source) isn't overspilling but the forges are.
Logged

Fuerte

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #1 on: October 06, 2008, 08:20:16 am »

If I'm reading your picture correctly then I see your problem

Here is what I think I see:
Spoiler (click to show/hide)

What is happening is that lava will never go up a level. So you thought that if you made a channel it would keep the lava from spilling. But in reality once the channel is full the lava doesn't keep going into the channel, it will sit on top of the other lava and flow as if there was no channel at all.

Logged

foop

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #2 on: October 06, 2008, 08:27:34 am »

But in reality once the channel is full the lava doesn't keep going into the channel, it will sit on top of the other lava and flow as if there was no channel at all.

Aha!  Yes, that makes sense.  And that explains why my moat isn't overflowing - it goes through a tunnel first.

Now you've explained, I understand what's happening: I can see little level 1 blobs of lava flowing along the top of the other lava in the channel and then overflowing into the workshops.

Right, once my dorfs have finished walling off the new "hot zone", I shall put that knowledge to good use.  Thanks.
Logged

Time Kitten

  • Bay Watcher
  • Evil Spirit
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #3 on: October 06, 2008, 09:39:01 am »

Yeah, you've got no wall stopping it on your workshop level, it's just flowing out onto that level of the tunnel.
Logged

coldstone

  • Bay Watcher
  • Cold stone given life.
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #4 on: October 06, 2008, 11:30:31 am »

correct me if im wrong,
ramps cause slight/great spillover depending on just how much pressure there is.
if this guy just had his first channel ending in stairs, or just a channelled tile, he wouldnt have those little 1s spilling out.
am i right? or is pressure pushing stuff above anything?
Logged

Derakon

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #5 on: October 06, 2008, 11:30:58 am »

Just wait for the current workshop level to fill with magma, and then put your workshops one level higher. :)

Ramps do not affect fluids, to my knowledge.
Logged
Jetblade - an open-source Metroid/Castlevania game with procedurally-generated levels

Koboldbard

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #6 on: October 06, 2008, 04:49:53 pm »

Also, are you using pumps? They Pressurize the magama.
Logged

Untelligent

  • Bay Watcher
  • I eat flesh!
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #7 on: October 06, 2008, 04:54:21 pm »

Also, are you using pumps? They Pressurize the magama.

If by that, you mean they cause magma to overflow walls and eventually flow up to its source z-level, no. Magma will never flow up. Just down and sideways.
Logged
The World Without Knifebear — A much safer world indeed.
regardless, the slime shooter will be completed, come hell or high water, which are both entirely plausible setbacks at this point.

Core Xii

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #8 on: October 07, 2008, 03:31:50 am »

If by that, you mean they cause magma to overflow walls and eventually flow up to its source z-level, no. Magma will never flow up. Just down and sideways.
Wrong. Magma WILL rise up to a pump's level if it's being pumped. I just had this happen in my last game.
Logged
Reality is for people who lack imagination

sneakey pete

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #9 on: October 07, 2008, 03:35:02 am »

It wont if it goes under a U bend.
eg
Code: [Select]
%%MM#       
M##MMMMMMMMM

Won't overflow.
« Last Edit: October 07, 2008, 03:36:52 am by sneakey pete »
Logged
Magma is overrated.

kaypy

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #10 on: October 07, 2008, 06:55:04 am »

I just built a Screwpump and Ubend, "For SCIENCE!", and can confirm that magma will be pressurized (ie flow upwards) after being pumped:

Code: [Select]
############
######## ###
### %%~#~###
~~~~##~#~###
######~#~###
######~~~###
############
Logged

sneakey pete

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #11 on: October 07, 2008, 09:07:48 am »

Wait... wha?
Logged
Magma is overrated.

Skanky

  • Bay Watcher
  • I'm building a wagon!
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #12 on: October 07, 2008, 08:20:07 pm »

Nice work Kaypy
Logged
"Quickly now, the goblins are more devious these days." - Captain Mayday

Fossaman

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #13 on: October 07, 2008, 08:26:46 pm »

Oh my.

I shall have to consider this...carefully. Oh my yes, very carefully indeed.

Muahaha.

Muahahaha.

MUAHAHAHAHAHAHAHA!
[/maniacal]
So yeah, that's pretty cool. All sorts of fun things you could do with that.
Logged
Quote from: ThreeToe
This story had a slide down a chute. Everybody likes chutes.

kaypy

  • Bay Watcher
    • View Profile
Re: I fail to understand liquid dynamics: magma overspill
« Reply #14 on: October 09, 2008, 05:58:48 am »

Science! has demanded a followup study, with results now on the wiki. Executive summary: Only magma actually being pumped into a 'full' tile exhibits pressure effects. I suspect what is happening is that the code for the screw pump includes 'if the target tile is full, place fluid elsewhere as per pressure' and doesn't check for what fluid is being pumped.

Oh, and in case my earlier diagram didnt make it clear- the "pressurized" magma only rises to the level of the pump. This still leaves possibilities for things like 'magma fountains' given the right pump and tunnel setup, though 8-)
Logged
Pages: [1] 2