* Add radiators * Limit heat transfer to fluid heat capacity * Adjust datafield names * Fix material arbitrage * This code has been debugged, and so there are no more bugs. Debugging code is therefore unnecessary * Adjust radiator layer subfloor visibility * Cache CVars * No default Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com> * Like and unsubscribe * Fix CVar caching --------- Co-authored-by: metalgearsloth <31366439+metalgearsloth@users.noreply.github.com>
37 lines
1.0 KiB
C#
37 lines
1.0 KiB
C#
namespace Content.Server.Atmos.Components;
|
|
|
|
[RegisterComponent]
|
|
public sealed class HeatExchangerComponent : Component
|
|
{
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("inlet")]
|
|
public string InletName { get; set; } = "inlet";
|
|
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("outlet")]
|
|
public string OutletName { get; set; } = "outlet";
|
|
|
|
/// <summary>
|
|
/// Pipe conductivity (mols/kPa/sec).
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("conductivity")]
|
|
public float G { get; set; } = 1f;
|
|
|
|
/// <summary>
|
|
/// Thermal convection coefficient (J/degK/sec).
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("convectionCoefficient")]
|
|
public float K { get; set; } = 8000f;
|
|
|
|
/// <summary>
|
|
/// Thermal radiation coefficient. Number of "effective" tiles this
|
|
/// radiator radiates compared to superconductivity tile losses.
|
|
/// </summary>
|
|
[ViewVariables(VVAccess.ReadWrite)]
|
|
[DataField("radiationCoefficient")]
|
|
public float alpha { get; set; } = 400f;
|
|
}
|
|
|