m_physics.cc File Reference

Workspace methods of physical character. More...

#include "arts.h"
#include "auto_md.h"
#include "check_input.h"
#include "logic.h"
#include "math_funcs.h"
#include "messages.h"
#include "physics_funcs.h"

Include dependency graph for m_physics.cc:

Go to the source code of this file.

Functions

void complex_nWaterLiebe93 (Matrix &complex_n, const Vector &f_grid, const Numeric &t)
 WORKSPACE METHOD: complex_nWaterLiebe93.
void emissionPlanck (Vector &emission, const Vector &f, const Numeric &t)
 WORKSPACE METHOD: emissionPlanck.
void MatrixCBR (Matrix &m, const Index &stokes_dim, const Vector &f)
 WORKSPACE METHOD: MatrixCBR.
void MatrixPlanck (Matrix &m, const Index &stokes_dim, const Vector &f, const Numeric &t)
 WORKSPACE METHOD: MatrixPlanck.
void MatrixUnitIntensity (Matrix &m, const Index &stokes_dim, const Vector &f)
 WORKSPACE METHOD: MatrixUnitIntensity.
void Tensor6ToPlanckBT (Tensor6 &y_out, const Index &scat_f_index, const Vector &f_grid, const Tensor6 &y_in)
 WORKSPACE METHOD: Tensor6ToPlanckBT.

Variables

const Numeric COSMIC_BG_TEMP
const Numeric TEMP_0_C


Detailed Description

Workspace methods of physical character.

Author:
Patrick Eriksson <Patrick.Eriksson@rss.chalmers.se>
Date:
2002-08-20
This file includes workspace methods for operations that have some connection to basic physics. Example of methods are:
1. Setting WSV to hold blackbody radiation.
2. Conversion to brightness temperature.

These functions are listed in the doxygen documentation as entries of the file auto_md.h.

Definition in file m_physics.cc.


Function Documentation

void complex_nWaterLiebe93 ( Matrix complex_n,
const Vector f_grid,
const Numeric t 
)

WORKSPACE METHOD: complex_nWaterLiebe93.

Complex refractive index of liquid water according to Liebe 1993.

The method treats liquid water without salt. Not valid below 10 GHz. Upper frequency limit not known and is here set to 1000 GHz. Model parameters taken from Atmlab function epswater93 (by C. Maetzler), which refer to Liebe 1993 without closer specifications.

Temperature must be between 0 and 100 degrees Celsius.

Global input: <br> t : Temperature [K].

Author:
Patrick Eriksson
Parameters:
[out] complex_n WS Output
[in] f_grid WS Input
[in] t Generic Input

Definition at line 66 of file m_physics.cc.

References chk_if_in_range(), max, min, ConstVectorView::nelem(), out2, out3, Matrix::resize(), and TEMP_0_C.

Referenced by complex_nWaterLiebe93_g().

void emissionPlanck ( Vector emission,
const Vector f_grid,
const Numeric rte_temperature 
)

WORKSPACE METHOD: emissionPlanck.

Emission source term for LTE.

Sets *emission* for cases when emission is considered and local thermodynamic equilibrium is valid.

Author:
Patrick Eriksson
Parameters:
[out] emission WS Output
[in] f_grid WS Input
[in] rte_temperature WS Input

Definition at line 107 of file m_physics.cc.

References ConstVectorView::nelem(), planck(), and Vector::resize().

Referenced by emissionPlanck_g().

void MatrixCBR ( Matrix gout1,
const Index stokes_dim,
const Vector gin1 
)

WORKSPACE METHOD: MatrixCBR.

Sets a matrix to hold cosmic background radiation (CBR).

The CBR is assumed to be un-polarized and Stokes components 2-4 are zero. Number of Stokes components, that equals the number of columns in the created matrix, is determined by *stokes_dim. The number of rows in the created matrix equals the length of the given frequency vector.

The cosmic radiation is modelled as blackbody radiation for the temperature given by the global constant COSMIC_BG_TEMP, set in the file constants.cc. The frequencies are taken from the generic input vector: <br> MatrixCBR(iy_space,f_grid){}

Generic output: <br> Matrix : Matrix with cosmic background radiation.

Generic input: <br> Vector : A set of frequencies.

Author:
Patrick Eriksson
Parameters:
[out] gout1 Generic output
[in] stokes_dim WS Input
[in] gin1 Generic Input

Definition at line 122 of file m_physics.cc.

References COSMIC_BG_TEMP, ConstVectorView::nelem(), planck(), and Matrix::resize().

Referenced by MatrixCBR_g().

void MatrixPlanck ( Matrix gout1,
const Index stokes_dim,
const Vector gin1,
const Numeric gin2 
)

WORKSPACE METHOD: MatrixPlanck.

Sets a matrix to hold blackbody radiation.

Generic output: <br> Matrix : Matrix with blackbody radiation.

Generic input: <br> Vector : A set of frequencies. <br> Numeric : Blackbody temperature.

Author:
Patrick Eriksson
Parameters:
[out] gout1 Generic output
[in] stokes_dim WS Input
[in] gin1 Generic Input
[in] gin2 Generic Input

Definition at line 144 of file m_physics.cc.

References ConstVectorView::nelem(), out2, planck(), and Matrix::resize().

Referenced by MatrixPlanck_g().

void MatrixUnitIntensity ( Matrix gout1,
const Index stokes_dim,
const Vector gin1 
)

WORKSPACE METHOD: MatrixUnitIntensity.

Sets a matrix to hold unpolarised radiation with unit intensity.

Generic output: <br> Matrix : Matrix with unit radiation.

Generic input: <br> Vector : A set of frequencies.

Author:
Patrick Eriksson
Parameters:
[out] gout1 Generic output
[in] stokes_dim WS Input
[in] gin1 Generic Input

Definition at line 171 of file m_physics.cc.

References ConstVectorView::nelem(), out2, and Matrix::resize().

Referenced by MatrixUnitIntensity_g().

void Tensor6ToPlanckBT ( Tensor6 gout1,
const Index f_index,
const Vector f_grid,
const Tensor6 gin1 
)

WORKSPACE METHOD: Tensor6ToPlanckBT.

Converts a Tensor6 of radiances to brightness temperatures by inverting the Planck function.

Generic output: <br> Tensor6 : A Tensor6 with brightness temperature values.

Generic input: <br> Tenosr6 : A Tensor6 with radiance values.

Author:
Claudia Emde
Parameters:
[out] gout1 Generic output
[in] f_index WS Input
[in] f_grid WS Input
[in] gin1 Generic Input

Definition at line 195 of file m_physics.cc.

References invplanck(), ConstTensor6View::nbooks(), ConstTensor6View::ncols(), ConstTensor6View::npages(), ConstTensor6View::nrows(), ns, ConstTensor6View::nshelves(), ConstTensor6View::nvitrines(), and Tensor6::resize().

Referenced by Tensor6ToPlanckBT_g().


Variable Documentation


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