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 | ||
---|---|---|---|---|---|---|
logical, | intent(in) | :: | DoReportBecauseError |
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.
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 ReportCTFs(DoReportBecauseError)
! SUBROUTINE INFORMATION:
! AUTHOR Linda K. Lawrie
! DATE WRITTEN July 1999
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This routine gives a detailed report to the user about
! the conduction transfer functions and other thermal data
! of each construction.
! METHODOLOGY EMPLOYED:
! na
! REFERENCES:
! na
! USE STATEMENTS:
USE General, ONLY: ScanForReports
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
LOGICAL, INTENT(IN) :: DoReportBecauseError
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! CHARACTER(len=12),DIMENSION(6) :: Roughness = (/'VeryRough ','Rough ','MediumRough ', &
! 'MediumSmooth','Smooth ','VerySmooth '/)
LOGICAL :: DoReport
INTEGER ThisNum
INTEGER Layer
INTEGER I
CALL ScanForReports('Constructions',DoReport,'Constructions')
IF (DoReport .or. DoReportBecauseError) THEN
!
! Write Descriptions
Write(OutputFileInits,'(A)') '! <Construction CTF>,Construction Name,Index,#Layers,#CTFs,Time Step {hours},'// &
'ThermalConductance {w/m2-K},'// &
'OuterThermalAbsorptance,InnerThermalAbsorptance,OuterSolarAbsorptance,'// &
'InnerSolarAbsorptance,Roughness'
Write(OutputFileInits,'(A)') '! <Material CTF Summary>,Material Name,Thickness {m},Conductivity {w/m-K},Density {kg/m3},'// &
'Specific Heat {J/kg-K},ThermalResistance {m2-K/w}'
Write(OutputFileInits,'(A)') '! <Material:Air>,Material Name,ThermalResistance {m2-K/w}'
Write(OutputFileInits,'(A)') '! <CTF>,Time,Outside,Cross,Inside,Flux (except final one)'
DO ThisNum=1,TotConstructs
IF (Construct(ThisNum)%TypeIsWindow) CYCLE
Write(OutputFileInits,700) TRIM(Construct(ThisNum)%Name),ThisNum, Construct(ThisNum)%TotLayers, &
Construct(ThisNum)%NumCTFTerms, &
Construct(ThisNum)%CTFTimeStep, &
Construct(ThisNum)%UValue,Construct(ThisNum)%OutsideAbsorpThermal, &
Construct(ThisNum)%InsideAbsorpThermal,Construct(ThisNum)%OutsideAbsorpSolar, &
Construct(ThisNum)%InsideAbsorpSolar, &
TRIM(DisplayMaterialRoughness(Construct(ThisNum)%OutsideRoughness))
!
700 FORMAT(' Construction CTF,',A,3(',',I4),',',F8.3,',',G15.4,4(',',F8.3),',',A)
701 FORMAT(' Material CTF Summary,',A,',',F8.4,',',F14.3,',',F11.3,',',F13.3,',',G12.4)
702 FORMAT(' Material:Air,',A,',',G12.4)
703 FORMAT(' CTF,',I4,4(',',G20.8))
704 FORMAT(' CTF,',I4,3(',',G20.8))
705 FORMAT(' QTF,',I4,2(',',G20.8))
706 FORMAT(' Source/Sink Loc Internal Temp QTF,',I4,3(',',G20.8))
707 FORMAT(' User Loc Internal Temp QTF,',I4,3(',',G20.8))
DO I=1,Construct(ThisNum)%TotLayers
Layer=Construct(ThisNum)%LayerPoint(I)
SELECT CASE (Material(Layer)%Group)
CASE (Air)
Write(OutputFileInits,702) TRIM(Material(Layer)%Name),Material(Layer)%Resistance
CASE DEFAULT
Write(OutputFileInits,701) TRIM(Material(Layer)%Name),Material(Layer)%Thickness,Material(Layer)%Conductivity, &
Material(Layer)%Density,Material(Layer)%SpecHeat,Material(Layer)%Resistance
END SELECT
ENDDO
DO I=Construct(ThisNum)%NumCTFTerms,0,-1
IF (I /= 0) THEN
Write(OutputFileInits,703) I,Construct(ThisNum)%CTFOutside(I),Construct(ThisNum)%CTFCross(I), &
Construct(ThisNum)%CTFInside(I),Construct(ThisNum)%CTFFlux(I)
ELSE
Write(OutputFileInits,704) I,Construct(ThisNum)%CTFOutside(I),Construct(ThisNum)%CTFCross(I), &
Construct(ThisNum)%CTFInside(I)
ENDIF
ENDDO
IF (Construct(ThisNum)%SourceSinkPresent) THEN
! QTFs...
DO I=Construct(ThisNum)%NumCTFTerms,0,-1
WRITE(OutputFileInits,705) I,Construct(ThisNum)%CTFSourceOut(I),Construct(ThisNum)%CTFSourceIn(I)
END DO
! QTFs for source/sink location temperature calculation...
DO I=Construct(ThisNum)%NumCTFTerms,0,-1
WRITE(OutputFileInits,706) I,Construct(ThisNum)%CTFTSourceOut(I), &
Construct(ThisNum)%CTFTSourceIn(I), &
Construct(ThisNum)%CTFTSourceQ(I)
END DO
IF (Construct(ThisNum)%TempAfterLayer /= 0) THEN
! QTFs for user specified interior temperature calculation...
DO I=Construct(ThisNum)%NumCTFTerms,0,-1
WRITE(OutputFileInits,707) I,Construct(ThisNum)%CTFTUserOut(I), &
Construct(ThisNum)%CTFTUserIn(I), &
Construct(ThisNum)%CTFTUserSource(I)
END DO
END IF
END IF
ENDDO
ENDIF
RETURN
END SUBROUTINE ReportCTFs