added services and fixed ventilation
This commit is contained in:
parent
3d7332644d
commit
8782069a9c
3 changed files with 21 additions and 2 deletions
|
|
@ -44,6 +44,23 @@
|
|||
deploymentconfig: caimira-app
|
||||
sessionAffinity: 'None'
|
||||
type: 'ClusterIP'
|
||||
-
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
metadata:
|
||||
labels:
|
||||
app: caimira-co2-app
|
||||
name: caimira-co2-app
|
||||
spec:
|
||||
ports:
|
||||
- name: 8080-tcp
|
||||
port: 8080
|
||||
protocol: TCP
|
||||
targetPort: 8080
|
||||
selector:
|
||||
deploymentconfig: caimira-co2-app
|
||||
sessionAffinity: 'None'
|
||||
type: 'ClusterIP'
|
||||
-
|
||||
apiVersion: v1
|
||||
kind: Service
|
||||
|
|
|
|||
|
|
@ -1212,7 +1212,9 @@ class CO2ConcentrationModel(_ConcentrationModelBase):
|
|||
return self.CO2_emitters
|
||||
|
||||
def removal_rate(self, time: float) -> _VectorisedFloat:
|
||||
return self.ventilation.air_exchange(self.room, time)
|
||||
# 0.25 is a minimal, always present source of ventilation, due
|
||||
# to the air infiltration from the outside.
|
||||
return self.ventilation.air_exchange(self.room, time) + 0.25
|
||||
|
||||
def min_background_concentration(self) -> _VectorisedFloat:
|
||||
"""
|
||||
|
|
|
|||
|
|
@ -8,7 +8,7 @@ from caimira import models
|
|||
def simple_co2_conc_model():
|
||||
return models.CO2ConcentrationModel(
|
||||
room=models.Room(200, models.PiecewiseConstant((0., 24.), (293,))),
|
||||
ventilation=models.AirChange(models.PeriodicInterval(period=120, duration=120), 0.25),
|
||||
ventilation=models.AirChange(models.PeriodicInterval(period=120, duration=120), 0.),
|
||||
CO2_emitters=models.Population(
|
||||
number=5,
|
||||
presence=models.SpecificInterval((([0., 4.], ))),
|
||||
|
|
|
|||
Loading…
Reference in a new issue