Page 1 of 1

Oil logistics?

Posted: Tue May 10, 2016 7:21 pm
by Coffee Daemon
Quick question, I'm sure everyone has hit this but is there any way to program say Solid Fuel production if Petro gets too high? Believe it or not I have actually hit that point :(

Re: Oil logistics?

Posted: Tue May 10, 2016 8:29 pm
by twepy
There are several, the most used is putting a pump in front of the chemical plant with a condition set, alternate is setting a condition on the smart inserter which removes the solid fuel blocks from the chemical plant. The both are setup in similar fashion.

Place a pump in front of the chemical plant, next connect a signal wire from the pump to the petroleum storage tank and then set a condition on the pump. When the condition is true the petroleum is pumped into the chemical plant, when the condition becomes false the pump stops and blocks the petroleum from entering the chemical plant.
petroleum.png
petroleum.png (130.13 KiB) Viewed 6707 times

Re: Oil logistics?

Posted: Wed May 11, 2016 1:36 am
by Coffee Daemon
twepy wrote:There are several, the most used is putting a pump in front of the chemical plant with a condition set, alternate is setting a condition on the smart inserter which removes the solid fuel blocks from the chemical plant. The both are setup in similar fashion.

Place a pump in front of the chemical plant, next connect a signal wire from the pump to the petroleum storage tank and then set a condition on the pump. When the condition is true the petroleum is pumped into the chemical plant, when the condition becomes false the pump stops and blocks the petroleum from entering the chemical plant.
petroleum.png
So, using pumps you CAN quantify liquids. This will change EVERYTHING! Many thanks. If only I had room for pumps :p

Re: Oil logistics?

Posted: Wed May 11, 2016 6:51 am
by aka13
Coffee Daemon wrote:
twepy wrote:There are several, the most used is putting a pump in front of the chemical plant with a condition set, alternate is setting a condition on the smart inserter which removes the solid fuel blocks from the chemical plant. The both are setup in similar fashion.

Place a pump in front of the chemical plant, next connect a signal wire from the pump to the petroleum storage tank and then set a condition on the pump. When the condition is true the petroleum is pumped into the chemical plant, when the condition becomes false the pump stops and blocks the petroleum from entering the chemical plant.
The attachment petroleum.png is no longer available
So, using pumps you CAN quantify liquids. This will change EVERYTHING! Many thanks. If only I had room for pumps :p
The pump isnt quantifying liquids, its only acting as a valve + combinators. THe quantifyer in that suggestion would be the petroleum storage tank ;)

I dont have solid fuel in my setup, but I have a similar approach on cracking, here you go:
Capture.PNG
Capture.PNG (1.29 MiB) Viewed 6651 times

Re: Oil logistics?

Posted: Thu May 12, 2016 2:34 pm
by Coffee Daemon
aka13 wrote: The pump isnt quantifying liquids, its only acting as a valve + combinators. THe quantifyer in that suggestion would be the petroleum storage tank ;)

I dont have solid fuel in my setup, but I have a similar approach on cracking, here you go:
Capture.PNG
Well now I've run out of oil I guess it doesnt mater too much XD

Many thanks though. I was trying to work a way of shunting oil one way or the other it via output materials, but that was going to be a monstrosity of a job.

EDIT: Also, how in earth is it possible to make an oil network look THAT neat? Mine always looks like my pipe factory exploded (It did once, dont test explosive shells in base ......)

Re: Oil logistics?

Posted: Thu May 12, 2016 2:38 pm
by Frightning
Coffee Daemon wrote:
aka13 wrote:~snip~
EDIT: Also, how in earth is it possible to make an oil network look THAT neat? Mine always looks like my pipe factory exploded (It did once, dont test explosive shells in base ......)
My guess is: pre-planning. I say guess because I'm still no good at it...

Re: Oil logistics?

Posted: Thu May 12, 2016 11:51 pm
by aka13
Thanks for the compliments, but its rather the fact that I am more or less "forced" to optimize, since I play with marathon. This setup was achieved only after about 110h on this specific save :lol: , so your setup is propably absolutely comparable if you account the time invested.
Capture.PNG
Capture.PNG (79.53 KiB) Viewed 6536 times

Re: Oil logistics?

Posted: Sat May 14, 2016 1:50 pm
by vanatteveldt
IMO the trick to getting neat layouts is to divide everything into rows, so you can plop down as many of something as you need, and to take enough space. A refinery requires 2 pipe rows for input and 3 for output, while cracking has 2 input rows, so if you have cracking directly above your refineries you want that least 3+1+2=6 tiles distance between the refinery row and the cracking row.

For example, this is the refinery setup I just posted here (viewtopic.php?f=8&t=25114):
refinery and fluids
Refining on the bottom, cracking above it, solid fuel production above that. Of course, you also see what happens when your nice plans hit reality, as I didn't leave enough space to include the heavy->light cracking properly, I guess I should have placed them left of the 3 tanks instead of the (useless) 8 crude storage tanks, as my main crude storage is in barrels (5k at the moment :))

