104 prev_conc_(rows) = concentrations[rows][loc_el];
111 concentrations[rows][loc_el] = new_conc(rows);
113 return concentrations;
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.
double ** concentration_matrix_
FLOW123D_FORCE_LINK_IN_PARENT(padeApproximant)
void initialize() override
Prepares the object to usage.
void zero_time_step() override
Moves the model to zero time.
SubstanceList substances_
Names belonging to substances.
unsigned int find_subst_name(const std::string &name)
virtual void assemble_ode_matrix(void)=0
Assembles the matrix of the ODEs.
unsigned int size() const
Class ReactionTerm is an abstract class representing reaction term in transport.
void update_solution(void) override
Updates the solution.
Global macros to enhance readability and debugging, general constants.
arma::mat reaction_matrix_
Reaction matrix.
Base class for linear ODE solver.
Distribution * distribution_
Pointer to reference to distribution of elements between processors.
FirstOrderReactionBase(Mesh &init_mesh, Input::Record in_rec)
Constructor.
bool is_changed_dt() const
#define START_TIMER(tag)
Starts a timer with specified tag.
#define OLD_ASSERT_LESS(a, b)
Support classes for parallel programing.
arma::vec prev_conc_
Column vector storing previous concetrations on an element.
Input::Record input_record_
arma::mat molar_mat_inverse_
Inverse of molar_matrix_.
#define END_TIMER(tag)
Ends a timer with specified tag.
std::shared_ptr< LinearODESolverBase > linear_ode_solver_
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.
unsigned int lsize(int proc) const
get local size