mbd_formulas Module

Common formulas used at multiple places.



Contents


Functions

public function omega_qho(C6, alpha, domega, grad) result(omega)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: C6(:)
real(kind=dp), intent(in) :: alpha(:)
type(grad_t), intent(out), optional :: domega
type(grad_request_t), intent(in), optional :: grad

Return Value real(kind=dp) (size(C6))

public function alpha_dyn_qho(alpha_0, omega, freq, dalpha, grad) result(alpha)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: alpha_0(:)
real(kind=dp), intent(in) :: omega(:)
type(quad_pt_t), intent(in) :: freq(0:)
type(grad_t), intent(out), allocatable:: dalpha(:)
type(grad_request_t), intent(in) :: grad

Return Value real(kind=dp) (size(alpha_0),0:ubound(freq,1))

public function C6_from_alpha(alpha, freq, dC6_dalpha, grad) result(C6)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: alpha(:,0:)
type(quad_pt_t), intent(in) :: freq(0:)
real(kind=dp), intent(out), optional allocatable:: dC6_dalpha(:,:)
logical, intent(in), optional :: grad

Return Value real(kind=dp) (size(alpha,1))

public function sigma_selfint(alpha, dsigma_dalpha, grad) result(sigma)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: alpha(:)
real(kind=dp), intent(out), optional allocatable:: dsigma_dalpha(:)
logical, intent(in), optional :: grad

Return Value real(kind=dp) (size(alpha))

public function scale_with_ratio(x, yp, y, q, dx, grad) result(xp)

Arguments

Type IntentOptional AttributesName
real(kind=dp), intent(in) :: x(:)
real(kind=dp), intent(in) :: yp(:)
real(kind=dp), intent(in) :: y(:)
real(kind=dp), intent(in) :: q
type(grad_t), intent(out), optional :: dx
type(grad_request_t), intent(in), optional :: grad

Return Value real(kind=dp) (size(x))