Flow123d
JS_before_hm-1804-gf2ad740aa
|
Go to the documentation of this file.
18 #ifndef FIRST_ORDER_REACTION_BASE_H_
19 #define FIRST_ORDER_REACTION_BASE_H_
30 namespace Input {
class Record; }
116 #endif // FIRST_ORDER_REACTION_BASE_H_
unsigned int find_subst_name(const std::string &name)
arma::mat molar_mat_inverse_
Inverse of molar_matrix_.
void update_solution(void) override
Updates the solution.
arma::vec prev_conc_
Column vector storing previous concetrations on an element.
FirstOrderReactionBase(Mesh &init_mesh, Input::Record in_rec)
Constructor.
unsigned int n_substances_
Number of all transported substances. It is the dimension of the reaction matrix.
~FirstOrderReactionBase(void)
Destructor.
std::vector< std::vector< unsigned int > > substance_ids_
virtual void compute_reaction(const DHCellAccessor &dh_cell) override
Computes the reaction on a specified element.
arma::mat molar_matrix_
Diagonal matrix with molar masses of substances.
Class for linear ODE solver.
ArmaMat< double, N, M > mat
void initialize() override
Prepares the object to usage.
void zero_time_step() override
Moves the model to zero time.
virtual void assemble_ode_matrix(void)=0
Assembles the matrix of the ODEs.
virtual void initialize_from_input()=0
Initializes private members of sorption from the input record.
Cell accessor allow iterate over DOF handler cells.
Base class for linear reactions and decay chain.
std::vector< std::vector< double > > bifurcation_
arma::mat reaction_matrix_
Reaction matrix.
Class ReactionTerm is an abstract class representing reaction term in transport.
std::shared_ptr< LinearODESolver > linear_ode_solver_