Difference between revisions of "Carticket/ElectricalRevision"
From Unofficial Stationeers Wiki
< User:Carticket
(Created page with "== Summary == This is a proposal for a revision to the electrical system, to better model how real life works. I believe the changes to functionality and calculations are rel...") |
|||
Line 1: | Line 1: | ||
== Summary == | == Summary == | ||
− | This is a proposal for a revision to the electrical system, to better model how real life works. I believe the changes to functionality and calculations are relatively minor, with little impact to how parts are used. The proposal, in short, is to model the system not with Watts, but with voltage and amperage (current). To keep realism, but maintain simplicity, the system will either model everything as AC, or as DC | + | This is a proposal for a revision to the electrical system, to better model how real life works. I believe the changes to functionality and calculations are relatively minor, with little impact to how parts are used. The proposal, in short, is to model the system not with Watts, but with voltage and amperage (current). To keep realism, but maintain simplicity, the system will either model everything as AC, or as DC (it is not particularly important which is used), and either high voltage or low voltage. |
== Basic System == | == Basic System == | ||
Line 11: | Line 11: | ||
|- | |- | ||
! scope="row" | Current Source | ! scope="row" | Current Source | ||
− | || * Solid Generator | + | || |
− | + | * Solid Generator | |
− | + | * Solar Panel | |
− | || * APC | + | * Stationary Battery |
− | + | || | |
− | + | * APC | |
+ | * Battery Cell | ||
+ | * Transformer | ||
|- | |- | ||
! scope="row" | Current Sink | ! scope="row" | Current Sink | ||
− | || * Stationary Battery | + | || |
− | + | * Stationary Battery | |
− | + | * APC | |
− | || * Pretty much every device unless there is something added that makes sense as a high voltage appliance. | + | * Transformer |
+ | || | ||
+ | * Pretty much every device unless there is something added that makes sense as a high voltage appliance. | ||
|} | |} | ||
+ | |||
+ | For current sources, they would have a specified current output at either HV or LV. For current sinks, they would have a specified input current. These are not constant, just as watts generator or watts consumed is not currently constant. | ||
+ | |||
+ | For a given voltage, current and power are proportional. This proportion changes between the two voltage levels, though. | ||
+ | |||
+ | == Bridge High Voltage to Low Voltage == | ||
+ | |||
+ | In order to bridge HV and LV networks, you need to drop the voltage. I don't think there is a need to have bidirectionality here (i.e. send power from LV to HV networks). We will treat everything as a step-down transformer (if AC. Power Supply if DC). There are two devices that would currently function as HV to LV bridges: | ||
+ | * Transformer | ||
+ | * APC | ||
+ | |||
+ | Both of these would have an input side that takes in power from a high voltage network, and outputs the same power on the low voltage output. If I propose a 10:1 factor of HV to LV, then if you have 10A of high voltage source capacity connected to the input of the transformer, then that gives you 100A of low voltage source capacity on the output. The transformer would be modeled exactly this way. The APC would also model a low voltage battery source/sink in addition to a transformer. | ||
+ | |||
+ | == When Things Should Blow Up == | ||
+ | |||
+ | Everything would be rated for a current capacity. Standard cable may be rated for 15-20 A (comparable to in-home 120 V AC wiring in real life) [perhaps simplify to 10A for easy calculation]. Heavy cable would be rated for approximately 10 times (or whatever the HV:LV ratio is) the amount that standard is rated for (similar to the input to your in-home breaker panel). The transformer and APC would be rated based on either input or output current, and the HV:LV ratio would determine the other rating. | ||
+ | |||
+ | Exceeding the rated current capacity for a cable or other pass-through device could cause an immediate destruction, or it could be more complex. A complicated model for running outside the rating would include heat generation starting at the limit, which builds over time. The further beyond the rating you go, the faster the heat is generated. Then devices would basically have a meltdown point, passing which, they explode or are destroyed in some way. | ||
+ | |||
+ | Connecting an LV device to an HV network should cause immediate damage (maybe it can be repaired with some sort of repair component and the screwdriver?). Connecting an HV network to an LV network would blow out the LV devices on the network, and if there are LV sources on the network, it would cause a short, draining the maximum current possible from the HV network, likely blowing up some wires, too. | ||
+ | |||
+ | == Battery Model == | ||
+ | |||
+ | Batteries would be rated with a maximum input charge current, and a maximum output discharge current. Their charge capacity would be measured in a unit analogous to Amp*Hours, but may need to be scaled to something reasonable (Amp*Minutes, etc, depending on how batteries end up balanced in this system). The stationary battery, running on HV networks, may have something like a 10 AH capacity, which may match the large battery cell capacity, but given that it is at a voltage 10x higher, it actually supports 10x the runtime for LV devices. | ||
+ | |||
+ | == What Happens When There's Not Enough Power? == | ||
+ | |||
+ | Brownouts. How do we model them? I'm not really sure yet. I would propose that if a total current sink cannot be satisfied, devices brown out. Output devices would shut down temporarily (it would be mean to make the devices lose progress like they do now, so I'd suggest they retain progress on crafting). Devices could be randomly selected every second to shutdown for 10 seconds until the current sink can be satisfied. If demand is still not met, then a second later another device shuts down at random. After the 10 seconds, the device would attempt to power back up. At this point, it could be implemented as the device remaining off if demand can't be met, or it turns back on and another one is randomly shut off. | ||
+ | |||
+ | Transformers would never be selected to be shut off, as they are a simple bridge rather than sinking the current themselves. Batteries would be low priority for charging (using up to as much current capacity as it is rated for until the battery is full), and so they would have stopped charging (and if a stationary battery, APC, or new battery device [UPS], would begin discharging). | ||
+ | |||
+ | == What Happens When There's Too Much Power == | ||
+ | |||
+ | Assume that every source has the capability to sink excess power to ground. Maybe heat up the area to simulate conversion to heat? Not really sure a lot of detail needs to be done here. | ||
+ | |||
+ | == New Objects == | ||
+ | |||
+ | There would be a few new objects to use as a part of the system, optionally. | ||
+ | |||
+ | === Breaker Panel === | ||
+ | |||
+ | The breaker panel would be an LV item that takes in current and provides multiple outputs, each with a breaker (maybe adjustable trip points?). The idea would be you place this box somewhere (probably near a transformer), and it provides, say 5 outputs, each rated for 10A. You feed it with a heavy cable, and it gives you safe outputs to run on standard cable. It would effectively function as an LV-LV bridge, separating the networks. This would give you isolation and protection should something get shorted/bridged to HV directly. | ||
+ | |||
+ | === Kill-A-Watt Meter === | ||
+ | |||
+ | Functions like the real-life device, but not using a trademarked name. Place in line with a wire to monitor voltage (HV vs LV), current flow, and maybe come up with some other stats? Really, it would just be the current monitoring that would be useful. | ||
+ | |||
+ | === UPS === | ||
+ | |||
+ | Basically an APC, but functions as an LV-LV bridge like the breaker panel, while also allowing battery backup for small circuits. |
Revision as of 15:45, 26 December 2017
Contents
Summary
This is a proposal for a revision to the electrical system, to better model how real life works. I believe the changes to functionality and calculations are relatively minor, with little impact to how parts are used. The proposal, in short, is to model the system not with Watts, but with voltage and amperage (current). To keep realism, but maintain simplicity, the system will either model everything as AC, or as DC (it is not particularly important which is used), and either high voltage or low voltage.
Basic System
The system would divide devices into four categories based on two properties: high vs. low voltage, and current source vs. sink.
High Voltage | Low Voltage | |
---|---|---|
Current Source |
|
|
Current Sink |
|
|
For current sources, they would have a specified current output at either HV or LV. For current sinks, they would have a specified input current. These are not constant, just as watts generator or watts consumed is not currently constant.
For a given voltage, current and power are proportional. This proportion changes between the two voltage levels, though.
Bridge High Voltage to Low Voltage
In order to bridge HV and LV networks, you need to drop the voltage. I don't think there is a need to have bidirectionality here (i.e. send power from LV to HV networks). We will treat everything as a step-down transformer (if AC. Power Supply if DC). There are two devices that would currently function as HV to LV bridges:
- Transformer
- APC
Both of these would have an input side that takes in power from a high voltage network, and outputs the same power on the low voltage output. If I propose a 10:1 factor of HV to LV, then if you have 10A of high voltage source capacity connected to the input of the transformer, then that gives you 100A of low voltage source capacity on the output. The transformer would be modeled exactly this way. The APC would also model a low voltage battery source/sink in addition to a transformer.
When Things Should Blow Up
Everything would be rated for a current capacity. Standard cable may be rated for 15-20 A (comparable to in-home 120 V AC wiring in real life) [perhaps simplify to 10A for easy calculation]. Heavy cable would be rated for approximately 10 times (or whatever the HV:LV ratio is) the amount that standard is rated for (similar to the input to your in-home breaker panel). The transformer and APC would be rated based on either input or output current, and the HV:LV ratio would determine the other rating.
Exceeding the rated current capacity for a cable or other pass-through device could cause an immediate destruction, or it could be more complex. A complicated model for running outside the rating would include heat generation starting at the limit, which builds over time. The further beyond the rating you go, the faster the heat is generated. Then devices would basically have a meltdown point, passing which, they explode or are destroyed in some way.
Connecting an LV device to an HV network should cause immediate damage (maybe it can be repaired with some sort of repair component and the screwdriver?). Connecting an HV network to an LV network would blow out the LV devices on the network, and if there are LV sources on the network, it would cause a short, draining the maximum current possible from the HV network, likely blowing up some wires, too.
Battery Model
Batteries would be rated with a maximum input charge current, and a maximum output discharge current. Their charge capacity would be measured in a unit analogous to Amp*Hours, but may need to be scaled to something reasonable (Amp*Minutes, etc, depending on how batteries end up balanced in this system). The stationary battery, running on HV networks, may have something like a 10 AH capacity, which may match the large battery cell capacity, but given that it is at a voltage 10x higher, it actually supports 10x the runtime for LV devices.
What Happens When There's Not Enough Power?
Brownouts. How do we model them? I'm not really sure yet. I would propose that if a total current sink cannot be satisfied, devices brown out. Output devices would shut down temporarily (it would be mean to make the devices lose progress like they do now, so I'd suggest they retain progress on crafting). Devices could be randomly selected every second to shutdown for 10 seconds until the current sink can be satisfied. If demand is still not met, then a second later another device shuts down at random. After the 10 seconds, the device would attempt to power back up. At this point, it could be implemented as the device remaining off if demand can't be met, or it turns back on and another one is randomly shut off.
Transformers would never be selected to be shut off, as they are a simple bridge rather than sinking the current themselves. Batteries would be low priority for charging (using up to as much current capacity as it is rated for until the battery is full), and so they would have stopped charging (and if a stationary battery, APC, or new battery device [UPS], would begin discharging).
What Happens When There's Too Much Power
Assume that every source has the capability to sink excess power to ground. Maybe heat up the area to simulate conversion to heat? Not really sure a lot of detail needs to be done here.
New Objects
There would be a few new objects to use as a part of the system, optionally.
Breaker Panel
The breaker panel would be an LV item that takes in current and provides multiple outputs, each with a breaker (maybe adjustable trip points?). The idea would be you place this box somewhere (probably near a transformer), and it provides, say 5 outputs, each rated for 10A. You feed it with a heavy cable, and it gives you safe outputs to run on standard cable. It would effectively function as an LV-LV bridge, separating the networks. This would give you isolation and protection should something get shorted/bridged to HV directly.
Kill-A-Watt Meter
Functions like the real-life device, but not using a trademarked name. Place in line with a wire to monitor voltage (HV vs LV), current flow, and maybe come up with some other stats? Really, it would just be the current monitoring that would be useful.
UPS
Basically an APC, but functions as an LV-LV bridge like the breaker panel, while also allowing battery backup for small circuits.