ianmackenzie/elm-units/1.0.0

NOTE: the latest version is 2.10.0

Force

A Force value represents a force in newtons, pounds force etc. It is stored as a number of newtons.

Note that since Newtons is defined as Rate Joules Meters (energy/work per unit length), you can do things like compute work as a product of force and distance:

work =
    force |> Quantity.times length
type alias Force =
Quantity Float Newtons
type alias Newtons =

Metric

newtons : Float -> Force

Construct a force value from a number of newtons.

inNewtons : Force -> Float

Convert a force value to a number of newtons.

kilonewtons : Float -> Force

Construct a force value from a number of kilonewtons.

inKilonewtons : Force -> Float

Convert a force value to a number of kilonewtons.

meganewtons : Float -> Force

Construct a force value from a number of meganewtons.

inMeganewtons : Force -> Float

Convert a force value to a number of meganewtons.

Imperial

pounds : Float -> Force

Construct a force value from a number of pounds force. One pound force is the force required to accelerate one pound mass at a rate of one gee.

inPounds : Force -> Float

Convert a force value to a number of pounds force.

kips : Float -> Force

Construct a force value from a number of kips (kilopounds force).

Force.kips 2
--> Force.pounds 2000
inKips : Force -> Float

Convert a force value to a number of kips.