ARTS  2.4.0(git:4fb77825)
species_info.cc
Go to the documentation of this file.
1 /* Copyright 2018, Richard Larsson.
2  *
3  * This program is free software; you can redistribute it and/or modify it
4  * under the terms of the GNU General Public License as published by the
5  * Free Software Foundation; either version 2, or (at your option) any
6  * later version.
7  *
8  * This program is distributed in the hope that it will be useful,
9  * but WITHOUT ANY WARRANTY; without even the implied warranty of
10  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
11  * GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software Foundation,
15  * Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16  */
17 
26 #include "species_info.h"
27 #include "absorption.h"
28 #include "wigner_functions.h"
29 
30 Numeric get_lande_spin_constant(const Index species) noexcept {
31  if (species_index_from_species_name("O2") == species)
32  return 2.002064;
33  else if (species_index_from_species_name("NO") == species)
34  return 2.00071;
35  else if (species_index_from_species_name("OH") == species)
36  return 2.00089;
37  else if (species_index_from_species_name("ClO") == species)
38  return 2.00072;
39  else if (species_index_from_species_name("SO") == species)
40  return 2.002106;
41  else
42  return 2.00231930436182;
43 }
44 
45 Numeric get_lande_lambda_constant() noexcept { return 1.0; }
absorption.h
Declarations required for the calculation of absorption coefficients.
wigner_functions.h
Wigner symbol interactions.
get_lande_lambda_constant
Numeric get_lande_lambda_constant() noexcept
Get the Lande Lambda constant.
Definition: species_info.cc:45
get_lande_spin_constant
Numeric get_lande_spin_constant(const Index species) noexcept
Get the Lande spin constant.
Definition: species_info.cc:30
species_index_from_species_name
Index species_index_from_species_name(String name)
Return species index for given species name.
Definition: absorption.cc:531
species_info.h
Some molecular constants.
Numeric
NUMERIC Numeric
The type to use for all floating point numbers.
Definition: matpack.h:33
Index
INDEX Index
The type to use for all integer numbers and indices.
Definition: matpack.h:39