Adding hepa and hvac vectorisation tests
This commit is contained in:
parent
87e52ddf66
commit
dc6ea75058
1 changed files with 22 additions and 0 deletions
|
|
@ -92,6 +92,28 @@ def test_sliding_window(baseline_slidingwindow):
|
|||
assert baseline_slidingwindow.discharge_coefficient == 0.6
|
||||
|
||||
|
||||
def test_hvac_mechanical_vectorisation():
|
||||
room = models.Room(volume=50)
|
||||
interval = models.SpecificInterval(((0, 4), (5, 9)))
|
||||
t = 0.5
|
||||
q_air_mech = np.array([250., 500.])
|
||||
v = models.HVACMechanical(interval,q_air_mech)
|
||||
assert isinstance(v.air_exchange(room, t), np.ndarray)
|
||||
npt.assert_array_equal(v.air_exchange(room, t),
|
||||
np.array([250/room.volume, 500/room.volume]))
|
||||
|
||||
|
||||
def test_hepa_filter_vectorisation():
|
||||
room = models.Room(volume=50)
|
||||
interval = models.SpecificInterval(((0, 4), (5, 9)))
|
||||
t = 0.5
|
||||
q_air_mech = np.array([250., 500.])
|
||||
v = models.HEPAFilter(interval,q_air_mech)
|
||||
assert isinstance(v.air_exchange(room, t), np.ndarray)
|
||||
npt.assert_array_equal(v.air_exchange(room, t),
|
||||
np.array([250/room.volume, 500/room.volume]))
|
||||
|
||||
|
||||
def test_multiple(baseline_slidingwindow, baseline_hingedwindow):
|
||||
v = models.MultipleVentilation([baseline_hingedwindow, baseline_slidingwindow])
|
||||
room = models.Room(75)
|
||||
|
|
|
|||
Loading…
Reference in a new issue