|
ARTS
2.3.1285(git:92a29ea9-dirty)
|
Internal functions for microphysics calculations (size distributions etc.) More...
#include "microphysics.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 | |
| 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 | |
| const Numeric | PI |
| const Numeric | DENSITY_OF_ICE |
| const Numeric | DENSITY_OF_WATER |
Internal functions for microphysics calculations (size distributions etc.)
Internal functions associated with size distributions
Definition in file microphysics.cc.
| 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].
| x | Size grid |
| mass | Particle masses |
| x_fit_start | Start point of x-range to use for fitting |
| x_fit_end | Endpoint of x-range to use for fitting |
Definition at line 77 of file microphysics.cc.
References get_sorted_indexes(), i, linreg(), ConstVectorView::nelem(), and q.
Referenced by ScatSpeciesSizeMassInfo().
| const Numeric DENSITY_OF_ICE |
| const Numeric DENSITY_OF_WATER |
| const Numeric PI |