1 #ifndef FIRST_ORDER_REACTION_BASE_H_
2 #define FIRST_ORDER_REACTION_BASE_H_
65 virtual double **
compute_reaction(
double **concentrations,
int loc_el)
override;
98 #endif // FIRST_ORDER_REACTION_BASE_H_
virtual void initialize_from_input()=0
Initializes private members of sorption from the input record.
arma::mat molar_matrix_
Diagonal matrix with molar masses of substances.
void initialize() override
Prepares the object to usage.
void zero_time_step() override
Moves the model to zero time.
unsigned int find_subst_name(const std::string &name)
Base class for linear reactions and decay chain.
virtual void assemble_ode_matrix(void)=0
Assembles the matrix of the ODEs.
void update_solution(void) override
Updates the solution.
arma::mat reaction_matrix_
Reaction matrix.
Base class for linear ODE solver.
FirstOrderReactionBase(Mesh &init_mesh, Input::Record in_rec)
Constructor.
arma::vec prev_conc_
Column vector storing previous concetrations on an element.
arma::mat molar_mat_inverse_
Inverse of molar_matrix_.
LinearODESolverBase * linear_ode_solver_
std::vector< std::vector< unsigned int > > substance_ids_
unsigned int n_substances_
Number of all transported substances. It is the dimension of the reaction matrix. ...
virtual double ** compute_reaction(double **concentrations, int loc_el) override
Computes the reaction on a specified element.
~FirstOrderReactionBase(void)
Destructor.
std::vector< std::vector< double > > bifurcation_