cantera/interfaces/python/MixMaster/Units/density.py
2012-06-05 19:56:10 +00:00

11 lines
327 B
Python

import SI, math
#
# Definitions of common density units
# Data taken from Appendix F of Halliday, Resnick, Walker, "Fundamentals of Physics",
# fourth edition, John Willey and Sons, 1993
units = ['kg__m3', 'g__m3', 'g__cm3']
kg__m3 = SI.kilogram/(SI.meter * SI.meter * SI.meter)
g__m3 = 1.e-3*kg__m3
g__cm3 = 1.e3*kg__m3