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.
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 FigureMicroCHPZoneGains
! SUBROUTINE INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN July 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Couple equiment skin losses to the Zone Heat Balance
!
! METHODOLOGY EMPLOYED:
! This routine adds up the various skin losses and then
! sets the values in the ZoneIntGain structure
! REFERENCES:
! na
! USE STATEMENTS:
USE DataHeatBalance , ONLY: ZoneIntGain
USE DataGlobals, ONLY: BeginEnvrnFlag
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! INTEGER :: thisZone ! index in Zone structure array
REAL(r64) :: TotalZoneHeatGain
INTEGER :: CHPnum
! INTEGER :: ZoneNum
LOGICAL, SAVE :: MyEnvrnFlag = .TRUE.
IF (NumMicroCHPs == 0) RETURN
IF (BeginEnvrnFlag .AND. MyEnvrnFlag) THEN
FuelSupply%QskinLoss = 0.d0
MicroCHP%A42Model%QdotSkin = 0.d0
MicroCHP%Report%SkinLossConvect = 0.d0
MicroCHP%Report%SkinLossRadiat = 0.d0
MyEnvrnFlag = .FALSE.
END IF
IF( .NOT. BeginEnvrnFlag) MyEnvrnFlag = .TRUE.
DO CHPnum = 1, NumMicroCHPs
TotalZoneHeatGain = FuelSupply(MicroCHP(CHPnum)%FuelSupplyID )%QskinLoss &
+ MicroCHP( CHPnum )%A42Model%QdotSkin
MicroCHP(CHPnum)%A42Model%QdotConvZone = TotalZoneHeatGain * (1 - MicroCHP(CHPnum)%A42Model%RadiativeFraction)
MicroCHP(CHPnum)%Report%SkinLossConvect = MicroCHP(CHPnum)%A42Model%QdotConvZone
MicroCHP(CHPnum)%A42Model%QdotRadZone = TotalZoneHeatGain * MicroCHP(CHPnum)%A42Model%RadiativeFraction
MicroCHP(CHPnum)%Report%SkinLossRadiat = MicroCHP(CHPnum)%A42Model%QdotRadZone
ENDDO
! this routine needs to do something for zone gains during sizing
! IF(DoingSizing)THEN
! ENDIF
RETURN
END SUBROUTINE FigureMicroCHPZoneGains