Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | SurfNum | |||
real(kind=r64), | intent(out) | :: | HMovInsul | |||
real(kind=r64), | intent(out) | :: | AbsInt |
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 EvalInsideMovableInsulation(SurfNum,HMovInsul,AbsInt)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN March 1998
! MODIFIED Nov. 1999, FW, add AbsInt; change MaterialMovInsulExt to
! MaterialMovInsulInt
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine determines whether or not inside movable insulation
! is present at the current time.
! METHODOLOGY EMPLOYED:
! The SurfNum is passed in and then the rest of the parameters are set
! if movable insulation is present. If it is not present, then
! HMovInsul is set to zero.
! REFERENCES:
! (I)BLAST legacy routine IMVINS
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
INTEGER, INTENT(IN) :: SurfNum ! DO loop counter for surfaces
REAL(r64), INTENT(OUT) :: HMovInsul ! Resistance or "h" value of movable insulation
REAL(r64), INTENT(OUT) :: AbsInt ! Inside solar absorptance of movable insulation
REAL(r64) :: MovInsulSchedVal ! Value of the movable insulation schedule for current time
! FLOW:
MovInsulSchedVal = GetCurrentScheduleValue(Surface(SurfNum)%SchedMovInsulInt)
IF (MovInsulSchedVal <= 0.0d0) THEN ! Movable insulation not present at current time
HMovInsul = 0.0d0
AbsInt = 0.0d0
ELSE ! Movable insulation present-->calculate output parameters
IF ((Material(Surface(SurfNum)%MaterialMovInsulInt)%Resistance) <= 0.0d0) THEN
IF (Material(Surface(SurfNum)%MaterialMovInsulInt)%Conductivity > 0.0d0 .and. &
Material(Surface(SurfNum)%MaterialMovInsulInt)%Thickness > 0.0d0) THEN
Material(Surface(SurfNum)%MaterialMovInsulInt)%Resistance= &
Material(Surface(SurfNum)%MaterialMovInsulInt)%Thickness/Material(Surface(SurfNum)%MaterialMovInsulExt)%Conductivity
ELSE
CALL ShowFatalError('EvalInsideMovableInsulation: No resistance found for material ' &
//TRIM(Material(Surface(SurfNum)%MaterialMovInsulInt)%Name))
ENDIF
ENDIF
HMovInsul = 1.0d0/(MovInsulSchedVal*Material(Surface(SurfNum)%MaterialMovInsulInt)%Resistance)
AbsInt = Material(Surface(SurfNum)%MaterialMovInsulInt)%AbsorpSolar
END IF
RETURN
END SUBROUTINE EvalInsideMovableInsulation