0

I use the Quantity function in Mathematica to simplify and check units. Sometimes I cannot get Mathematica to simplify units. What I am doing wrong?

For example, find units of thermal diffusivity:

k = Quantity["W/(m K)"]
ρ = Quantity["Kg / m^3"]
Subscript[c, p] = Quantity["kJ / (kg K)"]

k/(ρ Subscript[c, p])

Convert to SI base:

UnitConvert[k/(ρ Subscript[c, p]), "SI"]

The output is: ("Kelvins" ("Meters")^2 "Watts")/("KelvinsDifference" "Kilojoules")

Why will it not simplify the units to $m^2/s$?

Feyre
  • 8,597
  • 2
  • 27
  • 46
Hefaestion
  • 437
  • 3
  • 8
  • Note that a workaround is k = Quantity["W/m 1/K"] – Feyre Jan 27 '17 at 14:19
  • Note that you need to use UnitConvert[k/(\[Rho] Subscript[c, p]), "m^2/s"] to get the result you want, a single UnitSimplify[] reduces it to volt/Tesla. – Feyre Jan 27 '17 at 14:37

0 Answers0