Source code for twin4build.utils.unit_converters.to_degK_from_degC

# Local application imports
from twin4build.systems.saref4syst.system import System


[docs] class ToDegKFromDegC(System): """ System for converting temperature from Celsius to Kelvin. Mathematical Formulation: .. math:: T_{K} = T_{C} + 273.15 where: - :math:`T_{K}` is temperature in Kelvin - :math:`T_{C}` is temperature in Celsius """ def __init__(self): super().__init__() self.input = {"C": None} self.output = {"K": None}
[docs] def initialize(self, start_time=None, end_time=None, step_size=None, model=None): pass
[docs] def do_step(self, secondTime=None, dateTime=None, step_size=None): self.output["K"].set(self.input["C"] + 273.15)