Flow123d
release_3.0.0-968-gc87a28e79
|
Go to the documentation of this file.
93 prev_conc_(rows) = concentrations[rows][loc_el];
100 concentrations[rows][loc_el] = new_conc(rows);
102 return concentrations;
136 DebugOut().fmt(
"CFL constraint(first order reaction): {}.\n", time_constraint);
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.
unsigned int lsize(int proc) const
get local size
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.
unsigned int size() const
virtual double ** compute_reaction(double **concentrations, int loc_el) override
Computes the reaction on a specified element.
Support classes for parallel programing.
~FirstOrderReactionBase(void)
Destructor.
bool evaluate_time_constraint(double &time_constraint) override
Computes a constraint for time step.
double ** concentration_matrix_
arma::mat molar_matrix_
Diagonal matrix with molar masses of substances.
void initialize() override
Prepares the object to usage.
#define OLD_ASSERT_LESS(a, b)
Distribution * distribution_
Pointer to reference to distribution of elements between processors.
void zero_time_step() override
Moves the model to zero time.
SubstanceList substances_
Names belonging to substances.
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.
Global macros to enhance readability and debugging, general constants.
arma::mat reaction_matrix_
Reaction matrix.
bool is_changed_dt() const
Class ReactionTerm is an abstract class representing reaction term in transport.
#define DebugOut()
Macro defining 'debug' record of log.
#define START_TIMER(tag)
Starts a timer with specified tag.
#define END_TIMER(tag)
Ends a timer with specified tag.
std::shared_ptr< LinearODESolver > linear_ode_solver_