Search found 6 matches

by algogenetienne
Wed Sep 26, 2018 12:19 pm
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Re: Friday Facts #260 - New fluid system

That's the graph theory approach. Based on full physics, I'd expect resistance and inertia to at least put them closer together, though I'm being too lazy to do the math right now. I think the full physics model would be a pressure/flow one, but it is very far from what we have in Factorio. If we a...
by algogenetienne
Sat Sep 22, 2018 10:49 am
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Re: Friday Facts #260 - New fluid system

I somehow missed this FFF so only replying now. 12 pages is a lot to digest, maybe my idea has already been posted and discussed but anyway I'll describe it. The pipe system consists of sources and sinks, basically. Fluids come from somewhere and get consumed anywhere else. The pipe system rarely c...
by algogenetienne
Thu Sep 20, 2018 1:12 pm
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Re: Mathematical Optimization for a fluid system

So I have run little test using scilab code I have. I have a pipe network of 22 edges and 16 nodes and I want to find the optimal flow from scratch. I consider that I have converged when my gradient is smaller than 0.01 (no need to be excessively precise) I run on one thread for some reason, my scil...
by algogenetienne
Thu Sep 20, 2018 12:00 pm
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Re: Mathematical Optimization for a fluid system

While this sounds simple I think it is completely impractical computation wise. First the matrix A will often be huge. A simple oil refinery easily has 100 nodes in the graph. For a nuclear power plant I wouldn't be surprised to see 1000-100000 nodes. So doing even one newton iteration on this will...
by algogenetienne
Wed Sep 19, 2018 9:39 pm
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Re: Mathematical Optimization for a fluid system

This is pretty elegant. If you combine the methods here with the physical flow parameters in my implementation (like limiting flow based on maximum pressure/pipe area and linking resistance to the major losses), it might be a very effective implementation. Having the fluid physically localized in t...
by algogenetienne
Wed Sep 19, 2018 7:39 pm
Forum: News
Topic: Friday Facts #260 - New fluid system
Replies: 292
Views: 115128

Mathematical Optimization for a fluid system

Hi I am into mathematical optimization and I always feel a little sad when I see an engineer come up with a complicated algorithm for a problem to which a whole mathematical field is dedicated. There is a huge amount of time lost because of the lack of communication between engineers and researchers...

Go to advanced search