Flow123d
JS_before_hm-2137-g84767e588
|
Go to the documentation of this file.
50 ASSERT(
time_ !=
nullptr).error(
"Time governor has not been set yet.\n");
75 ASSERT(
time_ !=
nullptr).error(
"Time governor has not been set yet.\n");
102 this->
eq_fields_base_->conc_mobile_fe[sbi]->vec().set( dof_p0, new_conc(sbi) );
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.
#define ASSERT(expr)
Allow use shorter versions of macro names if these names is not used with external library.
Support classes for parallel programing.
~FirstOrderReactionBase(void)
Destructor.
virtual void compute_reaction(const DHCellAccessor &dh_cell) override
Computes the reaction on a specified element.
#define ASSERT_LT(a, b)
Definition of comparative assert macro (Less Than)
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.
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.
Global macros to enhance readability and debugging, general constants.
std::shared_ptr< EqFields > eq_fields_base_
Equation data - all fields needs in assembly class.
LocDofVec get_loc_dof_indices() const
Returns the local indices of dofs associated to the cell on the local process.
arma::mat reaction_matrix_
Reaction matrix.
std::shared_ptr< EqData > eq_data_base_
Equation data - all data needs in assembly class.
bool is_changed_dt() const
Class ReactionTerm is an abstract class representing reaction term in transport.
#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_