18 #ifndef FIRST_ORDER_REACTION_BASE_H_ 19 #define FIRST_ORDER_REACTION_BASE_H_ 84 virtual double **
compute_reaction(
double **concentrations,
int loc_el)
override;
117 #endif // FIRST_ORDER_REACTION_BASE_H_ This class implements the Pade approximation of exponential function.
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.
Class ReactionTerm is an abstract class representing reaction term in transport.
void update_solution(void) override
Updates the solution.
arma::mat reaction_matrix_
Reaction matrix.
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_.
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::shared_ptr< PadeApproximant > linear_ode_solver_
bool evaluate_time_constraint(double &time_constraint) override
Computes a constraint for time step.
std::vector< std::vector< double > > bifurcation_