ARTS 2.5.11 (git: 6827797f)
microphysics.cc File Reference

Internal functions for microphysics calculations (size distributions etc.) More...

#include "microphysics.h"
#include "arts_constants.h"
#include "arts_conversions.h"
#include <algorithm>
#include <cmath>
#include <ctime>
#include <limits>
#include <stdexcept>
#include "arts.h"
#include "check_input.h"
#include "cloudbox.h"
#include "lin_alg.h"
#include "logic.h"
#include "math_funcs.h"
#include "mc_antenna.h"
#include "messages.h"
#include "physics_funcs.h"
#include "ppath.h"
#include "psd.h"
#include "rng.h"
#include "sorting.h"

Go to the source code of this file.

Functions

Numeric asymmetry_parameter (ConstVectorView sa_grid, ConstVectorView pfun)
 asymmetry_parameter
 
void derive_scat_species_a_and_b (Numeric &a, Numeric &b, const Vector &x, const Vector &mass, const Numeric &x_fit_start, const Numeric &x_fit_end)
 

Variables

constexpr Numeric PI =Constant::pi
 
constexpr Numeric DENSITY_OF_ICE =Constant::density_of_ice_at_0c
 
constexpr Numeric DENSITY_OF_WATER =Constant::denity_of_water_at_4c
 
constexpr Numeric DEG2RAD =Conversion::deg2rad(1)
 

Detailed Description

Internal functions for microphysics calculations (size distributions etc.)

>

Author
Jana Mendrok, Daniel Kreyling, Manfred Brath, Patrick Eriksson
Date
2017-08-01
Author
Jana Mendrok, Patrick Eriksson
Date
2017-11-05

Internal functions associated with size distributions

Definition in file microphysics.cc.

Function Documentation

◆ asymmetry_parameter()

Numeric asymmetry_parameter ( ConstVectorView  za_grid,
ConstVectorView  pfun 
)

asymmetry_parameter

Calculates the asymmetry parameter, TRO data only

Parameters
sa_gridScattering angle grid
pfunPhase function of TRO-type
Returns
Assymetry parameter
Author
Patrick Eriksson
Date
2022-03-06

Definition at line 43 of file microphysics.cc.

References ARTS_ASSERT, DEG2RAD, and trapz().

Referenced by HydrotableCalc().

◆ derive_scat_species_a_and_b()

void derive_scat_species_a_and_b ( Numeric &  a,
Numeric &  b,
const Vector &  x,
const Vector &  mass,
const Numeric &  x_fit_start,
const Numeric &  x_fit_end 
)

Derives a and b for relationship mass = a * x^b

The parameters a and b are derived by a fit including all data inside the size range [x_fit_start,x_fit_end].

The vector x must have been checked to have at least 2 elements.

An error is thrown if less than two data points are found inside [x_fit_start,x_fit_end].

Returns
a Derived a parameter.
b Derived b parameter.
Parameters
xSize grid
massParticle masses
x_fit_startStart point of x-range to use for fitting
x_fit_endEndpoint of x-range to use for fitting
Author
Jana Mendrok, Patrick Eriksson
Date
2017-10-18

Definition at line 79 of file microphysics.cc.

References a, ARTS_ASSERT, b, and get_sorted_indexes().

Referenced by ScatSpeciesSizeMassInfo().

Variable Documentation

◆ DEG2RAD

constexpr Numeric DEG2RAD =Conversion::deg2rad(1)
inlineconstexpr

Definition at line 16 of file microphysics.cc.

Referenced by asymmetry_parameter().

◆ DENSITY_OF_ICE

constexpr Numeric DENSITY_OF_ICE =Constant::density_of_ice_at_0c
inlineconstexpr

Definition at line 14 of file microphysics.cc.

◆ DENSITY_OF_WATER

constexpr Numeric DENSITY_OF_WATER =Constant::denity_of_water_at_4c
inlineconstexpr

Definition at line 15 of file microphysics.cc.

◆ PI

constexpr Numeric PI =Constant::pi
inlineconstexpr

Definition at line 13 of file microphysics.cc.