Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | MixerNum |
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 InitAirMixer(MixerNum)
! SUBROUTINE INFORMATION:
! AUTHOR Richard J. Liesen
! DATE WRITTEN March 2000
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! This subroutine is for initializations of the Mixer Components.
! METHODOLOGY EMPLOYED:
! Uses the status flags to trigger events.
! REFERENCES:
! na
! USE STATEMENTS:
! na
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
Integer, Intent(IN) :: MixerNum
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS
! na
! DERIVED TYPE DEFINITIONS
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
Integer :: InletNode
Integer :: NodeNum
! FLOW:
! Do the following initializations (every time step): This should be the info from
! the previous components outlets or the node data in this section.
!Transfer the node data to MixerCond data structure
DO NodeNum = 1, MixerCond(MixerNum)%NumInletNodes
InletNode = MixerCond(MixerNum)%InletNode(NodeNum)
!Set all of the inlet mass flow variables from the nodes
MixerCond(MixerNum)%InletMassFlowRate(NodeNum) = Node(InletNode)%MassFlowRate
MixerCond(MixerNum)%InletMassFlowRateMaxAvail(NodeNum) = Node(InletNode)%MassFlowRateMaxAvail
MixerCond(MixerNum)%InletMassFlowRateMinAvail(NodeNum) = Node(InletNode)%MassFlowRateMinAvail
!Set all of the inlet state variables from the inlet nodes
MixerCond(MixerNum)%InletTemp(NodeNum) = Node(InletNode)%Temp
MixerCond(MixerNum)%InletHumRat(NodeNum) = Node(InletNode)%HumRat
MixerCond(MixerNum)%InletEnthalpy(NodeNum) = Node(InletNode)%Enthalpy
MixerCond(MixerNum)%InletPressure(NodeNum) = Node(InletNode)%Press
END DO
RETURN
END SUBROUTINE InitAirMixer