OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
Constants

Definitions of physical and mathematical constants. More...

Variables

const Complex bem::J = Complex(0.0, 1.0)
 Imaginary unit.
 
const Float bem::zero = 0.0
 
const Float bem::one = 1.0
 
const Float bem::two = 2.0
 
const Float bem::four = 4.0
 
const Float bem::half = 0.5
 
const Float bem::pi = M_PI
 
const Float bem::two_pi = (Float)(2.0 * M_PI)
 
const Float bem::four_pi = (Float)(4.0 * M_PI)
 
const Float bem::half_pi = (Float)(0.5 * M_PI)
 
const Float bem::quarter_pi = (Float)(M_PI / 4.0)
 
const Float bem::eps0 = 8.854187817e-12
 Vacuum permittivity.
 
const Float bem::mu0 = four_pi * 1.0e-7
 Vacuum permeability.
 
const Float bem::c0 = 1.0 / std::sqrt(eps0 * mu0)
 Vacuum wave speed.
 
const Float bem::eta0 = std::sqrt(mu0 / eps0)
 Vacuum wave impedance.
 
const Float bem::inf = std::numeric_limits<Float>::infinity()
 Numerical infinity.
 
const Float bem::float_eps = std::numeric_limits<Float>::epsilon()
 Numerical infinitesimal.
 

Variable Documentation

◆ J

const Complex bem::J = Complex(0.0, 1.0)

Imaginary unit.

Examples
/examples/ex02_assemblers.cpp.

Definition at line 40 of file constants.hpp.

◆ zero

const Float bem::zero = 0.0

Definition at line 42 of file constants.hpp.

◆ one

const Float bem::one = 1.0

Definition at line 43 of file constants.hpp.

◆ two

const Float bem::two = 2.0

Definition at line 44 of file constants.hpp.

◆ four

const Float bem::four = 4.0

Definition at line 45 of file constants.hpp.

◆ half

const Float bem::half = 0.5

Definition at line 46 of file constants.hpp.

◆ pi

const Float bem::pi = M_PI

Definition at line 48 of file constants.hpp.

◆ two_pi

const Float bem::two_pi = (Float)(2.0 * M_PI)

Definition at line 49 of file constants.hpp.

◆ four_pi

const Float bem::four_pi = (Float)(4.0 * M_PI)

Definition at line 50 of file constants.hpp.

◆ half_pi

const Float bem::half_pi = (Float)(0.5 * M_PI)

Definition at line 51 of file constants.hpp.

◆ quarter_pi

const Float bem::quarter_pi = (Float)(M_PI / 4.0)

Definition at line 52 of file constants.hpp.

◆ eps0

const Float bem::eps0 = 8.854187817e-12

Vacuum permittivity.

Definition at line 55 of file constants.hpp.

◆ mu0

const Float bem::mu0 = four_pi * 1.0e-7

Vacuum permeability.

Definition at line 58 of file constants.hpp.

◆ c0

const Float bem::c0 = 1.0 / std::sqrt(eps0 * mu0)

Vacuum wave speed.

Examples
/examples/ex01_start_here.cpp, and /examples/ex02_assemblers.cpp.

Definition at line 61 of file constants.hpp.

◆ eta0

const Float bem::eta0 = std::sqrt(mu0 / eps0)

Vacuum wave impedance.

Examples
/examples/ex01_start_here.cpp, and /examples/ex02_assemblers.cpp.

Definition at line 64 of file constants.hpp.

◆ inf

const Float bem::inf = std::numeric_limits<Float>::infinity()

Numerical infinity.

Definition at line 67 of file constants.hpp.

◆ float_eps

const Float bem::float_eps = std::numeric_limits<Float>::epsilon()

Numerical infinitesimal.

Definition at line 70 of file constants.hpp.