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

Physical constants (i.e. dimensioned values) More...

#include <QC.h>

Static Public Attributes

static Quantum< Doublec
 vel of light More...
 
static Quantum< DoubleG
 Gravitational constant. More...
 
static Quantum< Doubleh
 Planck. More...
 
static Quantum< DoubleHI
 HI line. More...
 
static Quantum< DoubleR
 Gas constant. More...
 
static Quantum< DoubleNA
 Avogadro. More...
 
static Quantum< Doublee
 electron charge More...
 
static Quantum< Doublemp
 proton mass More...
 
static Quantum< Doublemp_me
 mp/me More...
 
static Quantum< Doublemu0
 permeability vacuum More...
 
static Quantum< Doubleepsilon0
 permittivity vacuum More...
 
static Quantum< Doublek
 Boltzmann. More...
 
static Quantum< DoubleF
 Faraday. More...
 
static Quantum< Doubleme
 mass electron More...
 
static Quantum< Doublere
 radius electron More...
 
static Quantum< Doublea0
 Bohr's radius. More...
 
static Quantum< DoubleR0
 Solar radius. More...
 
static Quantum< Doublek2
 IAU Gaussian grav. More...
 
static Quantum< DoubleqTurn
 quarter turn = 90 degrees = pi/2 radians More...
 
static Quantum< DoublehTurn
 half turn = 180 degrees = pi radians More...
 
static Quantum< DoublefTurn
 full turn = 360 degrees = 2pi radians More...
 

Static Private Member Functions

static void init ()
 This function is used, in conjunction with the QC_init class to force construction of statics (see ARM 3.4). 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();

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

Motivation

Physical constants should be known with their proper dimensions

Definition at line 163 of file QC.h.

Member Function Documentation

static void casacore::QC::init ( )
staticprivate

This function is used, in conjunction with the QC_init class to force construction of statics (see ARM 3.4).

Friends And Related Function Documentation

friend class QC_init
friend

Definition at line 164 of file QC.h.

Member Data Documentation

Quantum<Double> casacore::QC::a0
static

Bohr's radius.

Definition at line 216 of file QC.h.

Quantum<Double> casacore::QC::c
static

vel of light

Definition at line 171 of file QC.h.

Quantum<Double> casacore::QC::e
static

electron charge

Definition at line 189 of file QC.h.

Quantum<Double> casacore::QC::epsilon0
static

permittivity vacuum

Definition at line 201 of file QC.h.

Quantum<Double> casacore::QC::F
static

Faraday.

Definition at line 207 of file QC.h.

Quantum<Double> casacore::QC::fTurn
static

full turn = 360 degrees = 2pi radians

Definition at line 231 of file QC.h.

Quantum<Double> casacore::QC::G
static

Gravitational constant.

Definition at line 174 of file QC.h.

Quantum<Double> casacore::QC::h
static

Planck.

Definition at line 177 of file QC.h.

Quantum<Double> casacore::QC::HI
static

HI line.

Definition at line 180 of file QC.h.

Quantum<Double> casacore::QC::hTurn
static

half turn = 180 degrees = pi radians

Definition at line 228 of file QC.h.

Quantum<Double> casacore::QC::k
static

Boltzmann.

Definition at line 204 of file QC.h.

Quantum<Double> casacore::QC::k2
static

IAU Gaussian grav.

const **2

Definition at line 222 of file QC.h.

Quantum<Double> casacore::QC::me
static

mass electron

Definition at line 210 of file QC.h.

Quantum<Double> casacore::QC::mp
static

proton mass

Definition at line 192 of file QC.h.

Quantum<Double> casacore::QC::mp_me
static

mp/me

Definition at line 195 of file QC.h.

Quantum<Double> casacore::QC::mu0
static

permeability vacuum

Definition at line 198 of file QC.h.

Quantum<Double> casacore::QC::NA
static

Avogadro.

Definition at line 186 of file QC.h.

Quantum<Double> casacore::QC::qTurn
static

quarter turn = 90 degrees = pi/2 radians

Definition at line 225 of file QC.h.

Quantum<Double> casacore::QC::R
static

Gas constant.

Definition at line 183 of file QC.h.

Quantum<Double> casacore::QC::R0
static

Solar radius.

Definition at line 219 of file QC.h.

Quantum<Double> casacore::QC::re
static

radius electron

Definition at line 213 of file QC.h.


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