Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | w | |||
real(kind=r64), | intent(in) | :: | T | |||
character(len=*), | intent(in), | optional | :: | calledfrom |
Nodes of different colours represent the following:
Solid arrows point from a procedure to one which it calls. Dashed arrows point from an interface to procedures which implement that interface. This could include the module procedures in a generic interface or the implementation in a submodule of an interface in a parent module. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
function PsyHgAirFnWTdb(w,T,calledfrom) result(hg)
! FUNCTION INFORMATION:
! AUTHOR Richard Liesen
! DATE WRITTEN May, 2001
! MODIFIED June, 2002
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function provides latent energy of the moisture as a gas in the air as
! function of humidity ratio and temperature.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! see ASHRAE Fundamentals Psychrometric Chapter
! USAGE: hg = PsyHgAirFnWTdb(w,T)
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), intent(in) :: w ! humidity ratio {kgWater/kgDryAir} !unused1208
REAL(r64), intent(in) :: T ! input temperature {Celsius}
character(len=*), intent(in), optional :: calledfrom ! routine this function was called from (error messages) !unused1208
REAL(r64) :: hg ! enthalpy of the gas {units?}
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
! This formulation currently does not use W since it returns results that are in J/kg and the
! amount of energy is on a per unit of moisture basis.
hg = 2500940.0d0 + 1858.95d0*T
return
end function PsyHgAirFnWTdb