;ς
Ψ@Fc           @   s   d  Z  d k l Z l Z l Z l Z l Z l Z d e f d     YZ e e i	 e i
 e i d e d d Z e i i d d  [ [ [ [ [ [ d S(	   sc   Planck's units, and kindred systems of units.

$Id: planck.py,v 1.4 2007/03/31 11:07:04 eddy Exp $
(   s   Vacuums   Quantums   Cosmoss   Thermals   Objects   pis	   Planckoidc           B   sΗ   t  Z d  Z e i Z e i d e e	 i
 e i d  Z e i Z e i Z d   Z d   Z d   Z d   Z d   Z d   Z e Z d	   Z d
   Z d   Z d   Z d   Z d   Z d   Z RS(   se  A system of units, having the form of Planck's units.

    The constructor's defaults yield my preferred system of this kind; the
    Planck instance of this class over-rides these (as explained in its own
    documentation, q.v.) to be faithful to what Plank actually used.  The unit
    of speed is (unless over-ridden by key-word argument) the speed of light;
    the eot (energy over time) attribute used to obtain temperature from energy
    is (again, unless over-ridden) Boltzmann's constant.

    The constructor's parameters, given in the following order or via key-words,
    are used to initialize eponymous attributes, with the indicated defaults:

      geoid -- Newton's constant times 8.pi (G-oid)
      action -- Planck's constant (unit of angular momentum)
      impedance -- the impedance of free space

    Lazy attributes:
      tom -- time over mass = geoid / speed**3
      arearate -- area / time
      magneton -- arearate * charge = charge * action / mass

    plus charge, momentum, length, mass, energy, torque, time, current,
    temperature, force, acceleration with their conventional meanings.
i   c         O   s?   | i h  d | <d | <d | < t |  i | |  d  S(   Ns	   impedances   actions   geoid(	   s   whats   updates	   impedances   actions   geoids   applys   selfs   _Planckoid__upinits   args(   s   selfs   geoids   actions	   impedances   argss   what(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   __init__$   s    (c         C   s   |  i |  i d Sd  S(   Ni   (   s   selfs   geoids   speed(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_tom_.   s    c         C   s   |  i |  i d Sd  S(   Nf0.5(   s   selfs   actions	   impedance(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_charge_/   s    c         C   s   |  i |  i d Sd  S(   Nf0.5(   s   selfs   actions   tom(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_momentum_0   s    c         C   s   |  i |  i d Sd  S(   Nf0.5(   s   selfs   actions   tom(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_length_1   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   momentums   speed(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_mass_2   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   momentums   speed(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_energy_3   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   lengths   speed(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_time_5   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   lengths   speed(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_arearate_6   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   charges   time(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_current_7   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   charges   arearate(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_magneton_8   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   energys   eot(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_temperature_9   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   momentums   time(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_force_:   s    c         C   s   |  i |  i Sd  S(   N(   s   selfs   speeds   time(   s   selfs   ig(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   _lazy_get_acceleration;   s    (    s   __name__s
   __module__s   __doc__s   Objects   __init__s   _Planckoid__upinits   Cosmoss   Gs   pis   Quantums   hs   Vacuums	   impedances   cs   speeds   Thermals   ks   eots   _lazy_get_tom_s   _lazy_get_charge_s   _lazy_get_momentum_s   _lazy_get_length_s   _lazy_get_mass_s   _lazy_get_energy_s   _lazy_get_torque_s   _lazy_get_time_s   _lazy_get_arearate_s   _lazy_get_current_s   _lazy_get_magneton_s   _lazy_get_temperature_s   _lazy_get_force_s   _lazy_get_acceleration(    (    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys	   Planckoid
   s&    	#														i   s   __doc__s  Planck's units.

When Planck discovered his solution to the problem then known as the
`ultraviolet catastrophe' and hence discovered the physical constant named after
him, he noticed that it, Newton's gravitational constant and the speed of light
were all expressible in terms of units of length, time and mass; yet that no
product of powers of two of them yields a quantity with the same dimensions as
the third.  He thus had three dimensionally independent quantities expressible
in terms of the three primitive units of measurement of classical mechanics:
which necessarily implied there must be a way to invert the `expressed in terms
of' and obtain units of length, time and mass from h, G and c.

It has been common to augment these with the charge on the electron (e,
a.k.a. Millikan's quantum) to produce units of electrodynamic measurement
(charge, current, voltage, etc.); however, G and c arise as constants in the
field equations of gravity and electrodynamics, while h (at least first)
appeared as a constant in a proportionality law (albeit one whose causes
mystified Planck); it would thus be clearly preferable to extend the system to
electromagnetic units by chosing some constant from electromagnetism's *field
equations*, rather than a property of some of the particles *governed by* those
equations.

It so happens that natural candidates present themselves; the permeability,
permittivity and impedance of free space; which of these we chose makes no
difference to our system of units, since combining it suitably with c yields the
other two.  Equally, some constant scaling applied to one of these may be
appropriate; indeed, as argued below, 4*pi times the permittivity provides a
natural candidate (c.f. also Cosmos.qperm).

Much has been said to the effect that the Planck time and length `must
represent' minimal scales of the universe; I treat this with some skepticism,
given that the Planck mass, of order a dozen microgrammes, isn't in any sense
`irreducible' - see Planck.mass.__doc__ for details.  The Planck momentum is of
the same order as the momentum of a full-grown cat running.  The Planck charge,
meanwhile, is of order eight positrons-worth - so manifestly reducible - and the
universe clearly *does* quantise charge (albeit possibly in units of a third
that on the positron) so even when a quantity does have a `minimal scale' this
needn't be the relevant Planck unit.

It should also be noted that one has some choice in the quantities used; hence
the `of order' clauses above.  The speed of light is well established, but: for
the action one may use Planck's constant, h, or Dirac's, h/2/pi, or even argue
for half this (the spin of a fermion); for the constants governing inverse
square laws, one has a choice of a factor of 4*pi according as one uses the
constant from the central-force law or the constant from the equation of
proportionality between divergence and source density (the field equation).
Indeed, as concerns the latter, G is selected from gravity's inverse square law,
so a petty consistency encourages me to select the matching constant from
Coulomb's law, 1/4/pi/epsilon0 = Z0 * c / 4 / pi.

The fine structure constant, alpha = e*e/(4*pi*epsilon0*hbar*c), arises
naturally as a coefficient in perturbation expansions - well, actually, 2*alpha
does - and effectively expresses e in terms of the charge q = sqrt(h/Z0) =
sqrt(2*pi*epsilon0*hbar*c), making e = q * sqrt(2*alpha), i.e. (given 137*alpha
is almost exactly 1) q = e*sqrt(137/2): this would make a more natural unit of
charge, but the above petty consistency obliges me to use 2*q*sqrt(pi) instead.

Since I believe Planck used h, c and G as units, and this object is named after
him, I should be faithful to that choice, as far as it goes: which, with
sqrt(4*pi*h/Z0) as unit of charge, requires that Z0 be 4*pi, hence so is mu0,
while epsilon0 is 1/4/pi.  But for Planck's historical choice, I would prefer to
use the Einstein-Maxwell charge-to-mass ratio (Cosmos.qperm, above) in place of
G, along with Z0 as just justified (in terms of q = sqrt(h/Z0) as unit of
charge); which would be equivalent to replacing G, in the system actually used
here, with its matching Newtonian field-equation unit, 4*pi*G, and using Z0
rather than Z0/4/pi.  However, Planck chose G.  The resulting system yields a
charge equal to 29.3446 times that on a positron, a momentum of 8.451 stone foot
/ second, and very tiny length and time - a mole of the lengths add up to almost
a quarter of an Εngstrψm.
s  The Planck mass.

See general documentation of Planck's units, on object Planck.

Note, for contrast, that amoeba have masses of order 4 micro grams, bacteria of
order a pico gram, individual genes of order 40 atto grams; the Planck mass is
over a dozen times the first of these.  Tardigrades (a.k.a. water bears) are
fully articulated animals with less mass than the Planck mass.  Thus, plenty of
living organisms are smaller than the Planck mass; a cube of water with this
mass has sides over a third of a millimetre long.
N(   s   __doc__s   physicss   Vacuums   Quantums   Cosmoss   Thermals   Objects   pis	   Planckoids   Gs   hs	   impedances   Plancks   masss   also(   s   Objects   Thermals	   Planckoids   Vacuums   Quantums   Cosmoss   pis   Planck(    (    s(   /home/eddy/.sys/py/study/chemy/planck.pys   ?   s   +4F