Skip to content

Commit

Permalink
Add molar unit
Browse files Browse the repository at this point in the history
  • Loading branch information
jlumpe committed Jul 24, 2019
1 parent e13a115 commit 754a0a4
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions src/pkgdefaults.jl
Original file line number Diff line number Diff line change
Expand Up @@ -118,6 +118,9 @@ for p in (:y, :z, :a, :f, :p, :n, :μ, :µ, :m, :c, :d,
Core.eval(Unitful, :(const $(Symbol(p,:l)) = $(Symbol(p,:L))))
end

# Molarity
@unit M "M" Molar 1mol/L true

# Energy
const q = 1.602_176_634e-19*C # CODATA 2018; `e` means 2.718...
@unit eV "eV" eV q*V true
Expand Down

0 comments on commit 754a0a4

Please sign in to comment.