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 pathGeneratorPhotovoltaic.cs
More file actions
46 lines (42 loc) · 1.63 KB
/
GeneratorPhotovoltaic.cs
File metadata and controls
46 lines (42 loc) · 1.63 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
45
46
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
namespace IDFObjects
{
[Serializable]
public class GeneratorPhotovoltaic
{
public string Name;
public string Type = "Generator:Photovoltaic";
public string bSurfaceName;
public string PhotovoltaicPerformanceObjectType;
public PhotovoltaicPerformanceSimple pperformance;
public string HeatTransferIntegrationMode = "Decoupled";
public float GeneratorPowerOutput = 50000;
public string Schedule;
public float RatedThermalElectricalPowerRatio = 0;
public GeneratorPhotovoltaic() { }
public GeneratorPhotovoltaic(Surface Surface, PhotovoltaicPerformanceSimple Performance, string schedule)
{
Name = "PV on " + Surface.Name;
bSurfaceName = Surface.Name;
pperformance = Performance;
PhotovoltaicPerformanceObjectType = Performance.Type;
Schedule = schedule;
}
public List<string> WriteInfo()
{
return new List<string>()
{
"Generator:Photovoltaic,",
Utility.IDFLineFormatter(Name, "Name"),
Utility.IDFLineFormatter(bSurfaceName, "Surface Name"),
Utility.IDFLineFormatter(PhotovoltaicPerformanceObjectType, "Photovoltaic Performance Object Type"),
Utility.IDFLineFormatter(pperformance.Name, "Module Performance Name"),
Utility.IDFLastLineFormatter(HeatTransferIntegrationMode, "Heat Transfer Integration Mode")
};
}
}
}