Flow123d  jenkins-Flow123d-windows32-release-multijob-51
isotherm.cc
Go to the documentation of this file.
1 /*
2  * isotherm.cc
3  *
4  * Created on: Mar 15, 2013
5  * Author: lukas
6  */
7 #include <utility>
8 
9 #include "reaction/isotherm.hh"
10 
11 void Isotherm::make_table(int nr_of_points)
12 {
13  if(table_limit_ > 0.0) switch(adsorption_type_)
14  {
15  case 0: // none
16  {
17  Linear obj_isotherm(0.0);
18  make_table(obj_isotherm, 1);
19  }
20  break;
21  case 1: // linear:
22  {
23  Linear obj_isotherm(mult_coef_);
24  make_table(obj_isotherm, nr_of_points);
25  }
26  break;
27  case 2: // freundlich:
28  {
29  Freundlich obj_isotherm(mult_coef_, second_coef_);
30  make_table(obj_isotherm, nr_of_points);
31  }
32  break;
33  case 3: // langmuir:
34  {
35  Langmuir obj_isotherm(mult_coef_, second_coef_);
36  make_table(obj_isotherm, nr_of_points);
37  }
38  break;
39  default:
40  {
41  ;
42  }
43  break;
44  }
45  return;
46 }
47 
double mult_coef_
Multiplication parameter of the isotherm.
Definition: isotherm.hh:228
double second_coef_
Optional secod parameter of the isotherm.
Definition: isotherm.hh:231
void make_table(int n_points)
Definition: isotherm.cc:11
double table_limit_
Definition: isotherm.hh:236
enum SorptionType adsorption_type_
Type of isotherm.
Definition: isotherm.hh:225