ReFRACtor
unit.h File Reference
#include "printable.h"
#include <boost/rational.hpp>
#include <boost/array.hpp>
#include <boost/operators.hpp>
+ Include dependency graph for unit.h:
+ This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  FullPhysics::Unit
 Libraries such as boost::units allow unit handling where we know the units at compile time. More...
 

Namespaces

 FullPhysics
 Contains classes to abstract away details in various Spurr Radiative Transfer software.
 
 FullPhysics::units
 Define various units.
 

Functions

const Unit FullPhysics::units::A ("A", 1.0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::arcsec ("arcsec", deg/(60.0 *60))
 
const Unit FullPhysics::units::cd ("cd", 1.0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0)
 
const Unit FullPhysics::units::cm ("cm", 1e-2 *m)
 
double FullPhysics::conversion (const Unit &Dunit_from, const Unit &Dunit_to)
 Return conversion factor to go from one unit to another. More...
 
const Unit FullPhysics::units::day ("day", 24 *60 *60 *s)
 
const Unit FullPhysics::units::deg ("deg", pi/180.0 *rad)
 
const Unit FullPhysics::units::dimensionless ("dimensionless", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::g ("g", 1e-3 *kg)
 
const Unit FullPhysics::units::inv_cm ("cm^-1", pow(cm, -1))
 
const Unit FullPhysics::units::inv_sr ("sr^-1", pow(sr, -1))
 
const Unit FullPhysics::units::J ("J", N *m)
 
const Unit FullPhysics::units::K ("K", 1.0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::kg ("kg", 1.0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::km ("km", 1e3 *m)
 
const Unit FullPhysics::units::kW ("kW", 1e3 *W)
 
const Unit FullPhysics::units::m ("m", 1.0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::micron ("micron", 1e-6 *m)
 
const Unit FullPhysics::units::mol ("mol", 1.0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::mW ("mW", 1e-3 *W)
 
const Unit FullPhysics::units::N ("N", kg *m/(s *s))
 
const Unit FullPhysics::units::nm ("nm", 1e-9 *m)
 
Unit FullPhysics::operator/ (double Scale_factor, const Unit &Unit)
 
const Unit FullPhysics::units::Pa ("Pa", N/(m *m))
 
const Unit FullPhysics::units::ph ("ph", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0)
 
Unit FullPhysics::pow (const Unit &Dunit, const boost::rational< int > &Exponent)
 
const Unit FullPhysics::units::rad ("rad", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
 
const Unit FullPhysics::units::s ("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit FullPhysics::units::sample_index ("sample_index", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
 
const Unit FullPhysics::units::sr ("sr", 1.0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0)
 
const Unit FullPhysics::units::uW ("uW", 1e-6 *W)
 
const Unit FullPhysics::units::W ("W", J/s)
 
const Unit FullPhysics::units::year ("year", 365.25 *24 *60 *60 *s)
 

Variables

const double FullPhysics::units::pi = 3.14159265358979323846
 Pi. More...
 

Copyright © 2017, California Institute of Technology.
ALL RIGHTS RESERVED.
U.S. Government Sponsorship acknowledged.
Generated Fri Aug 24 2018 15:44:11