Adding docstring for discharge_coefficient property of WindowOpening; raise NotImplementedError

This commit is contained in:
Nicolas Mounet 2020-12-02 12:10:14 +01:00
parent 8f43b137d9
commit 5c51621034

View file

@ -203,10 +203,12 @@ class WindowOpening(Ventilation):
@property
def discharge_coefficient(self) -> float:
#: Discharge coefficient (or cd_b): what portion effective area is
#: used to exchange air (0 <= discharge_coefficient <= 1).
#: To be implemented in subclasses.
return None
"""
Discharge coefficient (or cd_b): what portion effective area is
used to exchange air (0 <= discharge_coefficient <= 1).
To be implemented in subclasses.
"""
raise NotImplementedError("Unknown discharge coefficient")
def transition_times(self) -> typing.Set[float]:
transitions = super().transition_times()