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 | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | Tcwin | |||
real(kind=r64), | intent(in) | :: | MCcw | |||
real(kind=r64), | intent(in) | :: | UAHX | |||
real(kind=r64), | intent(in) | :: | MdotCpcw | |||
real(kind=r64), | intent(in) | :: | Teng | |||
real(kind=r64), | intent(in) | :: | TcwoutLast | |||
real(kind=r64), | intent(in) | :: | time |
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.
REAL(r64) FUNCTION FuncDetermineCoolantWaterExitTemp(Tcwin, MCcw, UAHX, MdotCpcw, Teng, TcwoutLast, time)
! FUNCTION INFORMATION:
! AUTHOR B. Griffith
! DATE WRITTEN Feb. 2007
! MODIFIED na
! RE-ENGINEERED na
! PURPOSE OF THIS FUNCTION:
! Calculate coolan water leaving temperaure,
! METHODOLOGY EMPLOYED:
! model is dynamic in that previous condition affects current timestep
! solve ode for coolant water outlet temp using analytical solution
! REFERENCES:
! na
! USE STATEMENTS:
USE DataGlobals , ONLY: MaxEXPArg
IMPLICIT NONE ! Enforce explicit typing of all variables in this routine
! FUNCTION ARGUMENT DEFINITIONS:
REAL(r64), INTENT(IN) :: Tcwin ! hot water inlet temp
REAL(r64), INTENT(IN) :: MCcw ! Fictitious mass and heat capacity of coolant hx
REAL(r64), INTENT(IN) :: UAHX ! Heat exchanger UA
REAL(r64), INTENT(IN) :: MdotCpcw ! mass flow and specific heat of coolant water
REAL(r64), INTENT(IN) :: Teng ! engine mass temperature C
REAL(r64), INTENT(IN) :: TcwoutLast ! coolant water leaving temp at previous time step
REAL(r64), INTENT(IN) :: time ! elapsed time since previous evaluation
! FUNCTION PARAMETER DEFINITIONS:
! na
! INTERFACE BLOCK SPECIFICATIONS:
! na
! DERIVED TYPE DEFINITIONS:
! na
! FUNCTION LOCAL VARIABLE DECLARATIONS:
REAL(r64) :: a
REAL(r64) :: b
a = ( MdotCpcw * Tcwin / MCcw) + ( UAHX * Teng / MCcw )
b = ( ( -1.0d0 * MdotCpcw / MCcw ) + ( -1.0d0 * UAHX / MCcw ) )
IF (b*time < (-1.d0 * MaxEXPArg)) THEN
FuncDetermineCoolantWaterExitTemp = - a / b
ELSE
FuncDetermineCoolantWaterExitTemp = (TcwoutLast + a/b )* exp(b*time) - a / b
ENDIF
RETURN
END FUNCTION FuncDetermineCoolantWaterExitTemp