My Project  0.0.16
QUCS Mapping
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Pages
Macros
constants.h File Reference

global natural constant header file More...

#include "consts.h"
#include "precision.h"
Include dependency graph for constants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Macros

#define C0   299792458.0
 speed of light in vacuum ( $c_0$)
 
#define MU0   12.566370614e-7
 magnetic constant of vacuum ( $\mu_0=4\pi\times10^{-7}$)
 
#define E0   8.854187817e-12
 Electric constant of vacuum $\varepsilon_0$.
 
#define Z0   376.73031346958504364963
 Wave impedance in vacuum ( $Z_0=\sqrt{\frac{\mu_0}{\varepsilon_0}}$)
 
#define H   6.626069311e-34
 Planck constant ( $h$)
 
#define K   -273.15
 Absolute 0 in centigrade.
 
#define T0   290
 standard temperature
 
#define kB   1.380650524e-23
 Boltzmann constant ( $k_B$)
 
#define Q   1.6021765314e-19
 Elementary charge ( $q_e$)
 
#define kBoverQ   0.86173433260414314916e-4
 Boltzmann constant over Elementary charge ( $k_B/q_e$)
 
#define QoverkB   1.16045045690360379713e+4
 Elementary charge over Boltzmann constant ( $q_e/k_B$)
 
#define ESiO2   3.9
 Relative permittivity of Silicon dioxide (Silica)
 
#define ESi   11.7
 Relative permittivity of Silicon.
 
#define EGe   15.8
 relative permittivity of Germanium
 
#define EGaAs   13.1
 Relative permittivity of Gallium(III) arsenide.
 
#define NiSi   1.45e16
 Intrinsic carrier concentration in 1/m^3 of Silicon.
 
#define NiGe   2.40e19
 Intrinsic carrier concentration in 1/m^3 of Germanium.
 
#define NiGaAs   9.00e12
 Intrinsic carrier concentration in 1/m^3 of Gallium(III) arsenide.
 
#define EgSi   1.11
 Energy gap at 300K in eV of Silicon.
 
#define EgSchottky   0.69
 Energy gap at 300K in eV of Schottky.
 
#define EgGe   0.67
 Energy gap at 300K in eV of Germanium.
 
#define EgGaAs   1.43
 Energy gap at 300K in eV of Gallium(III) arsenide.
 
#define Eg0Si   1.16
 Energy gap at 0K in eV of Silicon.
 
#define GMin   NR_TINY
 Gmin.
 
#define sqr(x)   ((x) * (x))
 Square a value.
 
#define cubic(x)   ((x) * (x) * (x))
 cube function
 
#define quadr(x)   (exp (4 * log (fabs (x))))
 quad function
 
#define coth(x)   (1.0 / tanh (x))
 hyperbolic cotangent
 
#define sech(x)   (1.0 / cosh (x))
 hyperbolic secant
 
#define cosech(x)   (1.0 / sinh (x))
 hyperbolic cosecant
 
#define kelvin(x)   ((x) - K)
 Convert kelvin to celcius.
 
#define degree(x)   (K + (x))
 Convert celcius to kelvin.
 
#define rad(x)   (M_PI * (x) / 180.0)
 Convert degree to radian.
 
#define deg(x)   (180.0 * (x) / M_PI)
 Convert radian to degree.
 
#define MAX(x, y)   (((x) > (y)) ? (x) : (y))
 Maximum of x and y.
 
#define MIN(x, y)   (((x) < (y)) ? (x) : (y))
 Minimum of x and y.
 

Detailed Description

global natural constant header file

Todo:
Create a material header

Definition in file constants.h.

Macro Definition Documentation

#define C0   299792458.0

speed of light in vacuum ( $c_0$)

Definition at line 36 of file constants.h.

#define cosech (   x)    (1.0 / sinh (x))

hyperbolic cosecant

Todo:
Better as static inline

Definition at line 125 of file constants.h.

#define coth (   x)    (1.0 / tanh (x))

hyperbolic cotangent

Todo:
Better as static inline

Definition at line 117 of file constants.h.

#define cubic (   x)    ((x) * (x) * (x))

cube function

Parameters
[in]xvalue to put at cube
Returns
Cubed expression
Todo:
static inline

Definition at line 104 of file constants.h.

#define deg (   x)    (180.0 * (x) / M_PI)

Convert radian to degree.

Todo:

Better as static inline

Rename as rad2deg

Definition at line 145 of file constants.h.

#define degree (   x)    (K + (x))

