Controlling liquid consumption priority

Post pictures and videos of your factories.
If possible, please post also the blueprints/maps of your creations!
For art/design etc. you can go to Fan Art.

User avatar
BeltRunner
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Oct 02, 2014 8:23 am
Contact:

Controlling liquid consumption priority

Post by BeltRunner »

Let's say you are building an Advanced Oil Cracking facility to produce Petroleum Gas, but you also need Lubricant for some intermediate products.
If you don't have a lot of Crude Oil, you may face a problem when all your Heavy Oil is used by Heavy-to-Light cracking, and you get no Lubricant.

Here is a solution:
Example
How it works:
Diagram
Ackbarspiff
Burner Inserter
Burner Inserter
Posts: 7
Joined: Wed Sep 17, 2014 9:13 pm
Contact:

Re: Controlling liquid consumption priority

Post by Ackbarspiff »

Nice design. I will use this for my next factory.
Salmelu
Burner Inserter
Burner Inserter
Posts: 16
Joined: Sat Oct 25, 2014 7:18 pm
Contact:

Re: Controlling liquid consumption priority

Post by Salmelu »

I've been thinking about the same today, because of the same problem - making lubricant even though I need to crack the rest of the heavy oil.

I like your solution too, I'll try how it works
sillyfly
Smart Inserter
Smart Inserter
Posts: 1101
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Controlling liquid consumption priority

Post by sillyfly »

Could you explain why (if at all?) is the loop at the bottom necessary? (the one with tanks -> pump -> underground pipe -> pump -> tanks)

If you have already explained it I am sorry, but I have not understood it.
Thanks.
User avatar
BeltRunner
Burner Inserter
Burner Inserter
Posts: 12
Joined: Thu Oct 02, 2014 8:23 am
Contact:

Re: Controlling liquid consumption priority

Post by BeltRunner »

sillyfly wrote:Could you explain why (if at all?) is the loop at the bottom necessary?
First of all, if you are ok with small (~0.2%) leakage of liquid into low priority output, you can use basic design:
Image

If you wand "perfect" 100% solution, then loop at the bottom is necessary to redirect leaked 0.2% of liquid back to the system input.
sillyfly
Smart Inserter
Smart Inserter
Posts: 1101
Joined: Sun May 04, 2014 11:29 am
Contact:

Re: Controlling liquid consumption priority

Post by sillyfly »

I see. To put it in my words - the loop makes sure there is always a "source" that wants to draw from the tanks, and thus makes anything without a pump lower-priority.

As for the solution with only one pump - it relies on the high-priority consumer being able to consume faster than the liquid is produced, which is not always the case.

Anyway - this is very helpful! thank you for this design.
User avatar
Nova
Filter Inserter
Filter Inserter
Posts: 960
Joined: Mon Mar 04, 2013 12:13 am
Contact:

Re: Controlling liquid consumption priority

Post by Nova »

Is it okay to remove the pipe between the two storage tanks?
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: Controlling liquid consumption priority

Post by Rahjital »

That would break it because the low priority output would get no liquid.
User avatar
Nova
Filter Inserter
Filter Inserter
Posts: 960
Joined: Mon Mar 04, 2013 12:13 am
Contact:

Re: Controlling liquid consumption priority

Post by Nova »

Ah, no, I would like to put the two tanks closer together - removing the pipe and then connecting the two tanks directly.
Rahjital
Filter Inserter
Filter Inserter
Posts: 435
Joined: Thu May 29, 2014 10:44 am
Contact:

Re: Controlling liquid consumption priority

Post by Rahjital »

Oh, that should work just fine, unless there is some quirk with liquid flowing from tank to tank. I think BeltRunner put the space there to fit that electric pole in.
Saltan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jul 22, 2015 11:35 am
Contact:

Re: Controlling liquid consumption priority

Post by Saltan »

Hey guys,

I've made a few tests and it sounds like the system show by BeltRunner is not working anymore : I builded exaclty the same configuration show in the picture, and added two tank on each output pipes. I have then connect a water pump to the input pipe, and check the water flow : The tank on the "low pririty" output was fill more quickly than the other one. It seems like the small pump is limiting the maximum output of the flow.

Did you do the test ? Which effective solution can be found to control the liquid consumption priority ?

Thanks
Zeblote
Filter Inserter
Filter Inserter
Posts: 973
Joined: Fri Oct 31, 2014 11:55 am
Contact:

Re: Controlling liquid consumption priority

Post by Zeblote »

Couldn't you just put the lower priority output behind a pump and set a combinator to only turn on the pump if the other tank is full?
Saltan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jul 22, 2015 11:35 am
Contact:

Re: Controlling liquid consumption priority

Post by Saltan »

That may work and be very effective but that's a bit "space consuming".

I have found an other simple way to do it : the pump on the high priority output is limiting the flow. So if you add an other pump on the input pipe, you will limit the amount of liquid in the system and let your output pump manage all the liquid without being "overflooded"

A picture will explain is better :
Image

In order to have a better result the high priority output pipe should be short, or have multiple pumps.

Thx for the help !
Saltan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jul 22, 2015 11:35 am
Contact:

