64 Numeric p1 = p * exp(-(-dh) / (R * T / (M * g)));
87 const Numeric
d =
b * f * f * f / i;
88 const Numeric binv =
a * f / log1p(
d);
90 return binv * binv / (
a * f * i * (1 /
d + 1));
117 const Numeric& theta) {
118 const Numeric theta1 =
DEG2RAD * theta;
119 const Numeric costheta1 = cos(theta1);
120 const Numeric costheta2 = cos(asin(n1.real() * sin(theta1) / n2.real()));
125 Rv = (
a -
b) / (
a +
b);
128 Rh = (
a -
b) / (
a +
b);
150 return (
a * f) / log1p((
b * f * f * f) / i);
169 static const Numeric
a =
172 return (
a * i) / (f * f);
189Numeric
planck(
const Numeric& f,
const Numeric& t) {
214void planck(VectorView
b,
const ConstVectorView& f,
const Numeric& t) {
216 "Vector size mismatch: frequency dim is bad")
217 for (Index i = 0; i < f.nelem(); i++)
b[i] =
planck(f[i], t);
235Vector
planck(
const ConstVectorView& f,
const Numeric& t) {
237 for (Index i = 0; i < f.nelem(); i++)
b[i] =
planck(f[i], t);
262 const Numeric inv_exp_t_m1 = 1.0 / std::expm1(
b * f / t);
280void dplanck_dt(VectorView dbdt,
const ConstVectorView& f,
const Numeric& t) {
282 "Vector size mismatch: frequency dim is bad")
283 for (Index i = 0; i < f.nelem(); i++) dbdt[i] =
dplanck_dt(f[i], t);
299Vector
dplanck_dt(
const ConstVectorView& f,
const Numeric& t) {
300 Vector dbdt(f.nelem());
301 for (Index i = 0; i < f.nelem(); i++) dbdt[i] =
dplanck_dt(f[i], t);
325 const Numeric inv_exp_t_m1 = 1.0 / std::expm1(
b * f / t);
327 return a *
Math::pow2(f) * (3.0 - (
b * f / t) * (1 + inv_exp_t_m1)) * inv_exp_t_m1;
343Vector
dplanck_df(
const ConstVectorView& f,
const Numeric& t) {
344 Vector dbdf(f.nelem());
345 for (Index i = 0; i < f.nelem(); i++) dbdf[i] =
dplanck_df(f[i], t);
361Numeric
rayjean(
const Numeric& f,
const Numeric& tb) {
365 static const Numeric
a =
368 return (f * f) / (
a * tb);
Constants of physical expressions as constexpr.
#define ARTS_USER_ERROR_IF(condition,...)
Declarations having to do with the four output streams.
This file contains the definition of String, the ARTS string class.
constexpr Numeric boltzmann_constant
Boltzmann constant [J/K] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date:...
constexpr Numeric k
Boltzmann constant convenience name [J/K].
constexpr Numeric speed_of_light
Speed of light [m/s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 201...
constexpr Numeric planck_constant
Planck constant [J s] From: https://en.wikipedia.org/wiki/2019_redefinition_of_SI_base_units Date: 20...
constexpr Numeric c
Speed of light convenience name [m/s].
constexpr Numeric h
Planck constant convenience name [J s].
constexpr auto deg2rad(auto x) noexcept
Converts degrees to radians.
constexpr auto pow3(auto x) noexcept
power of three
constexpr auto pow4(auto x) noexcept
power of four
constexpr auto pow2(auto x) noexcept
power of two
constexpr Numeric PLANCK_CONST
constexpr Numeric BOLTZMAN_CONST
Numeric dplanck_df(const Numeric &f, const Numeric &t)
dplanck_df
constexpr Numeric SPEED_OF_LIGHT
constexpr Numeric DEG2RAD
Numeric dinvplanckdI(const Numeric &i, const Numeric &f)
dinvplanckdI
Numeric planck(const Numeric &f, const Numeric &t)
planck
Numeric barometric_heightformula(const Numeric &p, const Numeric &dh)
barometric_heightformula
Numeric invrayjean(const Numeric &i, const Numeric &f)
invrayjean
Numeric invplanck(const Numeric &i, const Numeric &f)
invplanck
Numeric dplanck_dt(const Numeric &f, const Numeric &t)
dplanck_dt
void fresnel(Complex &Rv, Complex &Rh, const Complex &n1, const Complex &n2, const Numeric &theta)
fresnel
Numeric rayjean(const Numeric &f, const Numeric &tb)
rayjean
This file contains declerations of functions of physical character.