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 <stdlib.h>
2
3
#include "
reaction/reaction.hh
"
4
#include "
system/global_defs.h
"
5
#include "
mesh/mesh.h
"
6
#include "
io/output.h
"
7
8
using namespace
Input::Type;
9
using namespace
std;
10
11
12
AbstractRecord
ReactionTerm::input_type
13
=
AbstractRecord
(
"ReactionTerm"
,
"Equation for reading information about simple chemical reactions."
);
14
15
Record
ReactionTerm::input_type_output_record
16
=
Record
(
"ReactionTermOutput"
,
"Output setting for transport equations."
)
17
.
declare_key
(
"output_stream"
,
OutputTime::input_type
,
Default::obligatory
(),
18
"Parameters of output stream."
);
19
20
ReactionTerm::ReactionTerm
(
Mesh
&init_mesh,
Input::Record
in_rec)
21
:
EquationBase
(init_mesh, in_rec),
22
distribution(nullptr),
23
concentration_matrix_(nullptr),
24
el_4_loc(nullptr),
25
row_4_el(nullptr),
26
output_stream_(nullptr)
27
28
{
29
}
30
31
ReactionTerm::~ReactionTerm
()
32
{
33
}
34
35
36
double
**
ReactionTerm::compute_reaction
(
double
**concentrations,
int
loc_el)
37
{
38
ASSERT
(0,
"double **ReactionTerm::compute_reaction(double **concentrations, int loc_el)"
39
"needs to be re-implemented in ancestors.\n"
);
40
return
concentrations;
41
}
42
43
void
ReactionTerm::choose_next_time
(
void
)
44
{
45
ASSERT
(0,
"ReactionTerm does not change TimeGovernor.\n"
);
46
}
Generated on Thu May 29 2014 23:14:47 for Flow123d by
1.8.4