GOAT (Geometrical optics application tool) 0.1
Loading...
Searching...
No Matches
fresnel.h File Reference
#include <complex>
#include "vector.h"

Go to the source code of this file.

Namespaces

namespace  GOAT
 This class is used for the iray class. This class is intended for internal use only. It defines a plane, defined by a central position and two directional vectors.
namespace  GOAT::maths

Macros

#define PARALLEL   0
 used to determine the direction of the polarization
#define PERPENDICULAR   1
 used to determine the direction of the polarization
#define SENKRECHT   1
 used to determine the direction of the polarization

Functions

double GOAT::maths::abs (std::complex< double > x)
 absolute value of the complex valued variable x
std::complex< double > GOAT::maths::freflect (int pol, double alpha, std::complex< double > n1, std::complex< double > n2)
 Calculates the Fresnel coefficient for reflection This function calculates the amplitude Fresnel coefficient for the reflected part of the ray.
std::complex< double > GOAT::maths::Fresnel_reflect (int pol, Vector< double > k, Vector< double > n, std::complex< double > n1, std::complex< double > n2)
 Calculates the Fresnel coefficient for reflection This function calculates the amplitude Fresnel coefficient for the reflected part of the ray.
std::complex< double > GOAT::maths::Fresnel_trans (int pol, Vector< double > k, Vector< double > n, std::complex< double > n1, std::complex< double > n2)
 Calculates the Fresnel coefficient for transmission This function calculates the amplitude Fresnel coefficient for the transmitted part of the ray.
std::complex< double > GOAT::maths::ftrans (int pol, double alpha, std::complex< double > n1, std::complex< double > n2)
 Calculates the Fresnel coefficient for transmission This function calculates the amplitude Fresnel coefficient for the transmitted part of the ray.
double GOAT::maths::sqr (double x)
 square of x

Macro Definition Documentation

◆ PARALLEL

#define PARALLEL   0

used to determine the direction of the polarization

Definition at line 16 of file fresnel.h.

◆ PERPENDICULAR

#define PERPENDICULAR   1

used to determine the direction of the polarization

Definition at line 12 of file fresnel.h.

◆ SENKRECHT

#define SENKRECHT   1

used to determine the direction of the polarization

Definition at line 11 of file fresnel.h.