Namespace for handling recipe calculations. This namespace assumes ingredients that conform to the common-beer-format.
Namespace for handling recipe calculations. This namespace assumes ingredients that conform to the common-beer-format.
(calculate-alpha-acid-units weight alpha)
Calculate the maximum amount of alpha acid released by weight
ounce of a hop at percent
alpha acid
Calculate the maximum amount of alpha acid released by `weight` ounce of a hop at `percent` alpha acid
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, return the EBC color for a recipe
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, return the EBC color for a recipe
(calculate-hop-utilization gravity boil-duration)
Calculate the percentage of alpha acid that a hop could release over boil-duration
in a wort at a specific gravity
Based on: http://howtobrew.com/book/section-1/hops/hop-bittering-calculations
Calculate the percentage of alpha acid that a hop could release over `boil-duration` in a wort at a specific `gravity` Based on: http://howtobrew.com/book/section-1/hops/hop-bittering-calculations
(calculate-ibu-per-hop hop batch-size potential-gravity)
Given a common-beer-format
conforming hop
, batch-size
, and potential-gravity
, calculate the amount of IBUs generated
Given a `common-beer-format` conforming `hop`, `batch-size`, and `potential-gravity`, calculate the amount of IBUs generated
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, return the color in degrees Lovibond for a recipe
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, return the color in degrees Lovibond for a recipe
(calculate-malt-color-units fermentables batch-size)
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, return the overall Malt Color Units for a recipe
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, return the overall Malt Color Units for a recipe
(calculate-potential-abv fermentables batch-size)
(calculate-potential-abv fermentables batch-size attenuation)
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, estimate the ABV.
The primary fermentation yeast's attenuation
may also be passed, otherwise 75% is assumed.
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, estimate the ABV. The primary fermentation yeast's `attenuation` may also be passed, otherwise 75% is assumed.
(calculate-potential-final-gravity fermentables batch-size)
(calculate-potential-final-gravity fermentables batch-size attenuation)
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, estimate the Final Gravity.
The primary fermentation yeast's attenuation
may also be passed, otherwise 75% is assumed.
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, estimate the Final Gravity. The primary fermentation yeast's `attenuation` may also be passed, otherwise 75% is assumed.
(calculate-potential-gravity fermentables batch-size)
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, calculate the potential original gravity.
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, calculate the potential original gravity.
(calculate-recipe-ibus hops batch-size potential-gravity)
Given a collection of common-beer-format
conforming hops
, batch-size
, and potential-gravity
calculate the amount of IBUs generated
Given a collection of `common-beer-format` conforming `hops`, `batch-size`, and `potential-gravity` calculate the amount of IBUs generated
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, return the RGBA color for a recipe
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, return the RGBA color for a recipe
(calculate-srm-color fermentables batch-size)
Given a collection of common-beer-format
conforming fermentables
, and a conformed batch-size
in liters, return the SRM color for a recipe
Given a collection of `common-beer-format` conforming `fermentables`, and a conformed `batch-size` in liters, return the SRM color for a recipe
(gravity-points->potential-gravity gravity-points volume)
Given the gravity-points
of a recipe, and the volume
of the batch, calculate the potential gravity
Given the `gravity-points` of a recipe, and the `volume` of the batch, calculate the potential gravity
(normalize-fermentable fermentable)
Given a common-beer-format
conforming fermentable
, normalize it for color computation
Given a `common-beer-format` conforming `fermentable`, normalize it for color computation
(potential-gravity->gravity-points potential-gravity weight)
Given the potential-gravity
of a fermentable, and the weight
of the fermentable, calculate gravity points
Given the `potential-gravity` of a fermentable, and the `weight` of the fermentable, calculate gravity points
cljdoc is a website building & hosting documentation for Clojure/Script libraries
× close