Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | Tdb | |||
real(kind=r64), | intent(in) | :: | dW | |||
real(kind=r64), | intent(in) | :: | Pb | |||
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 PsyRhovFnTdbWPb(Tdb,dW,PB,calledfrom) RESULT(RhoV)
! FUNCTION INFORMATION:
! AUTHOR R. J. Liesen
! DATE WRITTEN July 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function provides the Vapor Density in air as a
! function of dry bulb temperature, Humidity Ratio, and Barometric Pressure.
! METHODOLOGY EMPLOYED:
! ideal gas law
! Universal gas const for water vapor 461.52 J/(kg K)
! REFERENCES:
! ASHRAE handbook 1993 Fundamentals,
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), intent(in) :: Tdb ! dry-bulb temperature {C}
REAL(r64), intent(in) :: dW ! humidity ratio
REAL(r64), intent(in) :: Pb ! Barometric Pressure {Pascals}
character(len=*), intent(in), optional :: calledfrom ! routine this function was called from (error messages) !unused1208
REAL(r64) :: RhoV ! Vapor density in air
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
REAL(r64) W ! humidity ratio
W=MAX(dW,1.0d-5)
RhoV =W*PB/(461.52d0*(Tdb+KelvinConv)*(W+0.62198d0))
return
end function PsyRhovFnTdbWPb