ianmackenzie/elm-units

Add more quantity types

Open

#6 opened on Sep 27, 2018

 (49 comments) (0 reactions) (0 assignees)Elm (14 forks)auto 404
Hacktoberfesthelp wanted

Repository metrics

Stars
 (87 stars)
PR merge metrics
 (PR metrics pending)

Description

Here's a list of modules that I'd like to add at some point - pull requests for any of these are welcome! (Take a look at existing modules for inspiration.) I've listed how I think each quantity's units should be defined, either as a base unit (Moles, Candelas, etc.) or as a rate/product of other units (in which case the units type will be a type alias of the form Rate x y or Product x y). Note that there are some dependencies here - can't add the VolumetricFlow modules without the Volume module, or LuminousIntensity without SolidAngle!

Kinematics/dynamics

  • AngularSpeed (RadiansPerSecond = Rate Radians Seconds) (thanks @katjam!)
  • AngularAcceleration (RadiansPerSecondSquared = Rate RadiansPerSecond Seconds) (thanks @katjam!)
  • Torque (NewtonMeters = Product Newtons Meters) (thanks @gampleman!)

Volume

  • Volume (Cubed Meters) (thanks @katjam!)
  • VolumetricFlow (CubicMetersPerSecond = Rate CubicMeters Seconds)
  • Density (KilogramsPerCubicMeter = Rate Kilograms CubicMeters) (thanks @katjam!)
  • SubstanceAmount (Moles) (thanks @ukarim!)
  • Molarity (MolesPerCubicMeter = Rate Moles CubicMeters) (claimed by @lenards)

Electromagnetism

  • Inductance (Henries = Rate Volts (Rate Amperes Seconds)) (thanks @ukarim!)
  • Capacitance (Farads = Rate Coulombs Volts) (thanks @ukarim!)

Photometry

  • SolidAngle (Steradians)
  • LuminousFlux (Lumens)
  • LuminousIntensity (Candelas = Rate Lumens Steradians)
  • Illuminance (Lux = Rate Lumens SquareMeters)
  • Luminance (Nits = Rate Candelas SquareMeters)

Contributor guide