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 | ||
---|---|---|---|---|---|---|
integer, | intent(in) | :: | GeneratorNum | |||
real(kind=r64), | intent(out) | :: | PacAncill |
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 FigureACAncillaries(GeneratorNum, PacAncill)
! SUBROUTINE INFORMATION:
! AUTHOR B Griffith
! DATE WRITTEN March 2006
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS SUBROUTINE:
! Calculate the AC ancillaries to determine Pel
! METHODOLOGY EMPLOYED:
! <description>
! REFERENCES:
! na
! USE STATEMENTS:
! na
USE CurveManager, ONLY : CurveValue
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! SUBROUTINE ARGUMENT DEFINITIONS:
INTEGER, INTENT(IN) :: GeneratorNum
REAL(r64), INTENT(OUT) :: PacAncill
! SUBROUTINE PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! SUBROUTINE LOCAL VARIABLE DECLARATIONS:
! Using lagged values inside a sequential substitution loop
PacAncill = 0.0d0
! sect. 5.9
FuelCell(GeneratorNum)%FCPM%PelancillariesAC = FuelCell(GeneratorNum)%FCPM%ANC0 &
+ FuelCell(GeneratorNum)%FCPM%ANC1 * FuelCell(GeneratorNum)%FCPM%NdotFuel
! sect 6.0
FuelCell(GeneratorNum)%AirSup%PairCompEl = CurveValue(FuelCell(GeneratorNum)%AirSup%BlowerPowerCurveID, &
FuelCell(GeneratorNum)%FCPM%NdotAir)
! sect 7.0
FuelSupply(FuelCell(GeneratorNum)%FuelSupNum)%PfuelCompEl &
= CurveValue(FuelSupply(FuelCell(GeneratorNum)%FuelSupNum)%CompPowerCurveID, FuelCell(GeneratorNum)%FCPM%NdotFuel)
! sect. 8.0
FuelCell(GeneratorNum)%WaterSup%PwaterCompEl = CurveValue(FuelCell(GeneratorNum)%WaterSup%PmpPowerCurveID, &
FuelCell(GeneratorNum)%FCPM%NdotLiqwater )
PacAncill = FuelCell(GeneratorNum)%FCPM%PelancillariesAC &
+ FuelCell(GeneratorNum)%AirSup%PairCompEl &
+ FuelSupply(FuelCell(GeneratorNum)%FuelSupNum)%PfuelCompEl &
+ FuelCell(GeneratorNum)%WaterSup%PwaterCompEl
RETURN
END SUBROUTINE FigureACAncillaries