R/mcnp_cone_angle.R

Defines functions mcnp_cone_angle

Documented in mcnp_cone_angle

#' MCNP Cone Opening Parameter
#' @family mcnp tools
#' @description MCNP cone surface requires a term, t^2, which is the tangent of
#'   the cone angle, in radians, squared. This function takes an input in
#'   degrees and provides the parameter needed by MCNP.
#' @param d The cone angle in degrees.
#' @return tangent of cone angle squared
#' @examples
#' mcnp_cone_angle(45)
#' @export
mcnp_cone_angle <- function(d) tan(d * pi / 180)^2

Try the radsafer package in your browser

Any scripts or data that you put into this service are public.

radsafer documentation built on July 26, 2023, 6:03 p.m.