OpenBEM
Open-source framework for electromagnetic simulation with the boundary element method.
Loading...
Searching...
No Matches
constants.hpp File Reference
#include <cmath>
#include <limits>
#include "types.hpp"

Go to the source code of this file.

Namespaces

namespace  bem
 Primary namespace for the OpenBEM library.
 

Macros

#define M_PI   3.1415926535897932384626
 

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.
 

Detailed Description

Physical and mathematical constants.

Definition in file constants.hpp.

Macro Definition Documentation

◆ M_PI

#define M_PI   3.1415926535897932384626

Definition at line 27 of file constants.hpp.