-
Notifications
You must be signed in to change notification settings - Fork 0
/
Material.cs
123 lines (115 loc) · 3.5 KB
/
Material.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
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;
using System.Drawing;
namespace WallSectionWidget
{
public class Material
{
public double Conductivity;
public double VapourResistivity;
public double Density;
public double HeatCapacity;
public string Name;
public MaterialVisualiserSetting VisualiserSetting;
public GHIOParam<Material> GHIOParam => new GHIOParam<Material>(this);
public static Material Air
{
get
{
return new Material
{
Conductivity = 0.025,
VapourResistivity = 1.0,
Density = 1.2,
HeatCapacity = 1000,
Name = "Ordinary air",
VisualiserSetting = new MaterialVisualiserSetting {
HatchPatternIndex = -1,
Color = Color.White,
},
};
}
}
public static Material Concrete
{
get
{
return new Material
{
Conductivity = 2.0,
VapourResistivity = 80,
Density = 2400,
HeatCapacity = 900,
Name = "Concrete",
VisualiserSetting = new MaterialVisualiserSetting
{
HatchPatternIndex = 1,
HatchPatternRotation = Math.PI * 0.25,
Color = Color.DarkGray,
},
};
}
}
public static Material Cork
{
get
{
return new Material
{
Conductivity = 0.05,
VapourResistivity = 5,
Density = 160,
HeatCapacity = 1800,
Name = "Cork",
VisualiserSetting = new MaterialVisualiserSetting
{
HatchPatternIndex = 5,
Color = Color.Bisque,
},
};
}
}
public static Material Lamination
{
get
{
return new Material
{
Conductivity = 0.13,
VapourResistivity = 30,
Density = 500,
HeatCapacity = 1600,
Name = "Lamination",
VisualiserSetting = new MaterialVisualiserSetting
{
HatchPatternIndex = 2,
HatchPatternRotation = Math.PI * 0.5,
Color = Color.BurlyWood,
},
};
}
}
public static Material VapourRetarder
{
get
{
return new Material
{
Conductivity = 0.25,
VapourResistivity = 70000,
Density = 1230,
HeatCapacity = 10000,
Name = "Vapour retarder",
VisualiserSetting = new MaterialVisualiserSetting
{
HatchPatternIndex = 0,
Color = Color.DodgerBlue,
},
};
}
}
}
}