R/porosity.R

Defines functions porosity

Documented in porosity

#' Porosity estimation from crtical angle for total external reflectio
#' @author K. Juraic
#' @description Porosity estimation from crtical angle for total external reflectio
#' @param ac_exp experimental critical angle for total external reflection
#' @param ac_bulk theoretical bulk critical angle for ideal material
#' @return value for porosity [0-1]
#' @examples
#'  # Porosity calculation for amorphous silicon
#'  porosity(.18, .223)
porosity <- function(ac_exp, ac_bulk){
  poros <- 1-(ac_exp / ac_bulk)^2
  cat("Porosity =", poros)
  return(poros)
}
kjuraic/rsaxs documentation built on Nov. 29, 2017, 10:20 p.m.