ReFRACtor
FullPhysics::units Namespace Reference

Define various units. More...

Functions

const Unit A ("A", 1.0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0)
 
const Unit arcsec ("arcsec", deg/(60.0 *60))
 
const Unit cd ("cd", 1.0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0)
 
const Unit cm ("cm", 1e-2 *m)
 
const Unit day ("day", 24 *60 *60 *s)
 
const Unit deg ("deg", pi/180.0 *rad)
 
const Unit dimensionless ("dimensionless", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit g ("g", 1e-3 *kg)
 
const Unit inv_cm ("cm^-1", pow(cm, -1))
 
const Unit inv_sr ("sr^-1", pow(sr, -1))
 
const Unit J ("J", N *m)
 
const Unit K ("K", 1.0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0)
 
const Unit kg ("kg", 1.0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit km ("km", 1e3 *m)
 
const Unit kW ("kW", 1e3 *W)
 
const Unit m ("m", 1.0, 1, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit micron ("micron", 1e-6 *m)
 
const Unit mol ("mol", 1.0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0)
 
const Unit mW ("mW", 1e-3 *W)
 
const Unit N ("N", kg *m/(s *s))
 
const Unit nm ("nm", 1e-9 *m)
 
const Unit Pa ("Pa", N/(m *m))
 
const Unit ph ("ph", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0)
 
const Unit rad ("rad", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0)
 
const Unit s ("s", 1.0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 0, 0)
 
const Unit sample_index ("sample_index", 1.0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1)
 
const Unit sr ("sr", 1.0, 0, 0, 0, 0, 0, 0, 0, 1, 0, 0, 0)
 
const Unit uW ("uW", 1e-6 *W)
 
const Unit W ("W", J/s)
 
const Unit year ("year", 365.25 *24 *60 *60 *s)
 

Variables

const double pi = 3.14159265358979323846
 Pi. More...
 

Detailed Description

Define various units.

Note that if you add something here, you should also look in unit.cc in the base_unit_ defined for the parser.

Function Documentation

◆ A()

const Unit FullPhysics::units::A ( "A"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ arcsec()

const Unit FullPhysics::units::arcsec ( "arcsec"  ,
deg 60.0 *60 
)

◆ cd()

const Unit FullPhysics::units::cd ( "cd"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ cm()

const Unit FullPhysics::units::cm ( "cm"  ,
1e-2 *  m 
)

◆ day()

const Unit FullPhysics::units::day ( "day"  ,
24 *60 *60 *  s 
)

◆ deg()

const Unit FullPhysics::units::deg ( "deg"  ,
pi/180.0 *  rad 
)

◆ dimensionless()

const Unit FullPhysics::units::dimensionless ( "dimensionless"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ g()

const Unit FullPhysics::units::g ( "g"  ,
1e-3 *  kg 
)

◆ inv_cm()

const Unit FullPhysics::units::inv_cm ( "cm^-1"  ,
pow(cm, -1)   
)

◆ inv_sr()

const Unit FullPhysics::units::inv_sr ( "sr^-1"  ,
pow(sr, -1)   
)

◆ J()

const Unit FullPhysics::units::J ( "J"  ,
N m 
)

◆ K()

const Unit FullPhysics::units::K ( "K"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ kg()

const Unit FullPhysics::units::kg ( "kg"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ km()

const Unit FullPhysics::units::km ( "km"  ,
1e3 *  m 
)

◆ kW()

const Unit FullPhysics::units::kW ( "kW"  ,
1e3 *  W 
)

◆ m()

const Unit FullPhysics::units::m ( "m"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ micron()

const Unit FullPhysics::units::micron ( "micron"  ,
1e-6 *  m 
)

◆ mol()

const Unit FullPhysics::units::mol ( "mol"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ mW()

const Unit FullPhysics::units::mW ( "mW"  ,
1e-3 *  W 
)

◆ N()

const Unit FullPhysics::units::N ( "N"  ,
kg *m s *s 
)

◆ nm()

const Unit FullPhysics::units::nm ( "nm"  ,
1e-9 *  m 
)

◆ Pa()

const Unit FullPhysics::units::Pa ( "Pa"  ,
N m *m 
)

◆ ph()

const Unit FullPhysics::units::ph ( "ph"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ rad()

const Unit FullPhysics::units::rad ( "rad"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ s()

const Unit FullPhysics::units::s ( "s"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ sample_index()

const Unit FullPhysics::units::sample_index ( "sample_index"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ sr()

const Unit FullPhysics::units::sr ( "sr"  ,
1.  0,
,
,
,
,
,
,
,
,
,
,
 
)

◆ uW()

const Unit FullPhysics::units::uW ( "uW"  ,
1e-6 *  W 
)

◆ W()

const Unit FullPhysics::units::W ( "W"  ,
J s 
)

◆ year()

const Unit FullPhysics::units::year ( "year"  ,
365.25 *24 *60 *60 *  s 
)

Variable Documentation

◆ pi

const double FullPhysics::units::pi = 3.14159265358979323846

Pi.

Definition at line 133 of file unit.h.


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