-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathHumidAirExtended.cs
97 lines (77 loc) · 3.66 KB
/
HumidAirExtended.cs
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
namespace SharpProp.Tests;
/// <summary>
/// An example of how to add new properties to the <see cref="HumidAir"/> class.
/// </summary>
/// <seealso cref="IHumidAirExtended"/>
public class HumidAirExtended : HumidAir, IHumidAirExtended
{
private SpecificEntropy? _specificHeatConstVolume;
public SpecificEntropy SpecificHeatConstVolume =>
_specificHeatConstVolume ??= SpecificEntropy
.FromJoulesPerKilogramKelvin(KeyedOutput("CVha"))
.ToUnit(SpecificEntropyUnit.KilojoulePerKilogramKelvin);
public override void Reset()
{
base.Reset();
_specificHeatConstVolume = null;
}
public new IHumidAirExtended WithState(
IKeyedInput<string> firstInput,
IKeyedInput<string> secondInput,
IKeyedInput<string> thirdInput
) => (HumidAirExtended)base.WithState(firstInput, secondInput, thirdInput);
public new IHumidAirExtended DryCoolingTo(
Temperature temperature,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.DryCoolingTo(temperature, pressureDrop);
public new IHumidAirExtended DryCoolingTo(
SpecificEnergy enthalpy,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.DryCoolingTo(enthalpy, pressureDrop);
public new IHumidAirExtended WetCoolingTo(
Temperature temperature,
RelativeHumidity relativeHumidity,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.WetCoolingTo(temperature, relativeHumidity, pressureDrop);
public new IHumidAirExtended WetCoolingTo(
Temperature temperature,
Ratio humidity,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.WetCoolingTo(temperature, humidity, pressureDrop);
public new IHumidAirExtended WetCoolingTo(
SpecificEnergy enthalpy,
RelativeHumidity relativeHumidity,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.WetCoolingTo(enthalpy, relativeHumidity, pressureDrop);
public new IHumidAirExtended WetCoolingTo(
SpecificEnergy enthalpy,
Ratio humidity,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.WetCoolingTo(enthalpy, humidity, pressureDrop);
public new IHumidAirExtended HeatingTo(
Temperature temperature,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.HeatingTo(temperature, pressureDrop);
public new IHumidAirExtended HeatingTo(
SpecificEnergy enthalpy,
Pressure? pressureDrop = null
) => (HumidAirExtended)base.HeatingTo(enthalpy, pressureDrop);
public new IHumidAirExtended HumidificationByWaterTo(RelativeHumidity relativeHumidity) =>
(HumidAirExtended)base.HumidificationByWaterTo(relativeHumidity);
public new IHumidAirExtended HumidificationByWaterTo(Ratio humidity) =>
(HumidAirExtended)base.HumidificationByWaterTo(humidity);
public new IHumidAirExtended HumidificationBySteamTo(RelativeHumidity relativeHumidity) =>
(HumidAirExtended)base.HumidificationBySteamTo(relativeHumidity);
public new IHumidAirExtended HumidificationBySteamTo(Ratio humidity) =>
(HumidAirExtended)base.HumidificationBySteamTo(humidity);
public IHumidAirExtended Mixing(
Ratio firstSpecificMassFlow,
IHumidAirExtended first,
Ratio secondSpecificMassFlow,
IHumidAirExtended second
) =>
(HumidAirExtended)base.Mixing(firstSpecificMassFlow, first, secondSpecificMassFlow, second);
public new IHumidAirExtended Clone() => (HumidAirExtended)base.Clone();
public new IHumidAirExtended Factory() => (HumidAirExtended)base.Factory();
protected override HumidAir CreateInstance() => new HumidAirExtended();
}