| Type | Intent | Optional | Attributes | Name | ||
|---|---|---|---|---|---|---|
| type(c_ptr), | value | :: | c_pt | |||
| real(kind=dp), | value | :: | Re |
function friction_factor_central_spiral_der(c_pt,Re) result(friction_der) bind(C) type(c_ptr), value :: c_pt real(dp), value :: Re real(dp) :: friction_der type(central_spiral_cfg_t), pointer :: central_spiral_ptr call c_f_pointer(c_pt,central_spiral_ptr) if(Re>0.0_dp) then friction_der=-0.25_dp*central_spiral_ptr%alpha*central_spiral_ptr%beta*(Re**(-central_spiral_ptr%beta-1.0_dp)) else friction_der=0.0_dp endif end function friction_factor_central_spiral_der