Re: Controlling liquid consumption priority

Post by Saltan »

Well that solution is not fully working in case of complex liquid managment system.

I am working on your solution Zeblote to found the best way to do it ("best way" here = Which one whould fullfill my needs).
PiggyWhiskey
Filter Inserter
Filter Inserter
Posts: 255
Joined: Wed May 13, 2015 5:28 am
Contact:

Re: Controlling liquid consumption priority

Post by PiggyWhiskey »

Have you thought about changing the way you do it slightly.

Let's say you have a tank for each of the 5 liquids (Crude, Heavy, Light, Petroleum, Sulfuric Acid, Lubricant.)
And you want to crack down to petroleum, but don't want to leave yourself short on Lubricant (Or Light Oil->Solid Fuel)

It's simply a matter of laying out some small pumps connected to each tank with certain filters.

Image

This quick setup is completely self sufficient and expandable.
Prioritising:
Petroleum (Sulfur/Plastic)
Heavy/Lubricant
Light Oil

With the LIght Oil it makes Solid Fuel only if the tank is full and potentially causing a backlog.
Although you could remove this entirely, your Lubricant may suffer if you have too much light oil and it can't crack down to Petroleum (Backlog in Oil Refinery)

I've marked on the image what settings to have for the pumps.
If you want to prioritise Sulfur over Plastic it's easy enough to put another Small Pump on the Petroleum Tank and add another condition and give the one you want more of a higher value. (Plastic P > 1.1k Sulfur P > 1.0k for a priority to Plastic)
That also keeps 1k in the Petroleum Tank. It is kinda useless, but I found it's easier to move fluids than if it was set to 0 or a really low value.
Saltan
Burner Inserter
Burner Inserter
Posts: 6
Joined: Wed Jul 22, 2015 11:35 am
Contact:

Re: Controlling liquid consumption priority

Post by Saltan »

Thanks for your reply PiggyWhiskey !

I have end up with a solution very similar. The only difference is that i don't connect all to a central system, but each pump to his associated tank. This is possible because i builded a very compact refinery, your solution is way better for a bigger or a more complex refinery.

My goal was to destroy the oil if i had too much. Here is what i build :
Image

The full factory :
Factory
fixed image --daniel34
PiggyWhiskey
Filter Inserter
Filter Inserter
Posts: 255
Joined: Wed May 13, 2015 5:28 am
Contact:

Re: Controlling liquid consumption priority

Post by PiggyWhiskey »

That last picture wouldn't load for me.

Rather than destroy anything, why not crack it down to what you need more of?
User avatar
V453000
Factorio Staff
Factorio Staff
Posts: 274
Joined: Fri Sep 04, 2015 5:51 pm
Contact:

Re: Controlling liquid consumption priority

Post by V453000 »

I personally just use 1 tank for each liquid type, and connect wires to small pumps.

With conditions:

If heavy oil > 2000, start cracking it into light oil. (by starting the pump which leads to cracking heavy->light)
If light oil >2000, start cracking it into petroleum gas. (by starting another pump which leads to cracking light->petroleum gas)

By connecting lubricant production directly to heavy oil tank Before the pump, the lubricant plants always take heavy oil if there is any. And if there is too much heavy oil, then cracking happens.

That way I do not really need anything special to be built, but it works flawlessly. The only thing that can occur is that petroleum gas tank gets full, and the refineries stop because of that.

In games where I have enough oil, I just connect petroleum gas -> solid fuel plants, with a pump condition of petroleum gas >2400 or such. In games where I want to save oil, I just ignore it as sooner or later petroleum gas consumption will be HUGE anyway.
PiggyWhiskey wrote: Rather than destroy anything, why not crack it down to what you need more of?
I think this is useful when you do not have access to advanced oil processing and thus no cracking. Keeps stuff running and you do not have to build 1234297 tanks to store stuff in :). Especially great if you plan on staying green science for a longer time (I like that when I want to have more time to get laser turrets, trains, electric furnaces and construction robots, instead of rushing for blue lab packs)
PiggyWhiskey
Filter Inserter
Filter Inserter
Posts: 255
Joined: Wed May 13, 2015 5:28 am
Contact:

Re: Controlling liquid consumption priority

Post by PiggyWhiskey »

If you're going to make solid fuel, you should do it at the light oil level. IIRC you get 2 solid fuel from light oil, and only 1 from that same amount cracked down to petroleum. And 1.5 if you use heavy oil (cracked down into the same amount of light oil....if you catch my drift.)
That's why my design had the light oil/solid fuel setup.

Also, you are correct if you don't have advanced oil processing.
User avatar
V453000
Factorio Staff
Factorio Staff
Posts: 274
Joined: Fri Sep 04, 2015 5:51 pm
Contact:

Re: Controlling liquid consumption priority

Post by V453000 »

Yeah, if you care about the amount of fuel, that definitely is more efficient, and if you give it enough headroom, petroleum gas might never fill up either (: I just generally do not care about the amount of solid fuel as it is just a "mean to enable refinery production again" ... though reasons to that are probably little :)
Post Reply

Return to “Show your Creations”