Flow123d
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  xprintf(MsgDbg,"adsorption_type %d\n",adsorption_type_);
14  if(table_limit_ > 0.0) switch(adsorption_type_)
15  {
16  case 0: // none
17  {
18  Linear obj_isotherm(0.0);
19  make_table(obj_isotherm, 1);
20  }
21  break;
22  case 1: // linear:
23  {
24  Linear obj_isotherm(mult_coef_);
25  make_table(obj_isotherm, nr_of_points);
26  }
27  break;
28  case 2: // freundlich:
29  {
30  Freundlich obj_isotherm(mult_coef_, second_coef_);
31  make_table(obj_isotherm, nr_of_points);
32  }
33  break;
34  case 3: // langmuir:
35  {
36  Langmuir obj_isotherm(mult_coef_, second_coef_);
37  make_table(obj_isotherm, nr_of_points);
38  }
39  break;
40  default:
41  {
42  ;
43  }
44  break;
45  }
46  xprintf(MsgDbg,"interpolation_table.size() is %d\n", interpolation_table.size());
47  return;
48 }
49 
50 
51 
52 /*
53 SorptionType Isotherm::get_sorption_type(void)
54 {
55  return adsorption_type_;
56 }
57 
58 void Isotherm::set_iso_params(SorptionType sorp_type, double mult_coef, double second_coef)
59 {
60  adsorption_type_ = sorp_type;
61  mult_coef_ = mult_coef;
62  second_coef_ = second_coef;
63  return;
64 }
65 
66 void Isotherm::set_kind_of_pores(int kind_of_pores)
67 {
68  kind_of_pores_ = kind_of_pores;
69  return;
70 }
71 */