With units
Type | Intent | Optional | Attributes | Name | ||
---|---|---|---|---|---|---|
type(KORC_PARAMS), | intent(in) | :: | params | |||
real(kind=rp), | intent(in) | :: | ne | ne is in m^-3 and below is converted to cm^-3 |
||
real(kind=rp), | intent(in) | :: | Te |
function CLogei_wu(params,ne,Te)
!! With units
TYPE(KORC_PARAMS), INTENT(IN) :: params
REAL(rp), INTENT(IN) :: ne
!! ne is in m^-3 and below is converted to cm^-3
REAL(rp), INTENT(IN) :: Te ! In Joules
REAL(rp) :: CLogei_wu
REAL(rp) :: k=5._rp
REAL(rp) :: p
p=sqrt(params%minimum_particle_g**2-1)
if (cparams_ss%Clog_model.eq.'CONSTANT') then
CLogei_wu = cparams_ss%Clog_const
else
CLogei_wu = CLog0_wu(ne,Te)+ &
log(1+(2*p/(VTe_wu(Te)/C_C))**k)/k
end if
end function CLogei_wu