physics_funcs.cc File Reference

#include <cmath>
#include <stdexcept>
#include "physics_funcs.h"
#include "messages.h"
#include "mystring.h"

Include dependency graph for physics_funcs.cc:

Go to the source code of this file.

Functions

void fresnel (Complex &Rv, Complex &Rh, const Complex &n1, const Complex &n2, const Numeric &theta)
 fresnel
Numeric invplanck (const Numeric &i, const Numeric &f)
 invplanck
Numeric invrayjean (const Numeric &i, const Numeric &f)
 invrayjean
Numeric number_density (const Numeric &p, const Numeric &t)
 number_density
Numeric planck (const Numeric &f, const Numeric &t)
 planck

Variables

const Numeric BOLTZMAN_CONST
const Numeric DEG2RAD
const Numeric PLANCK_CONST
const Numeric SPEED_OF_LIGHT


Detailed Description

Author:
Patrick Eriksson <Patrick.Eriksson@rss.chalmers.se>
Date:
2002-05-08
This file contains the code of functions of physical character. Modified by Claudia Emde (2002-05-28).

Definition in file physics_funcs.cc.


Function Documentation

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.

Parameters:
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
Author:
Patrick Eriksson
Date:
2004-09-21

Definition at line 80 of file physics_funcs.cc.

References DEG2RAD.

Referenced by surfaceFlatRefractiveIndex().

Numeric invplanck ( const Numeric i,
const Numeric f 
)

invplanck

Converts a radiance to Plack brightness temperature.

Returns:
Planck brightness temperature
Parameters:
i radiance
f frequency
Author:
Patrick Eriksson
Date:
2002-08-11

Definition at line 112 of file physics_funcs.cc.

References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.

Referenced by apply_y_unit(), Tensor6ToPlanckBT(), ybatchUnit(), and yUnit().

Numeric invrayjean ( const Numeric i,
const Numeric f 
)

invrayjean

Converts a radiance to Rayleigh-Jean brightness temperature.

Returns:
RJ brightness temperature
Parameters:
i radiance
f frequency
Author:
Patrick Eriksson
Date:
2000-09-28

Definition at line 139 of file physics_funcs.cc.

References BOLTZMAN_CONST, and SPEED_OF_LIGHT.

Referenced by apply_y_unit(), doit_conv_flagAbsBT(), doit_conv_flagLsq(), MCGeneral(), MCIPA(), ybatchUnit(), and yUnit().

Numeric number_density ( const Numeric p,
const Numeric t 
)

number_density

Calculates the atmospheric number density.

Returns:
number density
Parameters:
p pressure
t temperature
Author:
Patrick Eriksson
Date:
2000-04-08

Definition at line 167 of file physics_funcs.cc.

References BOLTZMAN_CONST.

Referenced by abs_coefCalcFromXsec(), calc_nd_field(), GasAbsLookup::Extract(), and RteCalc().

Numeric planck ( const Numeric f,
const Numeric t 
)

planck

Calculates the Planck function for a single temperature.

Note that this expression gives the intensity for both polarisations.

Returns:
blackbody radiation
Parameters:
f frequency
t temperature
Author:
Patrick Eriksson
Date:
2000-04-08

Definition at line 191 of file physics_funcs.cc.

References BOLTZMAN_CONST, PLANCK_CONST, and SPEED_OF_LIGHT.

Referenced by cloud_ppath_update1D_planeparallel(), cloud_RT_no_background(), emissionPlanck(), MatrixCBR(), MatrixPlanck(), MCGeneral(), MCIPA(), ScatteringMonteCarlo(), surface_specular_R_and_b(), surfaceBlackbody(), and surfaceFlatVaryingEmissivity().


Variable Documentation


Generated on Mon Mar 23 14:06:49 2009 for ARTS by  doxygen 1.5.6