casacore
Static Public Member Functions | Friends | List of all members
casacore::QC Class Reference

More...

#include <QC.h>

Static Public Member Functions

static const Quantum< Double > & c ()
 vel of light More...
 
static const Quantum< Double > & G ()
 Gravitational constant. More...
 
static const Quantum< Double > & h ()
 Planck. More...
 
static const Quantum< Double > & HI ()
 HI line. More...
 
static Quantum< Double > & R ()
 Gas constant. More...
 
static const Quantum< Double > & NA ()
 Avogadro. More...
 
static const Quantum< Double > & e ()
 electron charge More...
 
static const Quantum< Double > & mp ()
 proton mass More...
 
static const Quantum< Double > & mp_me ()
 mp/me More...
 
static const Quantum< Double > & mu0 ()
 permeability vacuum More...
 
static const Quantum< Double > & epsilon0 ()
 permittivity vacuum More...
 
static const Quantum< Double > & k ()
 Boltzmann. More...
 
static const Quantum< Double > & F ()
 Faraday. More...
 
static const Quantum< Double > & me ()
 mass electron More...
 
static const Quantum< Double > & re ()
 radius electron More...
 
static const Quantum< Double > & a0 ()
 Bohr's radius. More...
 
static const Quantum< Double > & R0 ()
 Solar radius. More...
 
static const Quantum< Double > & k2 ()
 IAU Gaussian grav. More...
 
static const Quantum< Double > & qTurn ()
 quarter turn = 90 degrees = pi/2 radians More...
 
static const Quantum< Double > & hTurn ()
 half turn = 180 degrees = pi radians More...
 
static const Quantum< Double > & fTurn ()
 full turn = 360 degrees = 2pi radians More...
 

Friends

class QC_init
 

Detailed Description

Physical constants (i.e. dimensioned values)

Intended use:

Public interface

Review Status

Reviewed By:
UNKNOWN
Date Reviewed:
before2004/08/25
Test programs:
tQuantum

Prerequisite

Etymology

A QC is based on the Quantum and C (constants) class

Synopsis

QC:name will produce a Quantity (Quantum<Double>) value consisting of a value and a unit. See the Quantum class for possibilities of manipulating quanta. tQuantum will give a list of the currently available constants

Example

To obtain the velocity of light in pc/a, use:

#include <casacore/casa/Quanta.h>
Double vel_pcpy = (C::c).convert("pc/a").getValue();
const Double c
Fundamental physical constants (SI units):
double Double
Definition: aipstype.h:55

The following constants are defined as public data members of class QC.


Caution: The following public data member documentation is currently extracted by hand, and thus could be out of date if this documentation was not updated when the class was modified;

// vel of light
Quantum<Double> c();
// Gravitational constant
Quantum<Double> G();
// Planck
Quantum<Double> h();
// HI line
Quantum<Double> HI();
// Gas constant
Quantum<Double> R();
// Avogadro
Quantum<Double> NA();
// electron charge
Quantum<Double> e();
// proton mass
Quantum<Double> mp();
// mp/me
Quantum<Double> mp_me();
// permeability vacuum
Quantum<Double> mu0();
// permittivity vacuum
Quantum<Double> epsilon0();
// Boltzmann
Quantum<Double> k();
// Faraday
Quantum<Double> F();
// mass electron
Quantum<Double> me();
// radius electron
Quantum<Double> re();
// Bohr's radius
Quantum<Double> a0();
// Solar radius
Quantum<Double> R0();
// IAU Gaussian grav. const **2
Quantum<Double> k2();
// quarter turn = 90 degrees = pi/2 radians
Quantum<Double> qTurn();
// half turn = 180 degrees = pi radians
Quantum<Double> hTurn();
// full turn = 360 degrees = 2pi radians
Quantum<Double> fTurn();
static const Quantum< Double > & hTurn()
half turn = 180 degrees = pi radians
Definition: QC.h:286
static const Quantum< Double > & mp()
proton mass
Definition: QC.h:212
static const Quantum< Double > & epsilon0()
permittivity vacuum
Definition: QC.h:230
static const Quantum< Double > & h()
Planck.
Definition: QC.h:182
static const Quantum< Double > & qTurn()
quarter turn = 90 degrees = pi/2 radians
Definition: QC.h:280
static const Quantum< Double > & k()
Boltzmann.
Definition: QC.h:236
static const Quantum< Double > & R0()
Solar radius.
Definition: QC.h:266
static const Quantum< Double > & mu0()
permeability vacuum
Definition: QC.h:224
static const Quantum< Double > & NA()
Avogadro.
Definition: QC.h:200
static const Quantum< Double > & me()
mass electron
Definition: QC.h:248
static const Quantum< Double > & a0()
Bohr's radius.
Definition: QC.h:260
static const Quantum< Double > & e()
electron charge
Definition: QC.h:206
static const Quantum< Double > & mp_me()
mp/me
Definition: QC.h:218
static const Quantum< Double > & c()
vel of light
Definition: QC.h:170
static const Quantum< Double > & HI()
HI line.
Definition: QC.h:188
static const Quantum< Double > & F()
Faraday.
Definition: QC.h:242
static const Quantum< Double > & G()
Gravitational constant.
Definition: QC.h:176
static const Quantum< Double > & re()
radius electron
Definition: QC.h:254
static const Quantum< Double > & k2()
IAU Gaussian grav.
Definition: QC.h:273
static const Quantum< Double > & fTurn()
full turn = 360 degrees = 2pi radians
Definition: QC.h:292
static Quantum< Double > & R()
Gas constant.
Definition: QC.h:194

