mirror of
https://github.com/Cantera/cantera.git
synced 2025-02-25 18:55:29 -06:00
39 lines
893 B
Python
Executable File
39 lines
893 B
Python
Executable File
#!/bin/env python
|
|
#
|
|
#--------------------------------------------------------------------------
|
|
#
|
|
# $License$
|
|
#
|
|
#--------------------------------------------------------------------------
|
|
|
|
# $Log: density.py,v $
|
|
# Revision 1.1.1.1 2003/04/14 17:57:49 dggoodwin
|
|
# Initial import.
|
|
#
|
|
# Revision 1.1 2002/12/20 13:23:41 dgg
|
|
# first commit
|
|
#
|
|
# Revision 1.1.1.1 2000/01/21 22:59:51 dgg
|
|
# dgg Cantera
|
|
#
|
|
# Revision 1.1 1999/11/27 17:27:35 dgg
|
|
# initial import to Cantera repository
|
|
#
|
|
# Revision 1.1 1999/11/25 19:50:58 aivazis
|
|
# Original source
|
|
#
|
|
|
|
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
|
|
#
|
|
# End of file
|