All cracking and solid fuel production is controlled by levels, e.g. heavy cracking if heavy > 1000, light cracking if light > petro, and petro->solid if petro is high but light is low.

Re: Oil logistics?

Posted: Sun May 15, 2016 9:19 am
by Neotix
I like to have all organize and my oil factory is divided on few section

First mayor section is processing Crude Oil. That section have both processes (tier 1 and tier 2). Tier 1 is to produce Heavy Oil (when Lubricant is low).
Crude Oil section
Each refinery have buffer that is filled evenly by circuit network condition (if you want to know how, loot in that topic viewtopic.php?f=8&t=23125)
Input buffer
Second mayor section is Cracking Oil processes.
Cracking section
Light Oil to Petroleum Gas
Heavy Oil to Light Oil
Heavy Oil to Lubricant
Of course there are buffers for Light Oil and Heavy Oil

Final products (Petroleum Gas and Lubricant are stored near liquid station)
Storage

All that is controlled by logic circuits.
Controller
It's simple setup based on SR Latches.
There're conditions to start and stop each process like:
Start Cruce Oil process Tier 1 when ( Heavy Oil < 25% AND Lubricant < 50% ) OR Petroleum Gas < 10%
Stop Cruce Oil process Tier 1 when ( Heavy Oil > 50% OR Lubricant > 75% )
Petroleum Gas < 10% have higher priority (it's emergency condition) so even wneh Stop condition are true and Petroleum gas is still < 10% then process won't stop.

I'm using percent values because they're easier to handle in conditions. I convert values on percentage in controller input.

Re: Oil logistics?

Posted: Sun May 15, 2016 9:35 am
by steinio
Yeah going large...

Could you please post some numbers?
How many Oil refineres to how many chemical plants for cracking?

And how do you transport this many crude oil to this facility???

Looks amazing

Greetings steinio

Re: Oil logistics?

Posted: Sun May 15, 2016 9:38 am
by brunzenstein
Neotix wrote:
I'm using percent values because they're easier to handle in conditions. I convert values on percentage in controller input.
Could you please share your controllers as blueprint?
That way we could learn how to set up our own one - developing on its own the true joy of Factorio by not copying but learning the underlying systematics from the masters by their (easy to follow) example

Re: Oil logistics?

Posted: Sun May 15, 2016 10:57 am
by Neotix
@steinio I'm not using "perfect ratio" because for me fast response and high inertia of the system is more important then efficiency. Besides in 0.13 I will use power switch to disable unused sections.
To transport that amount of fluids I'm using double pipes and pumps. Of course i'm using mod with better pumps but it's only for more compact view. It can be done also with vanilla pumps. About pipes to make it more efficient you can use underground pipes. I used normal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q4axOk0yABlaqgaGeBFAbIgesEnH3/civrmyIy9AO0Aoilvm3
CkZl83js2akBN3Mh7gFHSYl43eEW4kifPawYI4DDnDrHfhRfsGaAiSKdkwWGYM1Vlwjc4Sexmlgi3bqZsvV8d2OEaMeIOA84gB+WO2vxKzsBVubob/dYRwis
Nd7IwIRquvyR5LAep/XllIPOBUWo+2Hgbn1kox06CBw4IpdYBmjpAJxyR9KVRZgBHYZ1LNrY0ZWmpsssP08gP4g+mk5+Yrj8TH+Q+DAyE6ChBlztkUynpliw
Av2BghtYD/dOorKGtW9r2vKHR3bEM+ICFthkivvDV85ym2zpGYHA9880vG+ypd00IKIi/ni9oZzkDiHvdwXLqqWM9w2GELAMSSnBvQwtbWToH+cyhLhWIhr4
gVXU5VvpBBWWDXSzCL857+lZsfU/5wX0AtagE8N4gNHy2N90cCVE3LWLNKfyMbhtq40pSEo0GW+joP32u4GCEoSC9pZCkYm6WKwp6mNwUS/mLPUssJynHW+V
D3t6YMBmiMmH70vh2Bwcxs5hbC50JGkkPn42xvU2UjTL34bnJ0Efud+MtPY8GQ49RJMx1mUosLJB1Et8xpIKrUkxCPMAEebCcj2yrjGgb810YW5OzrmueWFl
S5vu30KhX3dK2p3dYFVBf542AXT/X4Yml6EEOJTIQyPg0OjXUBJfhsbmFVIYYwCW/cWtMJal2dD7gF/u1h7hi7H8NOpwodNXumT+8OeGtrumelp9plXxf8QQ
oZFfPAAA
Image

Values in combinators are not final. You can adjust them as you want.

About tank capacity. I'm using mod with 10k tanks so arithmetic in combinator is Each * 100. For vanilla tanks it will be Each * 25.

Re: Oil logistics?

Posted: Sun May 15, 2016 4:56 pm
by Coffee Daemon
Neotix wrote: It's simple setup........
Wut.

Seriously first time I've dared to go up to (gasp) 5 refineries.

Also my oil network is severely hindered by my desire to defend ALL my outposts with minefields.