ARTS
2.3.1285(git:92a29ea9-dirty)
|
This file contains the code of functions of physical character. More...
#include "physics_funcs.h"
#include <cmath>
#include <stdexcept>
#include "messages.h"
#include "mystring.h"
Go to the source code of this file.
Functions | |
Numeric | barometric_heightformula (const Numeric &p, const Numeric &dh) |
barometric_heightformula More... | |
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 | dnumber_density_dt (const Numeric &p, const Numeric &t) |
dnumber_density_dT More... | |
Numeric | planck (const Numeric &f, const Numeric &t) |
planck More... | |
void | planck (VectorView b, ConstVectorView f, const Numeric &t) |
planck More... | |
Numeric | dplanck_dt (const Numeric &f, const Numeric &t) |
dplanck_dt More... | |
void | dplanck_dt (VectorView dbdt, ConstVectorView f, const Numeric &t) |
dplanck_dt More... | |
Numeric | dplanck_df (const Numeric &f, const Numeric &t) |
dplanck_df More... | |
Numeric | rayjean (const Numeric &f, const Numeric &tb) |
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
Barometric heightformula for isothermal earth atmosphere.
[in] | p | Atmospheric pressure at starting level [Pa]. |
[in] | dh | Vertical displacement to starting pressure level [m]. |
Definition at line 62 of file physics_funcs.cc.
References M.
Referenced by cloudboxSetAutomatically().
dinvplanckdI
Calculates the derivative of inverse-Planck with respect to intensity.
[in] | i | Radiance. |
[in] | f | Frequency. |
Definition at line 98 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by apply_iy_unit2().
dnumber_density_dT
Calculates the atmospheric number density derivative with temperature.
[in] | p | Pressure. |
[in] | t | Temperature. |
Definition at line 243 of file physics_funcs.cc.
References BOLTZMAN_CONST.
Referenced by abs_coefCalcFromXsec(), and zeeman_on_the_fly().
dplanck_df
Calculates the frequency derivative of the Planck function for a single temperature and frequency.
[in] | f | Frequency. |
[in] | t | Temperature. |
Definition at line 407 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by nlte_sourceFromTemperatureAndSrcCoefPerSpecies().
dplanck_dt
Calculates the temperature derivative of the Planck function for a single temperature and frequency.
[in] | f | Frequency. |
[in] | t | Temperature. |
Definition at line 337 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by dplanck_dt(), get_stepwise_blackbody_radiation(), nlte_sourceFromTemperatureAndSrcCoefPerSpecies(), and zeeman_on_the_fly().
void dplanck_dt | ( | VectorView | dbdt, |
ConstVectorView | f, | ||
const Numeric & | t | ||
) |
dplanck_dt
Calculates the Planck function temperature derivative for a single temperature and a vector of frequencies.
[in] | f | Frequency. |
[in] | t | Temperature. |
Definition at line 369 of file physics_funcs.cc.
References dplanck_dt(), i, and ConstVectorView::nelem().
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.
[out] | Rv | Reflection coefficient for vertical polarisation. |
[out] | Rh | Reflection coefficient for vertical polarisation. |
[in] | n1 | Refractive index of medium where radiation propagates. |
[in] | n2 | Refractive index of reflecting medium. |
[in] | theta | Propagation angle from normal of radiation to be. reflected |
Definition at line 135 of file physics_funcs.cc.
References DEG2RAD.
Referenced by surfaceFlatRefractiveIndex().
invplanck
Converts a radiance to Planck brightness temperature.
[in] | i | Radiance. |
[in] | f | Frequency. |
Definition at line 165 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.
[in] | i | Radiance. |
[in] | f | Frequency. |
Definition at line 192 of file physics_funcs.cc.
References BOLTZMAN_CONST, and SPEED_OF_LIGHT.
Referenced by apply_iy_unit(), apply_iy_unit2(), cloudbox_fieldUpdateSeq1D(), doit_conv_flagAbsBT(), doit_conv_flagLsq(), and MCIPA().
number_density
Calculates the atmospheric number density.
[in] | p | Pressure. |
[in] | t | Temperature. |
Definition at line 219 of file physics_funcs.cc.
References BOLTZMAN_CONST.
Referenced by abs_coefCalcFromXsec(), dxdvmrscf(), rtmethods_jacobian_finalisation(), vmrunitscf(), x2artsAtmAndSurf(), xaStandard(), and zeeman_on_the_fly().
planck
Calculates the Planck function for a single temperature.
Note that this expression gives the intensity for both polarisations.
[in] | f | Frequency. |
[in] | t | Temperature. |
Definition at line 269 of file physics_funcs.cc.
References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.
Referenced by get_stepwise_blackbody_radiation(), MatrixCBR(), MatrixPlanck(), MCGeneral(), MCIPA(), nlte_sourceFromTemperatureAndSrcCoefPerSpecies(), planck(), surface_specular_R_and_b(), surfaceBlackbody(), surfaceFastem(), surfaceFlatRvRh(), surfaceFlatScalarReflectivity(), surfaceLambertianSimple(), and zeeman_on_the_fly().
void planck | ( | VectorView | b, |
ConstVectorView | f, | ||
const Numeric & | t | ||
) |
planck
Calculates the Planck function for a single temperature and a vector of frequencies.
Note that this expression gives the intensity for both polarisations.
[in] | f | Frequency. |
[in] | t | Temperature. |
Definition at line 299 of file physics_funcs.cc.
References i, ConstVectorView::nelem(), and planck().
rayjean
Converts a Rayleigh-Jean brightness temperature to radiance
[in] | tb | RJ brightness temperature. |
[in] | f | Frequency. |
Definition at line 438 of file physics_funcs.cc.
References BOLTZMAN_CONST, and SPEED_OF_LIGHT.
const Numeric BOLTZMAN_CONST |
Referenced by dinvplanckdI(), dnumber_density_dt(), dplanck_df(), dplanck_dt(), invplanck(), invrayjean(), number_density(), planck(), and rayjean().
const Numeric PLANCK_CONST |
Referenced by dinvplanckdI(), dplanck_df(), dplanck_dt(), invplanck(), and planck().
const Numeric SPEED_OF_LIGHT |
Referenced by dinvplanckdI(), dplanck_df(), dplanck_dt(), invplanck(), invrayjean(), planck(), and rayjean().