This repository was archived by the owner on Apr 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathBoiler.cs
More file actions
44 lines (40 loc) · 1.38 KB
/
Boiler.cs
File metadata and controls
44 lines (40 loc) · 1.38 KB
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
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IDFObjects
{
[Serializable]
public class Boiler
{
public string name;
public float boilerEfficiency;
public string fuelType;
public Boiler() { }
public Boiler(float efficiency, string fuelType)
{
name = "Main Boiler";
boilerEfficiency = efficiency;
this.fuelType = fuelType;
}
public List<String> writeInfo()
{
List<string> info = new List<string>() {
"HVACTemplate:Plant:Boiler,",
name + ", !-Name",
"HotWaterBoiler, !-Boiler Type",
"autosize, !-Capacity { W}",
boilerEfficiency + ", !-Efficiency",
Utility.IDFLineFormatter(fuelType, "Fuel Type"),
"1, !-Priority",
"1.2, !-Sizing Factor",
"0.1, !-Minimum Part Load Ratio",
"1.1, !-Maximum Part Load Ratio",
"0.9, !-Optimum Part Load Ratio",
"99.9; !-Water Outlet Upper Temperature Limit { C}"
};
return info;
}
}
}