Changeset 999


Ignore:
Timestamp:
May 5, 2008 2:22:17 PM (13 years ago)
Author:
dkearney
Message:

added changelog file to more easily track changes for each version of the software
added bohr units and conversion to meters.

Location:
trunk
Files:
1 added
3 edited

Legend:

Unmodified
Added
Removed
  • trunk/src/core/RpUnits.cc

    r747 r999  
    26152615    RpUnits* meters     = NULL;
    26162616    RpUnits* angstrom   = NULL;
     2617    RpUnits* bohr       = NULL;
    26172618    RpUnits* inch       = NULL;
    26182619    RpUnits* feet       = NULL;
     
    26222623    meters     = RpUnits::define("m", NULL, RP_TYPE_LENGTH, RPUNITS_METRIC);
    26232624    angstrom   = RpUnits::define("A", NULL, RP_TYPE_LENGTH);
     2625    bohr       = RpUnits::define("bohr", NULL, RP_TYPE_LENGTH);
    26242626    inch       = RpUnits::define("in", NULL, RP_TYPE_LENGTH);
    26252627    feet       = RpUnits::define("ft", inch, RP_TYPE_LENGTH);
     
    26312633    // add length definitions
    26322634    RpUnits::define(angstrom, meters, angstrom2meter, meter2angstrom);
     2635    RpUnits::define(bohr, meters, bohr2meter, meter2bohr);
    26332636    RpUnits::define(inch, feet, inch2feet, feet2inch);
    26342637    RpUnits::define(inch, yard, inch2yard, yard2inch);
  • trunk/src/core/RpUnitsStd.cc

    r593 r999  
    200200}
    201201
     202double bohr2meter (double bohr)
     203{
     204    return bohr*(52.9177e-12);
     205}
     206
     207double meter2bohr (double meter)
     208{
     209    return meter*(52.9177e12);
     210}
     211
    202212double meter2inch (double meter)
    203213{
  • trunk/src/core/RpUnitsStd.h

    r593 r999  
    5656double angstrom2meter (double angstrom);
    5757double meter2angstrom (double meter);
     58double bohr2meter (double bohr);
     59double meter2bohr (double meter);
    5860double meter2inch (double meter);
    5961double inch2meter (double inch);
Note: See TracChangeset for help on using the changeset viewer.