Class TegSystem
Handles processing logic for the thermo-electric generator (TEG).
Inheritance
Namespace: Content.Server.Power.Generation.Teg
Assembly: Content.Server.dll
Syntax
public sealed class TegSystem : EntitySystem
Remarks
The TEG generates power by exchanging heat between gases flowing through its two sides. The gas flows through a "circulator" entity on each side, which have both an inlet and an outlet port.
The TEG center does HV power output, and must also be connected to an LV wire for the TEG to function.
Unlike in SS13, the TEG actually adjusts gas heat exchange to match the energy demand of the power network. To achieve this, the TEG implements its own ramping logic instead of using the built-in Pow3r ramping. The TEG actually has a maximum output of +n% more than was really generated, which allows Pow3r to draw more power to "signal" that there is more network load. The ramping is also exponential instead of linear like in normal Pow3r. This system does mean a fully-loaded TEG creates +n% power out of thin air, but this is considered acceptable.
Fields
| Improve this Doc View SourceDeviceNetworkCommandSyncData
Device network command to have the TEG output a TegSensorData object for its last statistics.
Declaration
public const string DeviceNetworkCommandSyncData = null
Field Value
Type | Description |
---|---|
System.String |
Methods
| Improve this Doc View SourceInitialize()
Declaration
public override void Initialize()
UpdateCirculatorConnectivity(EntityUid, TegNodeGroup, TegCirculatorComponent)
Declaration
public void UpdateCirculatorConnectivity(EntityUid uid, TegNodeGroup group, TegCirculatorComponent component = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
TegNodeGroup | group | |
TegCirculatorComponent | component |
UpdateGeneratorConnectivity(EntityUid, TegNodeGroup, TegGeneratorComponent)
Declaration
public void UpdateGeneratorConnectivity(EntityUid uid, TegNodeGroup group, TegGeneratorComponent component = null)
Parameters
Type | Name | Description |
---|---|---|
EntityUid | uid | |
TegNodeGroup | group | |
TegGeneratorComponent | component |