Nodes of different colours represent the following:
Solid arrows point from a parent (sub)module to the submodule which is descended from it. Dashed arrows point from a module being used to the module or program unit using it. Where possible, edges connecting nodes are given different colours to make them easier to distinguish in large graphs.
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
character(len=*), | intent(in) | :: | VRFType | |||
integer, | intent(in) | :: | VRFTypeNum | |||
character(len=*), | intent(in) | :: | VRFName | |||
integer, | intent(inout) | :: | VRFNum | |||
logical, | intent(in) | :: | FirstHVACIteration | |||
logical, | intent(inout) | :: | InitLoopEquip | |||
real(kind=r64), | intent(in) | :: | MyLoad | |||
real(kind=r64), | intent(out) | :: | MaxCap | |||
real(kind=r64), | intent(out) | :: | MinCap | |||
real(kind=r64), | intent(out) | :: | OptCap | |||
integer, | intent(in) | :: | LoopNum |
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.
SUBROUTINE SimVRFCondenserPlant(VRFType, VRFTypeNum, VRFName, VRFNum, FirstHVACIteration, &
InitLoopEquip, MyLoad, MaxCap, MinCap, OptCap, LoopNum)
! SUBROUTINE INFORMATION:
! AUTHOR Richard Raustad
! DATE WRITTEN May 2012
! MODIFIED
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine manages water-source VRF condenser
! METHODOLOGY EMPLOYED:
! REFERENCES:
! USE STATEMENTS:
USE InputProcessor, ONLY: FindItemInList
USE PlantUtilities, ONLY:UpdateChillerComponentCondenserSide
USE DataEnvironment
USE General, ONLY: TrimSigDigits
USE DataPlant, ONLY: TypeOf_HPWaterEFCooling, TypeOf_HPWaterEFHeating
IMPLICIT NONE
! SUBROUTINE ARGUMENT DEFINITIONS:
CHARACTER(len=*), INTENT(IN) :: VRFType ! Type of VRF
INTEGER , INTENT(IN) :: VRFTypeNum ! Type of VRF in Plant equipment
INTEGER , INTENT(IN) :: LoopNum ! The calling loop number
CHARACTER(len=*), INTENT(IN) :: VRFName ! User Specified Name of VRF
INTEGER, INTENT(INOUT) :: VRFNum ! Index of Equipment
LOGICAL, INTENT(IN) :: FirstHVACIteration ! Flag for first time through HVAC simulation
LOGICAL, INTENT(INOUT) :: InitLoopEquip ! If not zero, calculate the max load for operating conditions
REAL(r64), INTENT(IN) :: MyLoad ! Loop demand component will meet
REAL(r64), INTENT(OUT) :: MinCap ! Minimum operating capacity of GSHP [W]
REAL(r64), INTENT(OUT) :: MaxCap ! Maximum operating capacity of GSHP [W]
REAL(r64), INTENT(OUT) :: OptCap ! Optimal operating capacity of GSHP [W]
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! na
!Get input from VRF
IF (GetVRFInputFlag) THEN !First time subroutine has been entered
CALL GetVRFInput
GetVRFInputFlag=.false.
END IF
IF (InitLoopEquip) THEN
VRFNum = FindItemInList( VRFName, VRF%Name, NumVRFCond )
IF (VRFNum /= 0) THEN ! if 0, fall through to next
SELECT CASE (VRFTypeNum)
CASE (TypeOf_HeatPumpVRF)
MinCap = 0.0d0
MaxCap = VRF(VRFNum)%HeatingCapacity ! should be greater than cooling capacity
OptCap = VRF(VRFNum)%HeatingCapacity ! connects to single loop, how to switch between cooling/heating capacity?
CASE DEFAULT
CALL ShowFatalError('SimVRFCondenserPlant: Module called with incorrect VRFType='//TRIM(VRFType))
END SELECT
CALL SizeVRFCondenser(VRFNum)
Return
ENDIF
END IF
! Calculate Demand on heat pump
TypeOfEquip: SELECT CASE (VRFTypeNum)
CASE (TypeOf_HeatPumpVRF)
IF (VRFNum /= 0) THEN
IF (LoopNum == VRF(VRFNum)%SourceLoopNum) THEN ! condenser loop
CALL UpdateChillerComponentCondenserSide(VRF(VRFNum)%SourceLoopNum, &
VRF(VRFNum)%SourceLoopSideNum, &
TypeOf_HeatPumpVRF, &
VRF(VRFNum)%CondenserNodeNum, &
VRF(VRFNum)%CondenserOutletNodeNum, &
VRF(VRFNum)%QCondenser, &
VRF(VRFNum)%CondenserInletTemp, &
VRF(VRFNum)%CondenserSideOutletTemp, &
VRF(VRFNum)%WaterCondenserMassFlow, &
FirstHVACIteration)
ELSE
CALL ShowFatalError ('SimVRFCondenserPlant:: Invalid loop connection '// &
TRIM(cVRFTypes(VRF_HeatPump))//', Requested Unit='//TRIM(VRFName))
ENDIF
ELSE
CALL ShowFatalError ('SimVRFCondenserPlant:: Invalid '//TRIM(cVRFTypes(VRF_HeatPump))// &
', Requested Unit='//TRIM(VRFName))
ENDIF
CASE DEFAULT
CALL ShowFatalError('SimVRFCondenserPlant: Module called with incorrect VRFType='//TRIM(VRFTYpe))
END SELECT TypeOfEquip
RETURN
END SUBROUTINE SimVRFCondenserPlant