Convert celcius to kelvin.

Todo:

Better as static inline

Rename as celcius2kelvin

Definition at line 135 of file constants.h.

#define E0   8.854187817e-12

Electric constant of vacuum $\varepsilon_0$.

Definition at line 40 of file constants.h.

#define Eg0Si   1.16

Energy gap at 0K in eV of Silicon.

Definition at line 86 of file constants.h.

#define EGaAs   13.1

Relative permittivity of Gallium(III) arsenide.

Definition at line 68 of file constants.h.

#define EGe   15.8

relative permittivity of Germanium

Definition at line 66 of file constants.h.

#define EgGaAs   1.43

Energy gap at 300K in eV of Gallium(III) arsenide.

Definition at line 84 of file constants.h.

#define EgGe   0.67

Energy gap at 300K in eV of Germanium.

Definition at line 82 of file constants.h.

#define EgSchottky   0.69

Energy gap at 300K in eV of Schottky.

Todo:
What kind of metal (ideal, real, gold)?

Definition at line 80 of file constants.h.

#define EgSi   1.11

Energy gap at 300K in eV of Silicon.

Definition at line 76 of file constants.h.

#define ESi   11.7

Relative permittivity of Silicon.

Definition at line 64 of file constants.h.

#define ESiO2   3.9

Relative permittivity of Silicon dioxide (Silica)

Definition at line 62 of file constants.h.

#define GMin   NR_TINY

Gmin.

Todo:
Define and document

Definition at line 91 of file constants.h.

#define H   6.626069311e-34

Planck constant ( $h$)

Todo:
Add h bar ( $h/(2\pi)$)

Definition at line 46 of file constants.h.

#define K   -273.15

Absolute 0 in centigrade.

Definition at line 48 of file constants.h.

#define kB   1.380650524e-23

Boltzmann constant ( $k_B$)

Definition at line 53 of file constants.h.

#define kBoverQ   0.86173433260414314916e-4

Boltzmann constant over Elementary charge ( $k_B/q_e$)

Definition at line 57 of file constants.h.

#define kelvin (   x)    ((x) - K)

Convert kelvin to celcius.

Todo:

Better as static inline

Rename as kelvin2celcius

Definition at line 130 of file constants.h.

#define MAX (   x,
 
)    (((x) > (y)) ? (x) : (y))

Maximum of x and y.

Definition at line 149 of file constants.h.

#define MIN (   x,
 
)    (((x) < (y)) ? (x) : (y))

Minimum of x and y.

Definition at line 154 of file constants.h.

#define MU0   12.566370614e-7

magnetic constant of vacuum ( $\mu_0=4\pi\times10^{-7}$)

Definition at line 38 of file constants.h.

#define NiGaAs   9.00e12

Intrinsic carrier concentration in 1/m^3 of Gallium(III) arsenide.

Definition at line 74 of file constants.h.

#define NiGe   2.40e19

Intrinsic carrier concentration in 1/m^3 of Germanium.

Definition at line 72 of file constants.h.

#define NiSi   1.45e16

Intrinsic carrier concentration in 1/m^3 of Silicon.

Definition at line 70 of file constants.h.

#define Q   1.6021765314e-19

Elementary charge ( $q_e$)

Definition at line 55 of file constants.h.

#define QoverkB   1.16045045690360379713e+4

Elementary charge over Boltzmann constant ( $q_e/k_B$)

Definition at line 59 of file constants.h.

#define quadr (   x)    (exp (4 * log (fabs (x))))

quad function

Parameters
[in]xfunction parameter
Returns
$x^4$
Todo:
will be better to implement as static inline because we could do something like tmp = sqr(x); return sqr(tmp);

Definition at line 113 of file constants.h.

#define rad (   x)    (M_PI * (x) / 180.0)

Convert degree to radian.

Todo:

Better as static inline

Rename as deg2rad

Definition at line 140 of file constants.h.

#define sech (   x)    (1.0 / cosh (x))

hyperbolic secant

Todo:
Better as static inline

Definition at line 121 of file constants.h.

#define sqr (   x)    ((x) * (x))

Square a value.

Parameters
[in]xvalue to square
Returns
squarred expression
Todo:
static inline

Definition at line 98 of file constants.h.

#define T0   290

standard temperature

Definition at line 50 of file constants.h.

#define Z0   376.73031346958504364963

Wave impedance in vacuum ( $Z_0=\sqrt{\frac{\mu_0}{\varepsilon_0}}$)

Definition at line 42 of file constants.h.