calc_gcc_nonseg_m Module Function

pure elemental module function calc_gcc_nonseg_m(self, state) result(suction)

Arguments

Type IntentOptional Attributes Name
class(type_gcc_non_segregation_m), intent(in) :: self
type(type_state), intent(in) :: state

Return Value real(kind=real64)


Called by

proc~~calc_gcc_nonseg_m~~CalledByGraph proc~calc_gcc_nonseg_m calc_gcc_nonseg_m interface~calc_gcc_nonseg_m type_gcc_non_segregation_m%calc_gcc_nonseg_m interface~calc_gcc_nonseg_m->proc~calc_gcc_nonseg_m

Source Code

    module pure elemental function calc_gcc_nonseg_m(self, state) result(suction)
        implicit none
        class(type_gcc_non_segregation_m), intent(in) :: self
        type(type_state), intent(in) :: state
        real(real64) :: suction

        if (state%temperature <= self%Tf) then
            suction = -self%Lf * log((state%temperature + self%TtoK) / (self%Tf + self%TtoK)) / self%g
        else
            suction = 0.0d0
        end if

    end function calc_gcc_nonseg_m