Calc_GCC_NonSeg_Pa Module Function

module function Calc_GCC_NonSeg_Pa(self, T, Pw, rhoW, rhoI) result(Suction)

Arguments

Type IntentOptional Attributes Name
class(type_gcc_non_segregation_pa), intent(in) :: self
real(kind=real64), intent(in) :: T
real(kind=real64), intent(in), optional :: Pw
real(kind=real64), intent(in), optional :: rhoW
real(kind=real64), intent(in), optional :: rhoI

Return Value real(kind=real64)


Called by

proc~~calc_gcc_nonseg_pa~~CalledByGraph proc~calc_gcc_nonseg_pa Calc_GCC_NonSeg_Pa interface~calc_gcc_nonseg_pa type_gcc_non_segregation_pa%calc_GCC_NonSeg_Pa interface~calc_gcc_nonseg_pa->proc~calc_gcc_nonseg_pa

Source Code

    module function Calc_GCC_NonSeg_Pa(self, T, Pw, rhoW, rhoI) result(Suction)
        implicit none
        class(type_gcc_non_segregation_pa), intent(in) :: self
        real(real64), intent(in) :: T
        real(real64), intent(in), optional :: Pw
        real(real64), intent(in), optional :: rhoW
        real(real64), intent(in), optional :: rhoI
        real(real64) :: Suction

        if (T <= self%Tf) then
            Suction = -self%Lf * rhoW * log((T + self%TtoK) / (self%Tf + self%TtoK))
        else
            Suction = 0.0d0
        end if

    end function Calc_GCC_NonSeg_Pa