Flow123d
reaction.cc
Go to the documentation of this file.
1 #include <iostream>
2 #include <cstring>
3 #include <stdlib.h>
4 #include <math.h>
5 
6 #include "reaction/reaction.hh"
7 #include "system/system.hh"
8 #include "mesh/mesh.h"
9 #include "mesh/elements.h"
10 #include "io/output.h"
11 
12 using namespace Input::Type;
13 using namespace std;
14 
15 
17  = AbstractRecord("ReactionTerm", "Equation for reading information about simple chemical reactions.");
18 
20  = Record("ReactionTermOutput", "Output setting for transport equations.")
22  "Parameters of output stream.");
23 
25  : EquationBase(init_mesh, in_rec),
26  distribution(nullptr),
27  concentration_matrix_(nullptr),
28  el_4_loc(nullptr),
29  row_4_el(nullptr),
30  output_stream_(nullptr)
31 
32 {
33 }
34 
36 {
37 }
38 
39 
40 
41 double **ReactionTerm::compute_reaction(double **concentrations, int loc_el) //multiplication of concentrations array by reaction matrix
42 {
43  cout << "double **ReactionTerm::compute_reaction(double **concentrations, int loc_el) needs to be re-implemented in ancestors." << endl;
44  return concentrations;
45 }
46 
48  cout << "ReactionTerm.get_parallel_solution_vector(Vec &vec) is not implemented." << endl; //convection->compute_one_step();
49 }
50 
51 void ReactionTerm::get_solution_vector(double * &x, unsigned int &a){
52  cout << "ReactionTerm.get_solution_vector(double * &x, unsigned int &a) is not implemented." << endl; //convection->compute_one_step();
53 }
54 
56 {
57  cout << "ReactionTerm::choose_next_time() is not implemented." << endl;
58 }