Electricity: Three Phase AC & Grid Distribution

This is the place to request new mods or give ideas about what could be done.
Post Reply
Technuts
Manual Inserter
Manual Inserter
Posts: 1
Joined: Tue Nov 28, 2023 10:13 pm
Contact:

Electricity: Three Phase AC & Grid Distribution

Post by Technuts »

Hi, new here and new to modding Factorio/in general, so maybe there's an idea here or maybe there isn't!

Preface - I've looked through existing mods, fluidic power, transformer/high voltage/low voltage offerings and didn't see the exact electricity overhaul I've been thinking about.

I've looked at the prototype & API documentation and had a mess around with Lua to start familiarisation so I have a very patchy understanding, but wish to see if my ideas have any feasibility.


So, the idea.

- AC power (sinusoid) rather than the mysterious perfect supply in vanilla.
- Include frequency matching requirements (with turbine damage/blackouts/factory damage if ignored)
- Maybe include grid isolation (circuit breakers) to handle factory power-up from a blackout (prevention of turbine stall/frequency drop from factory start-up)
- Maybe consider current limits (and damage if current in power poles are exceeded)

My thinking is to create three fluids (phases) (labeled a, b, & c) and have power plants attempt to generate a contribution to the fluid flow rate (the current) in each of those phases. Each phase would have an accompanying scalar describing the phase angle, and the summation of these can interfere (constructively or destructively). This data would ideally be in the electrical network GUI and you could graph the phase amplitudes.

Some things I've been thinking that might be show-stoppers:
- the need for 'negative fluids' or some phase-cancelling maths to determine resultant amplitude.
- maybe fluids aren't the way to go, and instead storing local variables could work?
- the local maths on turbine inertia, frequency etc. affecting UPS.
- the graphing GUI and how to manipulate fluids into the electric grid readout.


There are probably a lot more but any thoughts/input/advice from experienced modders/community members would be very appreciated! Would be awesome to have a real-grid style power distribution system where real consequences of adding new turbines or not managing your grid could exist!

Thanks in advance and thank you for reading.

A

Makka77
Burner Inserter
Burner Inserter
Posts: 10
Joined: Tue May 24, 2022 10:48 am
Contact:

Re: Electricity: Three Phase AC & Grid Distribution

Post by Makka77 »

As an electrician I approve! +1

But also, what sort of masochist are you?x

KillingTimeItself
Manual Inserter
Manual Inserter
Posts: 2
Joined: Sat Aug 26, 2023 8:43 pm
Contact:

Re: Electricity: Three Phase AC & Grid Distribution

Post by KillingTimeItself »

i like the idea of a more complex electric grid that more closely resembles the real electric grid, would certainly be a neat addition, especially for certain things. Though fluidic power scares me, thankfully the actual power flow through real wires is interesting at best. And incredibly boring at worst. Transmission inefficiency would be a cool addition though. Lends some actual meat to the idea of local generation when transmitting 5km loses 20% of the power produced or whatever the realistic value is.

There might be a way to do this without fluidic power but who knows. (personally i just dont like the idea of using fluid mechanics for power, it's neat, but not having to do them is a bonus imo) stuff like reactive power would be cool as well.

Ultimately if you do end up creating this mod i will absolutely play it at some point. Base game electricity is just completely set and forget apart from power cuts, which is kinda boring. Especially given how easy it is to just build monolithic power plants and call it a day.

unfortunately im not intimately familiar with coding or electricity so im not of much use :)

Post Reply

Return to “Ideas and Requests For Mods”