Phoxonics  1.0
Object Oriented FDTD Software
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Pages
EmConstants.hpp
Go to the documentation of this file.
1 /*
2  * EmConstants.hpp
3  *
4  * Created on: Jun 25, 2014
5  * Author: nano
6  */
7 
8 #ifndef EMCONSTANTS_HPP_
9 #define EMCONSTANTS_HPP_
10 
11 #include <cmath>
12 
13 namespace phoxonics {
14 namespace core {
15 
16 struct EmConstants {
17  // electric constants
18 
19  // permittivity of free space
20  // [eps] = eps0 [epsr]
21  double const eps_0 { 8.854187817e-12 }; // F/m
22 
23  // magnetic constants
24  // permeability of free space
25  // [mu] = mu0 [mur]
26  // mu = 4pix10e-7 H/m
27  double const mu_0 { 4 * M_PI * 1e-7 }; // H/m
28 
29  // impedance of free space
30  // n0 = 120pi Ohms
31  double const eta_0 { 376.73031346177 }; // Ohms
32 
33  // speed of light
34  //double const c { 1 / std::sqrt(mu_0 * eps_0) };
35  double const c { 299792458 }; // m/s
36 
37  // courant number
38  double const courant { 0.5 };
39 
40  // sources constants
41  static double lambda_0;
42  static double tao_0;
43 };
44 
45 } /* namespace core */
46 } /* namespace phoxonics */
47 
48 #endif /* EMCONSTANTS_HPP_ */
Definition: CommonBase.hpp:14
double const mu_0
Definition: EmConstants.hpp:27
static double lambda_0
Definition: EmConstants.hpp:41
double const c
Definition: EmConstants.hpp:35
double const eta_0
Definition: EmConstants.hpp:31
Definition: EmConstants.hpp:16
double const courant
Definition: EmConstants.hpp:38
static double tao_0
Definition: EmConstants.hpp:42
double const eps_0
Definition: EmConstants.hpp:21