Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | WaterThermalTankNum | |||
integer, | intent(in) | :: | ControlLocationType |
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 FindStratifiedTankSensedTemp(WaterThermalTankNum,ControlLocationType) RESULT (SensedTemp)
! FUNCTION INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN March 2012
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! find tank temperature depending on how sensed
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: WaterThermalTankNum
INTEGER, INTENT(IN) :: ControlLocationType
REAL(r64) :: SensedTemp
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
INTEGER :: StratNodeToUse = 0
SELECT CASE (ControlLocationType)
CASE (Heater1HPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%HeaterNode1
CASE (Heater2HPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%HeaterNode2
CASE (SourceInletHPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%SourceInletStratNode
CASE (SourceOutletHPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%SourceOutletStratNode
CASE (UseInletHPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%UseInletStratNode
CASE (UseOutletHPWHControl)
StratNodeToUse = WaterThermalTank(WaterThermalTankNum)%UseOutletStratNode
END SELECT
SensedTemp = WaterThermalTank(WaterThermalTankNum)%Node(StratNodeToUse)%Temp
RETURN
END FUNCTION FindStratifiedTankSensedTemp