Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | SurfNum | |||
real(kind=r64), | intent(out) | :: | HMovInsul | |||
integer, | intent(out) | :: | RoughIndexMovInsul | |||
real(kind=r64), | intent(out) | :: | AbsExt |
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 EvalOutsideMovableInsulation(SurfNum,HMovInsul,RoughIndexMovInsul,AbsExt)
! SUBROUTINE INFORMATION:
! AUTHOR Rick Strand
! DATE WRITTEN March 1998
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine determines whether or not outside movable insulation
! on opaque surfaces 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 OMVINS
! 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
INTEGER, INTENT(OUT) :: RoughIndexMovInsul ! Roughness index of movable insulation
REAL(r64), INTENT(OUT) :: AbsExt ! Absorptivity of outer most layer
REAL(r64) :: MovInsulSchedVal ! Value of the movable insulation schedule for current time
! FLOW:
MovInsulSchedVal = GetCurrentScheduleValue(Surface(SurfNum)%SchedMovInsulExt)
IF (MovInsulSchedVal <= 0.0d0) THEN ! Movable insulation not present at current time
HMovInsul = 0.0d0
AbsExt = 0.0d0
ELSE ! Movable insulation present-->calculate output parameters
! Double check resistance and conductivity to avoid divide by zero problems
IF ((Material(Surface(SurfNum)%MaterialMovInsulExt)%Resistance) <= 0.0d0) THEN
IF ((Material(Surface(SurfNum)%MaterialMovInsulExt)%Conductivity) > 0.0d0) THEN
Material(Surface(SurfNum)%MaterialMovInsulExt)%Resistance = &
Material(Surface(SurfNum)%MaterialMovInsulExt)%Thickness/Material(Surface(SurfNum)%MaterialMovInsulExt)%Conductivity
ELSE
CALL ShowFatalError('EvalOutsideMovableInsulation: No resistance or conductivity found for material ' &
//TRIM(Material(Surface(SurfNum)%MaterialMovInsulExt)%Name))
END IF
END IF
HMovInsul = 1.0d0/( MovInsulSchedVal *Material(Surface(SurfNum)%MaterialMovInsulExt)%Resistance )
RoughIndexMovInsul = Material(Surface(SurfNum)%MaterialMovInsulExt)%Roughness
AbsExt = MAX(0.0d0, 1.0d0-Material(Surface(SurfNum)%MaterialMovInsulExt)%Trans &
-Material(Surface(SurfNum)%MaterialMovInsulExt)%ReflectSolBeamFront)
END IF
RETURN
END SUBROUTINE EvalOutsideMovableInsulation