Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | H | |||
real(kind=r64), | intent(in) | :: | dW | |||
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 PsyTdbFnHW(H,dW,calledfrom) RESULT(TDB)
! FUNCTION INFORMATION:
! AUTHOR J. C. VanderZee
! DATE WRITTEN Feb. 1994
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! This function provides air temperature from enthalpy and humidity ratio.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! ASHRAE HANDBOOK OF FUNDAMENTALS, 1972, P100, EQN 32
! by inverting function PsyHFnTdbW
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), intent(in) :: H ! enthalpy {J/kg}
REAL(r64), intent(in) :: dW ! humidity ratio
character(len=*), intent(in), optional :: calledfrom ! routine this function was called from (error messages) !unused1208
REAL(r64) :: TDB ! result=> dry-bulb temperature {C}
! 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)
TDB = (H - 2.50094d6 * W)/(1.00484d3 + 1.85895d3*W)
RETURN
END FUNCTION PsyTdbFnHW