Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(CFSFILLGAS), | intent(in) | :: | FG | |||
real(kind=r64), | intent(in) | :: | P | |||
real(kind=r64), | intent(in) | :: | T |
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.
REAL FUNCTION DensityCFSFillGas(FG, P, T)
!
! FUNCTION INFORMATION:
! AUTHOR ASHRAE 1311-RP
! DATE WRITTEN unknown
! MODIFIED na
! RE-ENGINEERED na
!
! PURPOSE OF THIS FUNCTION:
! Returns gas density at P and T, kg/m3
!
! METHODOLOGY EMPLOYED:
! Uses ideal gas relations
!
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
TYPE (CFSFILLGAS), INTENT( IN):: FG ! gas properties
REAL(r64), INTENT( IN):: P ! pressure, Pa
REAL(r64), INTENT( IN):: T ! temperature, K
!
! FUNCTION PARAMETER DEFINITIONS:
! na
!
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
! na
! Flow
DensityCFSFillGas = (P * FG%MHAT)/(UniversalGasConst * MAX(T, 1.d0))
RETURN
END FUNCTION DensityCFSFillGas