#' @title Reynolds number
#'
#' @description The Reynolds number (Re) is an important dimensionless quantity in fluid
#' mechanics used to help predict flow patterns in different fluid flow situations.
#'
#' @author Dr. Raúl Trujillo Álvarez \email{dr.ing.trujillo@gmail.com}
#'
#' @param flow cubic meter per second (m³/s)
#' @param dn diameter in meter (m)
#' @param temp temp is in °C
#'
#' @return reynolds number dimensionless quantity
#' @export
#'
#' @examples
#' reynolds_number(flow = 0.157, dn = 0.3, temp = 20)
#' reynolds_number(flow = 3.72, dn = 1.2, temp = 14)
#' reynolds_number(flow = 0.042, dn = 0.150, temp = 14.5)
#'
reynolds_number <- function(flow,dn, temp = 20){
reynolds <- (4*flow)/(pi*dn*kinematic_viscosity(temp)*1e-6)
return(reynolds)
}
Add the following code to your website.
For more information on customizing the embed code, read Embedding Snippets.