Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
real(kind=r64), | intent(in) | :: | tmean | |||
real(kind=r64), | intent(in) | :: | mwght | |||
real(kind=r64), | intent(in) | :: | pressure | |||
real(kind=r64), | intent(in) | :: | gama | |||
real(kind=r64), | intent(out) | :: | cond | |||
integer, | intent(inout) | :: | nperr | |||
character(len=*), | intent(inout) | :: | ErrorMessage |
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 GassesLow(tmean, mwght, pressure, gama, cond, nperr, ErrorMessage)
real(r64), intent(in) :: tmean, mwght, pressure, gama
integer, intent(inout) :: nperr
character(len=*), intent(inout) :: ErrorMessage
real(r64), intent(out) :: cond
real(r64) :: alpha = 0.0d0
real(r64) :: B = 0.0d0
alpha = alpha1 * alpha2 / (alpha2 + alpha1*(1 - alpha2))
if ((gama).eq.1) then
nperr = 40 !supplied gamma coefficient is incorrect
ErrorMessage = 'Supplied gamma coefficient is incorrect.'
return
end if
B = alpha * (gama + 1)/(gama - 1) * (UniversalGasConst / (8 * pi * mwght * tmean)) ** 0.5d0
cond = B * pressure
end subroutine GassesLow