-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.py
51 lines (44 loc) · 1.21 KB
/
main.py
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
from thermo_hygrometric.utils import plot_bar_chart_comparasion
from thermo_hygrometric import Layer, Wall
import matplotlib.pyplot as plt
plt.style.use(["science", "retro", "no-latex"])
import pandas as pd
gessofibra = Layer(
name="Gessofibra",
thickness=0.015,
thermal_conductivity=0.21,
vapor_permeability=5.0,
density=1150,
specific_heat=1100,
)
xlam = Layer(
name="X-LAM",
thickness=0.096,
thermal_conductivity=0.13,
vapor_permeability=25.0,
density=500.0,
specific_heat=1600,
)
isolante = Layer(
name="Isolante alta densità",
thickness=0.13,
thermal_conductivity=0.043,
vapor_permeability=5.0,
density=190,
specific_heat=2100,
)
intonaco = Layer(
name="Gessofibra",
thickness=0.015,
thermal_conductivity=0.9,
vapor_permeability=20,
density=1800,
specific_heat=1000,
)
wall_3c = Wall(name="3c", layers=[gessofibra, xlam, isolante, intonaco])
wall_3d = Wall(name="3d", layers=[gessofibra, isolante, xlam, intonaco])
print(wall_3c.calc_trasmittanza_termica_periodica())
print(wall_3c.calc_diffusivita_termica())
print(wall_3c.create_dict_valuable_properties())
plot_bar_chart_comparasion([wall_3c, wall_3d], latex=True)
plt.show()