GetTKelvinFromTCelsius Function

public function GetTKelvinFromTCelsius(TCelsius) result(TKelvin)

Arguments

Type IntentOptional AttributesName
real, intent(in) :: TCelsius

Return Value real


Contents


Source Code

  function GetTKelvinFromTCelsius(TCelsius) result(TKelvin)
    !+ Utility function to convert temperature to Kelvin (K)
    !+ given temperature in degree Celsius (°C).
    !+ Reference: ASHRAE Handbook - Fundamentals (2017) ch. 1 section 3

    real, intent(in)  :: TCelsius
      !+ Temperature in degree Celsius
    real              :: TKelvin
      !+ Tempearatyre in Kelvin

    TKelvin = TCelsius + ZERO_CELSIUS_AS_KELVIN
  end function GetTKelvinFromTCelsius