41 const Index& stokes_dim,
45 const Index n = f.nelem();
47 if (n == 0)
throw runtime_error(
"The given frequency vector is empty.");
49 m.resize(n, stokes_dim);
59 const Index& stokes_dim,
66 const Index n = f.nelem();
68 if (n == 0)
throw runtime_error(
"The given frequency vector is empty.");
70 out2 <<
" Setting blackbody radiation for a temperature of " << t <<
" K.\n";
72 m.resize(n, stokes_dim);
82 const Index& stokes_dim,
88 const Index n = f.nelem();
90 if (n == 0)
throw runtime_error(
"The given frequency vector is empty.");
92 out2 <<
" Setting unpolarised radiation with an intensity of 1.\n";
94 m.resize(n, stokes_dim);
97 for (Index i = 0; i < n; i++) {
104 const Tensor3& t_field,
105 const Index& only_liquid,
107 const Index n1 = t_field.npages();
108 const Index n2 = t_field.nrows();
109 const Index n3 = t_field.ncols();
111 water_p_eq_field.resize(n1, n2, n3);
113 for (Index i = 0; i < n1; i++) {
114 for (Index j = 0; j < n2; j++) {
115 for (Index k = 0; k < n3; k++) {
116 const Numeric t = t_field(i, j, k);
118 water_p_eq_field(i, j, k) =
119 exp(54.842763 - 6763.22 / t - 4.21 * log(t) + 0.000367 * t +
120 tanh(0.0415 * (t - 218.8)) *
121 (53.878 - 1331.22 / t - 9.44523 * log(t) + 0.014025 * t));
123 water_p_eq_field(i, j, k) =
124 exp(9.550426 - 5723.265 / t + 3.53068 * log(t) - 0.00728332 * t);
The global header file for ARTS.
Constants of physical expressions as constexpr.
void water_p_eq_fieldMK05(Tensor3 &water_p_eq_field, const Tensor3 &t_field, const Index &only_liquid, const Verbosity &)
WORKSPACE METHOD: water_p_eq_fieldMK05.
void MatrixPlanck(Matrix &m, const Index &stokes_dim, const Vector &f, const Numeric &t, const Verbosity &verbosity)
WORKSPACE METHOD: MatrixPlanck.
void MatrixUnitIntensity(Matrix &m, const Index &stokes_dim, const Vector &f, const Verbosity &verbosity)
WORKSPACE METHOD: MatrixUnitIntensity.
constexpr Numeric COSMIC_BG_TEMP
constexpr Numeric TEMP_0_C
void MatrixCBR(Matrix &m, const Index &stokes_dim, const Vector &f, const Verbosity &)
WORKSPACE METHOD: MatrixCBR.
Declarations having to do with the four output streams.
constexpr Numeric cosmic_microwave_background_temperature
Global constant, Planck temperature for cosmic background radiation [K].
constexpr Numeric temperature_at_0c
Global constant, Temperature in Celsius of 0 Kelvin.
Numeric planck(const Numeric &f, const Numeric &t)
planck
This file contains declerations of functions of physical character.