############################## # # The format of this file is as follows: # # # Units must be broken up into categories. Start each category # with the following line: # # name units # # where 'name' is the name of your category (e.g. SI or English). # Use no spaces in 'name' of your category. # # # Next, define all units within a category using: # # unit[=expression] [excluded prefixes or 'constant'] # # Note that NO spaces can be used in the expression, before/after # the '=', or in the excluded prefixes. # The only spaces MUST be between the unit and the excluded prefixes (if there # are any excluded prefixes) # # 'constant' can be used in place of excluded prefixes in order to exclude # all prefixes. # # # Blank lines do not effect anything and everything following a '#' # is a comment. # # # ######################### SI units # SI units include all standard units, and should # never be unassigned. m s # This is a bit of a trick to make 'kg' standard instead of 'g'. g=(0.001*kg) k # defines g, ng, mg, Mg, etc., excluding kg, in terms of kg. kg constant # protects kg (and only kg). L=(10^3*cm^3) N=(m*kg/s^2) Pa=(N/m^2) A Hz=(1/s) J=(N*m) W=(J/s) hp=(745.7*W) eV=(1.6021892*10^(-19)*J) V=(J/C) ohm=(V/A) ohms=(V/A) Ohm=(V/A) Ohms=(V/A) hr=(3600*s) minutes=(60*s) day=(24*hr) rad=(1) YZEPTGMkhd deg=(1.745329*10^(-2)*rad) mmHg=(1.33322*10^2*Pa) constant torr=(mmHg) Bq=(1/s) Gy=(J/kg) Sv=(J/kg) C=(A*s) G S=(1/Ohm) F=(C/V) T=(V*s/m^2) G Wb=(V*s) H=(V*s/A) sr=(1) lm=(cd*sr) lx=(cd*sr/m^2) English units cal=(4.1868*J) inch=(2.54*cm) # defined inch instead of in ft=(12*inch) f # fft is a function call mile=(5280*ft) lb=(0.45359237*kg) oz=(1.77185*10^(-3)*kg) yard=(0.9144*m) n_mi=(6080*ft) rod=(1210*yd^2) acre=(4840*yd^2) lbf=(4.44822*N) dyn=(10^(-5)*N) bar=(10^5*Pa) atm=(760*torr) Btu=(1.05506*10^3*J) constant units # ALL constants are in SI units mol constant angstrom=(10^(-10)*m) constant k=(1.380658*10^(-23)*J/K) constant e=(1.60217733*10^(-19)*C) constant h=(6.6260755*10^(-34)*J*s) constant h_bar=(1.05459*10^(-34)*J*s) constant c=(2.99792458*10^8*m/s) constant G=(6.67259*10^(-11)*N*(m^2)/(kg^2)) constant R=(8.314510*J/(mol*K)) constant AU=(1.49598*10^11*m) constant