ARTS
2.2.66
|
#include <cmath>
#include <stdexcept>
#include "physics_funcs.h"
#include "messages.h"
#include "mystring.h"
Go to the source code of this file.
Functions | |
Numeric | barometric_heightformula (const Numeric &p, const Numeric &dh) |
Numeric | dinvplanckdI (const Numeric &i, const Numeric &f) |
dinvplanckdI More... | |
void | fresnel (Complex &Rv, Complex &Rh, const Complex &n1, const Complex &n2, const Numeric &theta) |
fresnel More... | |
Numeric | invplanck (const Numeric &i, const Numeric &f) |
invplanck More... | |
Numeric | invrayjean (const Numeric &i, const Numeric &f) |
invrayjean More... | |
Numeric | number_density (const Numeric &p, const Numeric &t) |
number_density More... | |
Numeric | planck (const Numeric &f, const Numeric &t) |
planck More... | |
Numeric | rayjean (const Numeric &f, const Numeric &t) |
rayjean More... | |
Variables | |
const Numeric | BOLTZMAN_CONST |
const Numeric | DEG2RAD |
const Numeric | PLANCK_CONST |
const Numeric | SPEED_OF_LIGHT |
This file contains the code of functions of physical character. Modified by Claudia Emde (2002-05-28).
Definition in file physics_funcs.cc.
barometric heightformula for isothermal earth atmosphere
p | atmospheric pressure at starting level [Pa] |
dh | vertical displacement to starting pressure level [m] |
Definition at line 70 of file physics_funcs.cc.
References M.
Referenced by cloudboxSetAutomatically().
dinvplanckdI
Calculates the derivative of inverse-Planck with respect to intensity.
i | radiance |
f | frequency |
Definition at line 110 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by apply_iy_unit2().
void fresnel | ( | Complex & | Rv, |
Complex & | Rh, | ||
const Complex & | n1, | ||
const Complex & | n2, | ||
const Numeric & | theta | ||
) |
fresnel
Calculates complex AMPLITUDE reflection coeffcients for a specular reflection
The properties of the two involved media are given as the complex refractive index, n. A dielectric constant, eps, is converted as n = sqrt( eps ). The power reflection coefficient, r, for one polarisation is r = abs(R)^2.
Rv | Out: Reflection coefficient for vertical polarisation |
Rh | Out: Reflection coefficient for vertical polarisation |
n1 | In: Refractive index of medium where radiation propagates |
n2 | In: Refractive index of reflecting medium |
theta | In: Propagation angle from normal of radiation to be reflected |
Definition at line 148 of file physics_funcs.cc.
References DEG2RAD.
Referenced by surfaceFlatRefractiveIndex().
invplanck
Converts a radiance to Planck brightness temperature.
i | radiance |
f | frequency |
Definition at line 180 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by apply_iy_unit().
invrayjean
Converts a radiance to Rayleigh-Jean brightness temperature.
i | radiance |
f | frequency |
Definition at line 214 of file physics_funcs.cc.
References BOLTZMAN_CONST, and SPEED_OF_LIGHT.
Referenced by apply_iy_unit(), apply_iy_unit2(), doit_conv_flagAbsBT(), doit_conv_flagLsq(), doit_i_fieldUpdateSeq1D(), MCGeneral(), and MCIPA().
number_density
Calculates the atmospheric number density.
p | pressure |
t | temperature |
Definition at line 237 of file physics_funcs.cc.
References BOLTZMAN_CONST.
Referenced by abs_coefCalcFromXsec(), abs_xsec_per_speciesAddCIA(), calc_nd_field(), GasAbsLookup::Extract(), vmrunitscf(), and xsec_species_line_mixing_wrapper_with_zeeman().
planck
Calculates the Planck function for a single temperature.
Note that this expression gives the intensity for both polarisations.
f | frequency |
t | temperature |
Definition at line 261 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by blackbody_radiationPlanck(), cloud_ppath_update1D_planeparallel(), cloud_RT_no_background(), MatrixCBR(), MatrixPlanck(), MCGeneral(), and MCIPA().
rayjean
Converts a Rayleigh-Jean brightness temperature to radiance
tb | RJ brightness temperature |
f | frequency |
Definition at line 293 of file physics_funcs.cc.
References BOLTZMAN_CONST, and SPEED_OF_LIGHT.
const Numeric BOLTZMAN_CONST |
Referenced by dinvplanckdI(), invplanck(), invrayjean(), number_density(), planck(), and rayjean().
const Numeric PLANCK_CONST |
Referenced by dinvplanckdI(), invplanck(), and planck().
const Numeric SPEED_OF_LIGHT |
Referenced by dinvplanckdI(), invplanck(), invrayjean(), planck(), and rayjean().