Browse Source

Add 'poise' unit

David Peter 2 years ago
parent
commit
6adbdc80ac

+ 2 - 0
book/src/example-acidity.md

@@ -5,6 +5,8 @@
 ``` numbat
 # Compute the pH (acidity) of a solution based
 # on the activity of hydrogen ions
+#
+# https://en.wikipedia.org/wiki/PH
 
 fn pH_acidity(activity_hplus: Concentration) -> Scalar =
     - log10(activity_hplus / (mol / L))

+ 0 - 1
book/src/example-pipe_flow_rate.md

@@ -8,7 +8,6 @@
 # viscosity of water and allows for inputs of pipe radius,
 # pipe length, and pressure difference.
 
-dimension DynamicViscosity = Pressure × Time
 dimension FlowRate = Volume / Time
 
 let μ_water: DynamicViscosity = 1 mPa·s

+ 0 - 1
examples/pipe_flow_rate.nbt

@@ -3,7 +3,6 @@
 # viscosity of water and allows for inputs of pipe radius,
 # pipe length, and pressure difference.
 
-dimension DynamicViscosity = Pressure × Time
 dimension FlowRate = Volume / Time
 
 let μ_water: DynamicViscosity = 1 mPa·s

+ 2 - 0
modules/core/dimensions.nbt

@@ -47,5 +47,7 @@ dimension Activity = 1 / Time
 dimension AbsorbedDose = Energy / Mass
 dimension EquivalentDose = Energy / Mass
 
+dimension DynamicViscosity = Pressure × Time
+
 # Other useful names
 dimension Rate = 1 / Time

+ 3 - 0
modules/units/cgs.nbt

@@ -15,3 +15,6 @@ assert_eq(1 maxwell, 1e-8 weber)
 
 @aliases(Oe: short)
 unit oersted: MagneticFieldStrength = 1 / (4 pi) * dyne / maxwell
+
+@metric_prefixes
+unit poise: DynamicViscosity = 1 dyn × s / cm^2