Flow123d
Main Page
Related Pages
Modules
Namespaces
Classes
Files
File List
File Members
flow123d
src
reaction
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
16
AbstractRecord
ReactionTerm::input_type
17
=
AbstractRecord
(
"ReactionTerm"
,
"Equation for reading information about simple chemical reactions."
);
18
19
Record
ReactionTerm::input_type_output_record
20
=
Record
(
"ReactionTermOutput"
,
"Output setting for transport equations."
)
21
.
declare_key
(
"output_stream"
,
OutputTime::input_type
,
Default::obligatory
(),
22
"Parameters of output stream."
);
23
24
ReactionTerm::ReactionTerm
(
Mesh
&init_mesh,
Input::Record
in_rec)
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
35
ReactionTerm::~ReactionTerm
()
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
47
void
ReactionTerm::get_parallel_solution_vector
(Vec &vec){
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
55
void
ReactionTerm::choose_next_time
(
void
)
56
{
57
cout <<
"ReactionTerm::choose_next_time() is not implemented."
<< endl;
58
}
Generated on Thu Apr 17 2014 01:28:44 for Flow123d by
1.8.4