Motivation

Physical constants should be known with their proper dimensions

Definition at line 162 of file QC.h.

Member Function Documentation

◆ a0()

static const Quantum<Double>& casacore::QC::a0 ( )
inlinestatic

Bohr's radius.

Definition at line 260 of file QC.h.

◆ c()

static const Quantum<Double>& casacore::QC::c ( )
inlinestatic

vel of light

Definition at line 170 of file QC.h.

References casacore::C::c.

◆ e()

static const Quantum<Double>& casacore::QC::e ( )
inlinestatic

electron charge

Definition at line 206 of file QC.h.

◆ epsilon0()

static const Quantum<Double>& casacore::QC::epsilon0 ( )
inlinestatic

permittivity vacuum

Definition at line 230 of file QC.h.

References casacore::C::c, and casacore::C::pi.

◆ F()

static const Quantum<Double>& casacore::QC::F ( )
inlinestatic

Faraday.

Definition at line 242 of file QC.h.

◆ fTurn()

static const Quantum<Double>& casacore::QC::fTurn ( )
inlinestatic

full turn = 360 degrees = 2pi radians

Definition at line 292 of file QC.h.

◆ G()

static const Quantum<Double>& casacore::QC::G ( )
inlinestatic

Gravitational constant.

Definition at line 176 of file QC.h.

◆ h()

static const Quantum<Double>& casacore::QC::h ( )
inlinestatic

Planck.

Definition at line 182 of file QC.h.

◆ HI()

static const Quantum<Double>& casacore::QC::HI ( )
inlinestatic

HI line.

Definition at line 188 of file QC.h.

◆ hTurn()

static const Quantum<Double>& casacore::QC::hTurn ( )
inlinestatic

half turn = 180 degrees = pi radians

Definition at line 286 of file QC.h.

◆ k()

static const Quantum<Double>& casacore::QC::k ( )
inlinestatic

Boltzmann.

Definition at line 236 of file QC.h.

◆ k2()

static const Quantum<Double>& casacore::QC::k2 ( )
inlinestatic

IAU Gaussian grav.

const **2

Definition at line 273 of file QC.h.

References casacore::IAU_k.

◆ me()

static const Quantum<Double>& casacore::QC::me ( )
inlinestatic

mass electron

Definition at line 248 of file QC.h.

◆ mp()

static const Quantum<Double>& casacore::QC::mp ( )
inlinestatic

proton mass

Definition at line 212 of file QC.h.

◆ mp_me()

static const Quantum<Double>& casacore::QC::mp_me ( )
inlinestatic

mp/me

Definition at line 218 of file QC.h.

◆ mu0()

static const Quantum<Double>& casacore::QC::mu0 ( )
inlinestatic

permeability vacuum

Definition at line 224 of file QC.h.

References casacore::C::pi.

◆ NA()

static const Quantum<Double>& casacore::QC::NA ( )
inlinestatic

Avogadro.

Definition at line 200 of file QC.h.

◆ qTurn()

static const Quantum<Double>& casacore::QC::qTurn ( )
inlinestatic

quarter turn = 90 degrees = pi/2 radians

Definition at line 280 of file QC.h.

◆ R()

static Quantum<Double>& casacore::QC::R ( )
inlinestatic

Gas constant.

Definition at line 194 of file QC.h.

◆ R0()

static const Quantum<Double>& casacore::QC::R0 ( )
inlinestatic

Solar radius.

Definition at line 266 of file QC.h.

◆ re()

static const Quantum<Double>& casacore::QC::re ( )
inlinestatic

radius electron

Definition at line 254 of file QC.h.

Friends And Related Function Documentation

◆ QC_init

friend class QC_init
friend

Definition at line 163 of file QC.h.


The documentation for this class was generated from the following file: