Flow123d
jenkins-Flow123d-linux-release-multijob-282
|
#include <reaction_term.hh>
Public Member Functions | |
TYPEDEF_ERR_INFO (EI_Substance, std::string) | |
TYPEDEF_ERR_INFO (EI_Model, std::string) | |
DECLARE_INPUT_EXCEPTION (ExcUnknownSubstance,<< "Unknown substance name: "<< EI_Substance::qval) | |
DECLARE_INPUT_EXCEPTION (ExcWrongDescendantModel,<< "Impossible descendant model: "<< EI_Model::qval) | |
ReactionTerm (Mesh &init_mesh, Input::Record in_rec) | |
Constructor. More... | |
~ReactionTerm (void) | |
Destructor. More... | |
virtual void | output_data (void) |
Output method. More... | |
void | choose_next_time (void) override |
Disable changes in TimeGovernor by empty method. More... | |
Setters | |
ReactionTerm & | substances (SubstanceList &substances) |
Sets the names of substances considered in transport. More... | |
ReactionTerm & | output_stream (OutputTime &ostream) |
Sets the output stream which is given from transport class. More... | |
ReactionTerm & | concentration_matrix (double **concentration, Distribution *conc_distr, int *el_4_loc, int *row_4_el) |
Public Member Functions inherited from EquationBase | |
EquationBase () | |
EquationBase (Mesh &mesh, const Input::Record in_rec) | |
virtual | ~EquationBase () |
virtual void | zero_time_step () |
virtual void | update_solution () |
virtual void | initialize () |
Initialize fields. More... | |
virtual void | set_time_upper_constraint (double dt) |
virtual void | set_time_lower_constraint (double dt) |
TimeGovernor const & | time () |
virtual void | set_time_governor (TimeGovernor &time) |
double | planned_time () |
double | solved_time () |
Mesh & | mesh () |
TimeMark::Type | mark_type () |
FieldSet & | data () |
virtual void | get_solution_vector (double *&vector, unsigned int &size) |
virtual void | get_parallel_solution_vector (Vec &vector) |
Static Public Attributes | |
static Input::Type::AbstractRecord | input_type = AbstractRecord("ReactionTerm", "Equation for reading information about simple chemical reactions.") |
static Input::Type::Record | input_type_output_record |
Specification of the output record. More... | |
Protected Member Functions | |
virtual void | output_vector_gather (void) |
virtual double ** | compute_reaction (double **concentrations, int loc_el)=0 |
Protected Attributes | |
double ** | concentration_matrix_ |
int * | el_4_loc_ |
Indices of elements belonging to local dofs. More... | |
int * | row_4_el_ |
Indices of rows belonging to elements. More... | |
Distribution * | distribution_ |
Pointer to reference to distribution of elements between processors. More... | |
SubstanceList | substances_ |
Names belonging to substances. More... | |
OutputTime * | output_stream_ |
Pointer to a transport output stream. More... | |
Protected Attributes inherited from EquationBase | |
bool | equation_empty_ |
flag is true if only default constructor was called More... | |
Mesh * | mesh_ |
TimeGovernor * | time_ |
Input::Record | input_record_ |
FieldSet * | eq_data_ |
Definition at line 17 of file reaction_term.hh.
ReactionTerm::ReactionTerm | ( | Mesh & | init_mesh, |
Input::Record | in_rec | ||
) |
Constructor.
init_mesh | is the reference to the computational mesh |
in_rec | is the input record |
Definition at line 18 of file reaction_term.cc.
ReactionTerm::~ReactionTerm | ( | void | ) |
Destructor.
Definition at line 29 of file reaction_term.cc.
|
overridevirtual |
Disable changes in TimeGovernor by empty method.
Reimplemented from EquationBase.
Definition at line 36 of file reaction_term.cc.
|
protectedpure virtual |
Computation of reaction term on a single element. Inputs should be loc_el and local copies of concentrations of the element, which is then returned.
Implemented in SorptionBase, DualPorosity, and FirstOrderReactionBase.
|
inline |
Sets the pointer to concentration matrix for the mobile zone, all substances and on all elements (given by transport).
Definition at line 61 of file reaction_term.hh.
ReactionTerm::DECLARE_INPUT_EXCEPTION | ( | ExcUnknownSubstance | , |
<< "Unknown substance name: "<< EI_Substance::qval | |||
) |
ReactionTerm::DECLARE_INPUT_EXCEPTION | ( | ExcWrongDescendantModel | , |
<< "Impossible descendant model: "<< EI_Model::qval | |||
) |
|
inlinevirtual |
Output method.
Some reaction models have their own data to output (sorption, dual porosity)
Reimplemented from EquationBase.
Reimplemented in SorptionBase, and DualPorosity.
Definition at line 79 of file reaction_term.hh.
|
inline |
Sets the output stream which is given from transport class.
Definition at line 54 of file reaction_term.hh.
|
inlineprotectedvirtual |
Communicate parallel concentration vectors into sequential output vector.
Reimplemented in SorptionBase, and DualPorosity.
Definition at line 88 of file reaction_term.hh.
|
inline |
Sets the names of substances considered in transport.
Definition at line 50 of file reaction_term.hh.
ReactionTerm::TYPEDEF_ERR_INFO | ( | EI_Substance | , |
std::string | |||
) |
ReactionTerm::TYPEDEF_ERR_INFO | ( | EI_Model | , |
std::string | |||
) |
|
protected |
Pointer to two-dimensional array[species][elements] containing concentrations.
Definition at line 99 of file reaction_term.hh.
|
protected |
Pointer to reference to distribution of elements between processors.
Definition at line 107 of file reaction_term.hh.
|
protected |
Indices of elements belonging to local dofs.
Definition at line 102 of file reaction_term.hh.
|
static |
Static variable for definition of common input record in reaction term.
Definition at line 28 of file reaction_term.hh.
|
static |
Specification of the output record.
Need not to be used by all reaction models, but they should allow output of similar fields.
Definition at line 35 of file reaction_term.hh.
|
protected |
Pointer to a transport output stream.
Definition at line 116 of file reaction_term.hh.
|
protected |
Indices of rows belonging to elements.
Definition at line 104 of file reaction_term.hh.
|
protected |
Names belonging to substances.
Must be same as in the transport.
Definition at line 113 of file reaction_term.hh.