21 #ifndef REACTION_TERM_H 22 #define REACTION_TERM_H 73 {substances_.
initialize(substances);
return *
this;}
77 {output_stream_=ostream;
return *
this;}
80 virtual bool evaluate_time_constraint(
double &time_constraint) = 0;
89 concentration_matrix_ = concentration;
90 distribution_ = conc_distr;
107 void choose_next_time(
void)
override;
119 virtual double **compute_reaction(
double **concentrations,
int loc_el) =0;
145 #endif // REACTION_TERM_H int LongIdx
Define type that represents indices of large arrays (elements, nodes, dofs etc.)
virtual void output_data(void) override
Output method.
Abstract base class for equation clasess.
double ** concentration_matrix_
virtual void initialize()
virtual void output_vector_gather(void)
ReactionTerm & output_stream(std::shared_ptr< OutputTime > ostream)
Sets the output stream which is given from transport class.
SubstanceList substances_
Names belonging to substances.
std::shared_ptr< OutputTime > output_stream_
Pointer to a transport output stream.
Distribution * distribution_
Pointer to reference to distribution of elements between processors.
The class for outputting data during time.
LongIdx * row_4_el_
Indices of rows belonging to elements.
Classes for storing substance data.
ReactionTerm & concentration_matrix(double **concentration, Distribution *conc_distr, LongIdx *el_4_loc, LongIdx *row_4_el)
LongIdx * el_4_loc_
Indices of elements belonging to local dofs.
ReactionTerm & substances(SubstanceList &substances)
Sets the names of substances considered in transport.